Error: Sales order not created for customer with NS ID - ____ [Code=INVALID_KEY_OR_REF] Invalid class reference key
The reason why this or similar orders got rejected by NetSuite
It seems that the customer with this NetSuite "______" internal ID is not mapped with the correct class ID, as a result, our app couldn't sync this order to NetSuite.
Example:
Error: Sales order not created for customer with NS ID - 246429 [Code=INVALID_KEY_OR_REF] Invalid class reference key 32.
In the above example, this 246429 NetSuite internal ID customer is not mapped with the correct class ID, as a result, this order got rejected by NetSuite.
How to fix this error:
Step 1:
- Open NetSuite and from the top-navigation pane click on the Setup > Company > Classes
- If this class already exists, then you have to search for it, else you need to create it from the New Class button
Step 2:
- Open Robust NetSuite Integrator app, and go to the Fields Mapping Page, and click on the Add Standard field button, under the Transaction Standard Field
- From the drop-down menu of Standard Field choose Class, and in the Market Field, enter the correct NetSuite class ID from step 1 and hit Submit
Step 3:
- Go to the Order Log page
- In the Order ID field, enter the Order ID of this rejected order, and hit the Search button
- In the action tab, click on the Re-submit button
- Upon, successful re-submission, you will see the status of this order changed to Accepted by NetSuite
Related Articles
Error: Sales order not created for customer with NS ID - ____ [Code=INVALID_KEY_OR_REF] Invalid class reference key
The reason why this or similar orders got rejected by NetSuite It seems that the customer with this NetSuite "______" internal ID is not mapped with the correct class ID, as a result, our app couldn't sync this order to NetSuite. Example: Error: ...
Error: Sales order not created for customer with NS ID - ___ [Code=INVALID_KEY_OR_REF] Invalid _______ reference key ___ for subsidiary _.
The reason why this or similar orders got rejected by NetSuite It seems that the customer with this NetSuite "______" internal ID OR this invalid "_____" NetSuite field doesn't belong to the same subsidiary, as a result, our app couldn't sync this ...
Error: Sales order not created for customer with NS ID - ___ [Code=INVALID_KEY_OR_REF] Invalid _______ reference key ___ for subsidiary _.
The reason why this or similar orders got rejected by NetSuite It seems that the customer with this NetSuite "______" internal ID OR this invalid "_____" NetSuite field doesn't belong to the same subsidiary, as a result, our app couldn't sync this ...
Error: Sales order not created for customer with NS ID - [Code=INVALID_KEY_OR_REF] Invalid custbody___ reference key ___.
The reason why this or similar orders got rejected by NetSuite It seems that this "custbody____" NetSuite custom field is not mapped with its correct (reference / source) internal ID, as a result, our app couldn't sync this order to NetSuite. ...
Error: Sales order not created for customer with NS ID - [Code=INVALID_KEY_OR_REF] Invalid custbody___ reference key ___.
The reason why this or similar orders got rejected by NetSuite It seems that this "custbody____" NetSuite custom field is not mapped with its correct (reference / source) internal ID, as a result, our app couldn't sync this order to NetSuite. ...