Applies to Product - Dynamics 365 Business Central
What’s happening?
There are inaccuracies in the Journal Line API responses when processing large batches of transactions.
Reason:
The problem arises when multiple transactions are sent in a batch. Intermittently, two transactions may receive the same line number, leading to one transaction being recorded while the other fails due to a duplicate line number error. This is exacerbated when large batches (e.g., 2k to 30k transactions) are processed.
Resolution:
- Ensure that the API requests are sent in a manner that avoids concurrent processing of transactions that may lead to duplicate line numbers.
- Implement a delay between batch requests to allow sufficient time for the previous batch to be processed before sending the next one.
- If the issue continues, gather detailed reproduction steps and timestamps for the transactions that encounter the duplicate line number error and provide this information to the technical support team for further investigation.
