Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Please note that on Saturday, April 18, 2026, at 8:00 PM Pacific Time, our Case Management System will undergo a scheduled maintenance for approximately 15 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Error pusing credit card info to NetSuite
When pushing valid credit card info to NetSuite, I am getting an error "Please enter a valid expiration date". I am pushing the expiry date as below:
record.setFieldText('ccexpiredate',nsExp);
Where nsExp is a string with format "MM/YYYY". Some expiry dates seem to work and others don't. If I submit the value in the format "MM/YY" they all work, but go into NetSuite with years like 0019 and 0021. Where do I look to troubleshoot this?
Thanks in advance for any help.
0