I am getting this error when trying to create a li...
# ask-stanley-ai
f
I am getting this error when trying to create a linked work order for a sales order "Invalid parent reference key 77922."
c
AI generated answer (using internal Slack threads):
The error "Invalid parent reference key 77922" typically occurs when there is a mismatch between the parent record and the child record you are trying to create. In this case, it seems like the issue is related to creating a work order from a sales order. From the conversations, it appears that there could be several reasons for this issue: 1. Role Permissions: Ensure that the role has the necessary permissions to create a work order. This includes permissions for 'Work Orders', 'Mark WO Firmed', and 'Mark WO Release'. If the role does not have these permissions, it might not be able to create a work order. 2. Subsidiary Access: The role should have access to the intended subsidiary. If the role does not have access to the subsidiary, it might not be able to create a work order. 3. Preferences Settings: One of the conversations mentioned that setting the 'maximum entries in dropdowns' to a lesser value fixed the error. This might be worth trying. 4. Special Order Items: If the item is a special order item, it might require additional permissions or settings to create a work order. 5. Scripting: If you are using a script to create the work order, ensure that the script is correctly setting the 'Create WO' field. If the script is not correctly setting this field, it might cause an error. Remember to check these points and see if they help in resolving the issue. ****** 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.851514
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.832003176
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828918278
Please provide your feedback on this answer.