invalid entity reference key during sales order im...
# ask-stanley-ai
u
invalid entity reference key during sales order import
c
AI generated answer (using internal Slack threads):
The "Invalid entity reference key" error during sales order import usually occurs due to one of the following reasons: 1. Incorrect Entity Reference: Ensure that the entity reference you are using (internal id, external id, or name) is correct and exists in the system. If you are using the name, it should match exactly with the name in the system, including any special characters or spaces. 2. Subsidiary or Permission Issues: The role you are using to import the sales order might not have the necessary permissions or might be restricted by subsidiary. Check if the role has view access for customers and if the customer is available to the subsidiary. Also, ensure that the employee record has the Parent Company subsidiary set. 3. Role Restrictions: If the import works fine with the administrator role but not with a custom role, there might be some restrictions or missing permissions in the custom role. Check if all the scripts that are deployed to the admin role are also deployed to your custom role. Remember to always double-check the entity reference and the role permissions when you encounter this error. If the issue persists, you might need to delve deeper into the system settings or consider using a different method for the import. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850169539
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.848860383
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.843238413
Please provide your feedback on this answer.