Vendor's bank details are created with suitescript...
# ask-stanley-ai
i
Vendor's bank details are created with suitescript but an error SSS_AUTHOR_MUST_BE_EMPLOYEE ("The author internal id or email must match an employee.) started tom appear. Do you know why? Same code on Sandbox is working on PROD the error message appears
c
AI generated answer (using internal Slack threads):
The error
SSS_AUTHOR_MUST_BE_EMPLOYEE
is thrown when an email is being sent from a SuiteScript or a workflow and the author of the email (the 'from' address) is not associated with an employee record in NetSuite. This error can occur even if the author ID is an existing user and is an integer, as the author must be an employee. In your case, it seems like the error is being thrown when you are trying to create and save a 'bank_details' record. If there is a script or workflow running on save on the record itself that is trying to send an email, and you are not filling out whatever it is reading from, this error can occur. If you are using a workflow to send the email, you need to set a default sender or use a field like sales rep. If you want it to be dynamic, you will need a custom field to store the author of the email and update the workflow action to get it from the custom field. If you are using SuiteScript to send the email, you need to ensure that the author of the email is an employee. If you want to send it from the system, you can set the author to -5. ****** 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.859942317
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855706036
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.850531101
Please provide your feedback on this answer.