Any ideas on getting this error on save of a custo...
# ask-stanley-ai
c
Any ideas on getting this error on save of a custom record? "You cannot submit this form due to an unexpected error."
c
AI generated answer (using internal Slack threads):
The error "You cannot submit this form due to an unexpected error" when saving a custom record in NetSuite can be caused by several factors. Here are some possible causes and solutions: 1. Client Script or Workflow Interference: If there is a client script or workflow attached to the record, it might be interfering with the save operation. You can try disabling any workflow or user event script deployed to your record to see if the error persists. 2. Email Triggering: If an email is trying to be sent during the save operation, and the author of the email is not set as an employee, this could cause an error. Check if the 'tobeemailed' checkbox is checked on save. Also, check if there are any user event scripts on the record that might be triggering an email. 3. SaveRecord Function: If you have a client script with a saveRecord function, make sure that it is returning true. If it's not, the save operation might fail. 4. Scripted Records: Go to customization -> scripted records and look at everything deployed to them, not just workflows. There might be a script interfering with the save operation. Remember to debug carefully and step by step to identify the root cause of 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.856757164
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.852273643
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.846890688
Please provide your feedback on this answer.