Sevak
03/03/2026, 9:15 AMCeligo AI
03/03/2026, 9:15 AMAI generated answer (using internal Slack threads):The "Unexpected Error" when trying to create a script record for a script of type customtool to use by NetSuite AI Connector can be triggered by several reasons: 1. Script Deployment Issues: If the script is not properly deployed, it may not show up in the list of scripts in NetSuite's UI. Make sure the script is successfully deployed using SuiteCloud Development Framework (SDF). 2. Permission Issues: The role associated with the script might not have the necessary permissions. For example, if you are using
getCustomerDetails, the role needs view permission for Customers. Similarly, for getItemDetails, view permissions on Item Record are required. Make sure to check and assign the necessary permissions to the role.
3. Interference from Other Scripts or Workflows: If there are other user events or workflows on the record type, they might be triggering the error. It's possible that your script is failing to do something that is done by the UI and is expected by the other script/workflow.
4. Database Issues: Sometimes, the issue might be on NetSuite's end, such as a database issue.
5. Deleted Items: If items that the script is trying to access have been deleted, you might encounter the error message "Items you have requested in the record have been deleted since you retrieved the form".
Remember to thoroughly test your script and check for any errors in the code itself. Also, ensure that all the necessary fields and records are available and have not been deleted.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
03/03/2026, 9:16 AMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.851318359
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845764279
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.845642209
Celigo AI
03/03/2026, 9:16 AM