Applies to Product - Dynamics 365 Business Central
What’s happening?
Experiencing posting errors in Dynamics 365 Business Central, specifically when attempting to post transactions. The error messages may indicate that a record in a specific table is being updated by another session, preventing the transaction from being completed.
Reason:
The underlying cause of the posting errors is often related to database locks. These locks occur when multiple users attempt to access the same data simultaneously, leading to conflicts. Additionally, running job queue entries during business hours can exacerbate the locking issues.
Resolution:
- Check Database Locks:
- To view current database locks, search for "Database Locks" in Business Central and access the related page. This page provides a snapshot of all current locks, including the affected table and resource.
- Reschedule Job Queue Entries:
- It is recommended to schedule job queue entries to run outside of business hours to avoid conflicts with user transactions. Running these jobs during peak hours can lead to multiple users accessing the same data, causing database locks.
- Monitor Power BI Queries:
- If using Power BI, ensure that queries are not running continuously during business hours. Disable any unnecessary refresh schedules to reduce the load on the system.
- Use API Pages:
- For better performance and control, consider using API pages instead of Web Services, especially if encountering frequent locking issues.
- Restart Environment:
- As a temporary workaround, restarting the production environment may help to clear locks and allow transactions to be posted successfully.
- Contact Support:
- If the issue persists after following the above steps, reach out to Microsoft Support for further assistance. Provide details about the error messages and any troubleshooting steps already taken.
