Hello everyone! I'm using Netsuite REST APIs to create invoices. The invoice document numbers(tranid) are auto-generated using Netsuite setup. All my APIs are implemented in AWS Lambda functions, which are configured with a concurrency of 2 (this cannot be modified). However, this concurrency setting sometimes causes two records to be triggered at the same time, resulting in duplicate document numbers in Netsuite.
To address this issue, I've configured Warn and Block for duplicate number warnings at the account level. While this feature works at the UI level, it doesn't prevent duplicate numbers in scripts. How can I avoid these duplicate number issues programmatically?