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 11, 2026, at 8:00 PM Pacific time, our Case Management System will undergo a scheduled maintenance for approximately 30 minutes. During this time, case creation via SuiteAnswers will be unavailable and inbound calls will be routed to Customer Service.
Invalid Record Reference When Record is Valid
I'm using the PHPToolkit to submit a new custom record entry and I'm getting the following error:
Invalid custrecord_fieldname reference key 12345
The error code is: INVALID_KEY_OR_REF
However, this does not occur with all records! Only with a select few (one so far). The strange part is if I look at the record via the web admin:
https://system.sandbox.netsuite.com/app/common/entity/contact.nl?id=12345
The record (a contact) comes up fine. I don't notice any different between the contacts except for one is associated with a company and one isn't. Any ideas?
Thanks
0