The following are the most common errors users might have run into while using the Shopify - NetSuite integration app:
Error message |
Reason |
Resolution |
Connection could not be established. Target service might be inactive. |
This error is usually encountered when the integration app tries to connect to NetSuite and took a long time to do so. It can be that your NetSuite server might not be available at that time. |
If there is retry data available, then you can retry the error. If there is no retry data, then you can just mark the error as resolved since this will be resolved by NetSuite once the connection is established. |
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
Shopify order to NetSuite order (cash sale or sales order) |
missing_static_lookup Failed to add Shopify Order#1234. Could not find the mapping in static lookup. { Source: shipmethodLookup} { Key: Free Shipping} |
Shopify ship Method "Free Shipping" is not yet mapped to the corresponding ship method in NetSuite. |
|
Shopify order to NetSuite order (cash sale or sales order) |
missing_static_lookup Failed to add Shopify Order#1234. Could not find the mapping in static lookup. { Source: paymentmethodLookup} { Key: direct} |
Shopify Payment Method "direct" is not yet mapped to the corresponding payment method in NetSuite. |
|
Shopify order to NetSuite order (cash sale or sales order) |
value_lookup_failed Failed to add Shopify Order#1234. A mapping error occurred. Could not find "White Tee" in the "Name" field of the record type "item". |
An item with the following SKU "White Tee" not found in NetSuite. |
|
Shopify order to NetSuite order (cash sale or sales order) |
unique_cust_id_reqd Failed to add Shopify Order#1234. Failed while creating customer, message: A customer record with this ID already exists. You must enter a unique customer ID for each record you create. To correct this record, click back and enter a new customer ID in the Customer field. Then, click Submit. |
A Customer record with the same First and Last Name already exists in NetSuite. |
There are multiple ways to resolve this error: One way is to enable NetSuite 'Auto Generate Numbers' feature for Type Customer.
An alternate way is to modify the Retry Data & change the First Name & Last Name on the Customer record. |
Shopify order to NetSuite sales order (add) and Shopify order to NetSuite order (cash sale or sales order) |
Unable to create the order in NetSuite for the Shopify order #5******3 Failed to save record because Please enter value(s) for: Currency |
If you have not added the currency field mapping in the Post orders to NetSuite import (or) if you have already set the currency field mapping but missing enabling the checkbox Enable the “Use this field for NetSuite record initialization. |
To resolve the issue:
|
Shopify order to NetSuite order (cash sale or sales order) |
user_error Failed to add Shopify Order #1234. Failed while creating customer, message: Please enter a value(s) for: Subsidiary. |
No mappings were found for Subsidiary under Customer Mappings section |
|
Shopify order to NetSuite order (cash sale or sales order) |
user_error Failed to add Shopify Order#1234. Please choose an item to add |
SKU field on one of the items on the order in Shopify was empty at the time order was placed. |
|
Shopify order to NetSuite order (cash sale or sales order) |
Unable to create the order in NetSuite for the Shopify order ##########. A mapping error occurred. Could not find a match for \"[[\"nameinternal\",\"isempty\"],\"AND\",[\"isinactive\",\"is\",\"F\"]]\" for the record type \"item\"." |
The error occurred due to Shopify orders without SKU or the item in NetSuite is inactive. You will need to make sure that all your products have SKUs or the NetSuite items are active. |
To resolve this issue:
Once all your products have SKUs in Shopify, you may keep the settings so whenever you encounter the same error, you will still be able to import the order but using a default item in NetSuite. |
Shopify order to NetSuite order (cash sale or sales order) |
Extension returned statusCode error: 504. 200 is a success. |
These errors occur during the NetSuite or Shopify's downtime when the flow is run. |
To resolve the error, go to the Dashboard and retry the error. |
Shopify order to NetSuite order (cash sale or sales order) |
Failed to add Shopify Order #EU1469. A mapping error occurred. Could not find a match for "["itemid","isempty"]" for the record type "item".' |
Item lookup is broken or set to standard. |
|
Shopify order to NetSuite order (cash sale or sales order) |
unexpected { [Error: socket hang up] code: 'ECONNRESET' } |
When you try more than four orders (multi-order retry). |
|
Shopify order to NetSuite order (cash sale or sales order) |
unexpected { [Error: connect ECONNREFUSED] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect' } |
The database might have disconnected. |
|
Shopify order to NetSuite order (cash sale or sales order) |
user_error Failed to add Shopify Order #1159. Please enter value(s) for: Bill To |
When Bill to is marked mandatory in NetSuite. |
|
Shopify order to NetSuite order (cash sale or sales order) |
user_error Failed to add Shopify Order #1159. Please enter value(s) for: Ship To |
When Ship to is marked mandatory in NetSuite. |
|
Shopify order to NetSuite order (cash sale or sales order) |
invalid_key_or_ref Invalid price reference key -1 |
If the custom price levels are not turned on and the item price level is set to the name field in intergrator.io, instead of internal ID. |
|
Shopify order to NetSuite order (cash sale or sales order) |
unexpected { [invalid_extension_response: Extension result does't contain the same number of elements as the request object.] name: 'invalid_extension_response', source: 'sc4n' } |
The error could appear for the following reasons:
|
Resolution 1:
Resolution 2: Contact your NetSuite administrator to resolve conflicts in the configuration record. |
Shopify order to NetSuite order (cash sale or sales order) |
500 Unable to get the required data from export due to the error: {"errors": "Internal Server Error"}. To resolve the error contact Celigo Support. |
The endpoint server not responding. |
Click Update Unlisted App in the pop-up window if the Shopify app needs an update. Sign in to Shopify with admin permissions. |
Shopify order to NetSuite order (cash sale or sales order) |
Unable to create the order in NetSuite for the Shopify order #XXXXXXXXX Failed to create, update/transform record because The field contained more than the maximum number ( 300 ) of characters |
A field in your import contains too many characters. There is a 300-character limit for this field. |
Set the handlebar expression below on the export field (Shopify) of the Etail Transaction Id(s).
For detailed instructions on the resolution steps, see the Note attribute fields in Shopify. |
Shopify Order to NetSuite Order (add) |
Failed to add/update customer for Shopify order #1234567. Please enter value(s) for: Last Name |
{{#if $.last_name}}{{$.last_name}}{{else}}{{$.addresses[*].last_name}}{{/if}} This expression is saying if lastname is not NULL then use lastname, if it is null then use the address Last_name. |
Error code: "invalid_key_or_ref"
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
Shopify order to NetSuite order (cash sale or sales order) |
Failed to add Shopify Order #1011. Invalid entity reference key 35007 |
This error indicates that the particular customer that is referencing, reference key 35007, is no longer an Active Customer. |
|
Shopify order to NetSuite order (cash sale or sales order) |
invalid_key_or_ref Failed to add Shopify Order #1234. Invalid item reference key 1009 for subsidiary 1. |
A subsidiary of the Item record in NetSuite does not match with the Subsidiary on the Customer record. |
To find the Subsidiary Internal IDs in NetSuite, navigate to Setup > Company > Subsidiaries. |
Shopify order to NetSuite order (cash sale or sales order) |
invalid_key_or_ref Failed to add Shopify Order #1234. Invalid shipmethod reference key 4115 for entity 33676. |
A subsidiary of the shipping method does not match with the Subsidiary of the Customer. |
|
Shopify order to NetSuite order (cash sale or sales order) |
Unable to create the order in NetSuite for the Shopify order #485######### due to invalid item reference key 1##3 for subsidiary #. |
A subsidiary of the Item record in NetSuite does not match the Subsidiary on the Customer record. Generally, this error could occur because of permissions issues. For example, an item is designated to be sold only under (Subsidiary 1) and nowhere else. Giving access to the rest of the subsidiaries should resolve this issue. |
|
Shopify transaction to NetSuite customer deposit (add) |
invalid_key_or_ref Failed to create Customer Deposit for Shopify Order XXXXXX due to Invalid reference key of Order XXXXXX for Customer XXXXXX. |
Reason 1: If you map the payment method on the sales order, NetSuite restricts to a create customer deposit. (OR) Reason 2: Occurs when the sales order bills before the deposit can be created in NetSuite from Shopify, orders that do not require fulfillment in Netsuite will automatically bill, which happens before the deposit can successfully be posted |
Solution 1:
Solution 2: Import such orders in a pending approval status and approve them once the deposit has been created. |
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
NetSuite customer to Shopify customer (add or update) |
Unable to find the customer ID #1234567 in Shopify. |
|
|
NetSuite customer to Shopify customer (add or update) |
Unable to find the eTail customer address ID's ["1234567", "12434545"] for Shopify customer ID #123444567. |
|
|
Shopify customer to NetSuite customer (add/update) |
user_error Failed to add/update customer for Shopify order #****6. Please enter a value(s) for, First Name and Last Name. |
When no customer details are provided while placing an order. |
Ensure the customer details are provided while placing the order. |
Shopify order to NetSuite order (cash sale or sales order) |
Failed to add/update customer for Shopify order #1****6. shopifyCustomerImportPostMapHook is not a Class |
This error occurs when the bundles in NetSuite do not match the version of the integration app. |
To resolve this error, ensure that you match/update the Celigo integrator.io and Celigo Shopify Connector bundles in NetSuite. |
Shopify customer to NetSuite customer (add/update) |
exceeded_max_field_length Failed to add/update customer for Shopify order #1157. The field Add phone contained more than the maximum number ( 50 ) of characters allowed.' |
When the value of the customer's phone number crossed the maximum limit. |
Ensure the number of characters in the customer's phone number field doesn't cross the maximum limit. |
Shopify customer to NetSuite customer (add/update) |
invalid_fld_value You have entered an Invalid Field Value June for the following field: add phone |
The value for the field "Phone" on the customer address is incorrect. |
Solution 1: Edit the data in the error dialog in integrator.io.
Solution 2: Edit the customer address data on the order in Shopify.
|
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
||||
Shopify fulfillment to NetSuite fulfillment (add) |
Failed to save the fulfillment record for the order #2966243868805 as Failed to create, update/transform record because You have entered an Invalid Field Value NaN/NaN/ NaN for the following field: trandate. |
|
|||||
Shopify fulfillment to NetSuite fulfillment (add) |
Error code: item_not_found Error message: Failed to save the fulfillment record for the order #2966243868805 as The item with ETAIL ORDER LINE ID 642362317222911 is not available on the NetSuite sales order 2966243868805. |
|
|||||
Shopify fulfillment to NetSuite fulfillment (add) |
Failed to save the fulfillment record for the order #3650601517189 as Failed to save record because Please configure the inventory detail in line 4 of the item list. |
As per the message mentioned in the "Error message" column, requires to configure the inventory detail for line 4. Perform the following steps:
|
|||||
Shopify fulfillment to NetSuite fulfillment (add) |
Error code: item_already_fulfilled Error message: The requested fulfillment quantity for the order line item #### (order ####) is either more than the available quantity or already fulfilled. Available quantity in NetSuite: ## Order item quantity: ## |
Quantity mismatch |
|
||||
Shopify fulfillment to NetSuite fulfillment (add) |
Error code: invalid_key_or_ref Error message: Failed to save the fulfillment record for the order #3660927926405 as Failed to save record because Invalid location reference key 700 for subsidiary 3. |
Location not found OR subsidiary mismatch on item and location in NetSuite. |
|
||||
Shopify fulfillment to NetSuite fulfillment (add) |
Unable to get the required data from export due to the error: Failed to generate request url from template: https://****.myshopify.com/admin/api/2023-01/orders.json?updated_at_min={{{lastExportDateTime}}}&fields=fulfillments,id&status=any &fulfillment_status=any. Details: "lastExportDateTime" not defined in the model. - 1:84.. To resolve the error, contact Celigo Support. |
The error occurred because of the incorrect selection of the export type. |
To resolve this error:
If this above-provided solution doesn't resolve the problem, follow the below steps:
|
||||
NetSuite fulfillment to Shopify fulfillment (add) |
422 {"errors":{"base":["Line item \'ABC\' is already fulfilled"]}} |
Line Item cannot be fulfilled in Shopify. It has either been already fulfilled or refunded in Shopify. |
|
||||
NetSuite fulfillment to Shopify fulfillment (add) |
404{"errors": "Not Found"} |
When there is a change in eTail order line ID. |
|
||||
NetSuite fulfillment to Shopify fulfillment (add) |
Blank error message. |
When there is a mismatch in item quantity. |
Check if the QTY is fulfilled at line-level items in both systems. |
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
Shopify product ID to NetSuite item (mass update) |
value_lookup_failed A mapping error occurred. Could not find a match for "["itemid","isempty"]" for the record type "item". |
SKU field on the corresponding item in Shopify is empty. |
|
NetSuite Matrix item to Shopify Product Add/Update |
sss_time_limit_exceeded Script Execution Time Exceeded. |
It is possible that the data is too large and you might need to break the data into smaller pieces so that the flow could handle it. This can happen if the Export Type has been set to All . The default export type is Delta which means it will only export the data that has changed since the last run. |
If the issue persists, change the page size to 10 and re-run the flow. Keep decreasing the page size until you find the value that would allow the flow to run successfully. |
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
NetSuite inventory to Shopify inventory (add or update) |
{"errors":["Inventory item does not have inventory tracking enabled"]} |
The error occurs because the product does not have inventory tracking enabled in Shopify. |
The products in Shopify must have inventory tracking turned on. To enable inventory tracking in Shopify, follow the steps below:
|
NetSuite inventory to Shopify inventory |
404 {"errors":"Not Found"} |
Variant Id on the NetSuite Item is incorrect/nonexistent in Shopify. |
|
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
||||
Shopify refund to NetSuite refund (add) |
Transaction Not in balance. Amount: <> |
This error is most commonly seen in NS accounts that have some specific tax-related setup like AvaTax or SuiteTax. The error might occur while refunding orders paid via gift card in addition to the refund adjustment scenario. |
|
||||
NetSuite refund to Shopify refund (add) |
Cannot invoke "com.netledger. core.session.NLSession. getCompany()" because the return value of "com.netledger.app.site. hosting.restlet.getNLSession()" is null |
This error occurs during the NetSuite downtime when the flow is run. There is no data processed during that time and no data is lost. |
To resolve the error, run the flow again after 10 minutes. |
To view the export record that has an error in the Refund flow:
-
Open your Shopify URL domain in a new window. Here is the format of the Shopify URL https://admin.shopify.com/store/your-store-name/
-
In your integration app, follow any of the below paths:
-
Go to Flows > Refund.
-
Select the flow that contains the error and click Errors.
-
Copy Export Id from the error.
-
-
Go to the Dashboard page and click Errors to view the error.
-
Copy Export Id from the error.
-
{{img class=screenshot-frame id=1}}
-
-
At the end of the Shopify URL, paste the Export Id.
-
Remove the API version ‘admin/api/XXXX-XX’ from the URL.
-
Click Enter and you can now view the same record that has an error.
{{img class=screenshot-frame id=2}}
Flow impacted |
Error code/ Message |
Likely cause |
Resolution |
Shopify transaction to NetSuite customer deposit (add) |
Invalid salesorder reference key XXXX for customer XXXX |
The error occurs because the Sales order with internal ID is not available to the customer deposit in NetSuite. |
To resolve this error, manually add the customer deposit in the NetSuite.
|
NetSuite sales order to NetSuite invoice (add) |
Failed to create, update/transform record because you can not initialize invoice: invalid reference *****. |
This error occurs if the status of the sales order is either "Billed" or "Closed". |
To resolve this error:
|
NetSuite sales order to NetSuite cash sale (add) |
Failed to save record because the transaction date you specified is not within the date range of your accounting period.' |
It seems like the date that is being set for the creation of the transaction record is not within the date range of the accounting period. It's possible that the accounting period is not set for that year. |
Open the accounting period for the date on when the transaction is being set or set up NetSuite such that it allows setting transaction date outside the posting period. To do this:
|
Data flow: netsuite-shopify-billing-exportadaptor |
unexpected_error - null |
This has been seen when the Shopify store id is being used in the saved search and NetSuite is timing out during the export. This error occurs on flows. |
You can fix this issue by changing the filter to Shopify Store Name in the saved search and then running the flow manually. |
NetSuite sales order to NetSuite invoice (add) |
Auto-billing sales orders are not working |
After running the saved search in NetSuite, there were a few results that showed "payment method", which means that all those orders need to be billed as a "cash sale", and not an "invoice". The flow NetSuite sales order to NetSuite invoice (add) will only process those orders which are to be billed as "invoice". To process the other orders which show "payment method", you need to enable and run the NetSuite Order to NetSuite Cash Sale Add flow. |
|
Shopify price discounting is not updating |
If line level discounts is set to "Adjustments", the Celigo Integration App will automatically update the line item price mapping. If you may have modified that and would like to revert to the original, please change to: {{#if $.line_items[*].total_discount }}{{subtract $.line_items[*].price (divide $.line_items[*].total_discount $.line_items[*].quantity)}}{{e lse}}{{$.line_items[*].price}} {{/if}} . |
||
Data Flow: auto-billing-cashsale-import-adaptor flow |
user_error - null' - "Failed to create, update/transform record because Please enter a value for amount |
When checking the retry data, data for Amount is not included. This means that the Saved Search does not return the value for the amount cause it is not on the list of results. |
|
Error message |
Resolution |
In NetSuite, you are trying to refund more than the Shopify expected amount for the order ####. NetSuite refund amount #### and Shopify expected amount - ###. |
|
The "Product title" field is a mandatory field in Shopify and the value is empty. |
Enter a value in the field and retry to sync your products. |
Map at least one location in the "Map NetSuite locations with Shopify locations" setting or select a default Shopify location from the "Use Custom Default Value" drop-down list. |
|
Unable to find the corresponding payout custom record in NetSuite for the Shopify payout ###. |
|
Comments
Sometimes this error also happens when the sales order bills before the deposit can be created in NetSuite from Shopify, orders that do not require a fulfillment in Netsuite will automatically bill, which happens before the a deposit can successfully be posted - the best solution for these orders is to have them imported in a pending approval status so that they can be approved once the deposit has been created:
Failed to create Customer Deposit for Shopify Order XXXXXX due to Invalid reference key of Order XXXXXX for Customer XXXXXX.
Sue Genao thank you for sharing this. We will ensure the error and solution are documented!
Anil Kumar, an internal migration might have caused this problem. I have fixed this. Thanks for letting us know!
Thank you Saikumar Rachamalla for the prompt action. It looks like only that specific item was addressed. Please check "Shopify product flow errors" for the same issue. I advise you to decrease column width for "Error code/Message" and increase for "Resolution".
Sure, Anil Kumar. We made the changes in all the required tables. We will soon consider this for a redesign to improve the readability. Thanks for all the observations!
Failed to save record because Invalid salesorder reference key- Any ideas?
Ashley Riehl, do the troubleshooting options in this article offer a solution?
Please sign in to leave a comment.