I'm getting the following error when trying to cre...
# ask-stanley-ai
e
I'm getting the following error when trying to create a case via scripting: Invalid assigned reference key ERROR: Field Is Restricted
c
AI generated answer (using internal Slack threads):
It seems like you're encountering an "Invalid assigned reference key" error while trying to create a case via scripting. This error typically occurs when the record you're trying to reference is inactive, deleted, or restricted by certain rules. For example, if an employee is restricted to a certain subsidiary and you're trying to assign that employee to a different subsidiary, you might encounter this error. In the context of setting the "Assigned To" field on cases, make sure the value you're trying to set is active and not restricted by any rules or classifications. Also, ensure that the value exists in the dropdown options for the "Assigned To" field. If you're still encountering this issue after checking these points, it might be related to the NetSuite release you're using. Some users have reported similar issues after upgrading to the 2021.1 release. If this is the case, you might need to adjust your script or the setup of your fields. ****** 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.836534202
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.834479392
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.828195274
Please provide your feedback on this answer.