Skip to main content
Dynamics 365

Sometimes when a user tries to save an invoice line or submit a PO he gets error: ” An error occurred during update. The State of the source document or source document line could not be updated”

The following query in this scenario triggers a query that access the TaxUncommited table.

            select
crossCompany * from sourceDocumentLineMap

                where sourceDocumentLineMap.SourceDocumentLine == this.RecId;

When the crossCompany keyword is present, the data access stack will check to see if the user has access to this table through any of its roles. Since none of the roles have permission to this table, the permission check will return NoAccess, and therefore the query doesn’t return any result.

To fix this issue you need to add the Read permission to table TaxUncommited for the Purchasing Agent role

Get started with Dynamics 365

Drive more efficiency, reduce costs, and create a hyperconnected business that links people, data, and processes across your organization—enabling every team to quickly adapt and innovate.