in the workflow, can I return user error if under ...
# ask-stanley-ai
q
in the workflow, can I return user error if under manage accounting periods, period close, a/r transactions, a/p transactions, all g/l transactions has been locked?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it seems that you can handle a server-side error incurred from trying to set a field by a workflow. If a transaction is left in Pending while AP is locked, upon approval it throws an error and disrupts the workflow process. To resolve this, you can use a custom field check for Locked periods. However, NetSuite doesn't recognize a Period as AP/AR Locked unless all subsidiaries are Locked so a saved search won't catch it. There is a setting in accounting preferences that will move your period forward on all transactions when you lock AP or AR. Alternatively, there are tools available that you can install into any workflow that will validate the period status and then you can decide what to do in your own actions once knowing what the period status is. Please note that these solutions are based on the experiences of other NetSuite professionals and may not be applicable to all situations. ****** 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.837951779
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.833618164
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.831176758
Please provide your feedback on this answer.