Error: Sales order not created for customer with NS ID - ___ [Code=INVALID_KEY_OR_REF] Invalid _______ reference key ___ for subsidiary _.

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 order to NetSuite.

Example:

Sales order not created for customer with NS ID - 1000 [Code=INVALID_KEY_OR_REF] Invalid discountItem reference key 1001 for subsidiary 2.

In the above example, this 1001 discountItem doesn't belong to subsidiary 2, as a result, it cannot be applied to its NS ID - 1000 customer.

How to fix this error:

Step 1:

  1. Open the Robust NetSuite Integrator, and go to the Configuration page
  2. Expand the App Settings and scroll down to this "NetSuite Discount Item For Shopify Promotions" setting
  3. From, this "Apply NetSuite Discounts Item to all Shopify promotions as" drop-down menu, select that default NetSuite discount item that belongs to this subsidiary 2 and must be applied to all of its customers
  4. Once done, save the changes from the bottom of this app section

Step 2:

  1. Open the Robust NetSuite Integrator, and go to the Order Log page
  2. In the Order ID field, enter the Order ID of this rejected order, and hit the Search button
  3. In the action tab, click on the Re-submit button
  4. Upon, successful re-submission, you will see the status of this order changed to Accepted by NetSuite
In case, you have any questions OR suggestions, feel free to reach out to us at help@webbeeglobal.com.