Getting unexpected error when creating an Estimate...
# ask-stanley-ai
a
Getting unexpected error when creating an Estimate, but only for a specific Role and not for Admin role, and no script logs are recorded anywhere saying unexpected error. The Estimate creates successfully, so I know it's not happening in beforeSubmit events, but the error page appears immediately afterward. How do I find out what's causing the unexpected error?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems like the unexpected error you're encountering when creating an Estimate for a specific role could be due to a variety of reasons. Here are some potential causes and solutions: 1. Script Issue: The error could be due to a script that is deployed only for the specific role that is encountering the error. Check the script deployments and ensure that they are correctly set up. If a script is causing the error, it should be reflected in the script logs. However, you mentioned that no script logs are recorded, which leads us to the next possible cause. 2. Permissions Issue: The role might lack certain permissions required to create an Estimate. Check the permissions for the role and ensure that it has all necessary permissions, including 'Invoicing', 'Custom Record', 'Custom Transaction Form', and 'Custom Body'. 3. Data Issue: The error could be due to the data being used to create the Estimate. For example, if you're using an invalid internal ID for an estimate, it could cause a TYPE error. Make sure that all the data being used is valid and correct. 4. Cache Issue: Sometimes, NetSuite might use a cached version of the script, especially for client scripts. If you've made changes to the script, make sure to redeploy it. You can do this by going into the script deployment, editing it, and saving it. Remember to always check the error message for clues. The error message often contains valuable information about the cause of the error. ****** 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.805696487
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.804669201
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802684784
Please provide your feedback on this answer.