web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

E-Invoicing Submission Failing - SQL Trigger Error on BUSINESSDOCUMENTEXECUTIONREQUEST Table

(3) ShareShare
ReportReport
Posted on by 61
Hi all,
We have implemented the standard E-Invoicing feature in Dynamics 365 Finance & Operations for Saudi Arabia and Egypt. The setup was working as expected, and we were able to successfully submit our sales invoices using the standard submission process.
However, without any changes made to the configuration or customizations, the submission process has suddenly stopped working in our UAT environment.
We are now encountering the following error when attempting to submit invoices:
[Error] Sql command failed: Inner System.Data.SqlClient.SqlException 
The target table 'dbo.BUSINESSDOCUMENTEXECUTIONREQUEST' of the DML statement cannot have any enabled triggers 
if the statement contains an OUTPUT clause without INTO clause. Try again or contact with the system administrator.
 
Context: [CountryISOCode: SA, DocumentType: Customer invoice, LegalEntityID: e355, SubmissionType: blank]

This issue occurs at the point of submission, and the record is not being submitted at all.
 
It’s worth noting that the same feature is already deployed and working fine in the Production environment for one of the entities. The issue appears to be isolated to UAT, which makes it even more confusing since there have been no recent deployments or changes made to UAT either.
Has anyone encountered this error recently or can shed light on what might be causing this behavior?
Appreciate any support or insights on how to resolve this.
Thank you!
 
Categories:
I have the same question (0)
  • Verified answer
    Syed Amir Ali Profile Picture
    151 on at
    E-Invoicing Submission Failing - SQL Trigger Error on BUSINESSDOCUMENTEXECUTIONREQUEST Table
    Hey,
     

    The BUSINESSDOCUMENTEXECUTIONREQUEST is a standard table used internally by the E-Invoicing module. This BUSINESSDOCUMENTEXECUTIONREQUEST  table contains the electronic documents execution request details. 

    The error suggests either a trigger was recently added/enabled manually (possibly through SQL or script in UAT) or UAT and PROD differ in SQL Server version/configurations, making the same code behave differently.

    Run the below script on the UAT database to check if any trigger enabled then disabled it temporarily.

    SELECT name, is_disabled
    FROM sys.triggers
    WHERE parent_id = OBJECT_ID('dbo.BUSINESSDOCUMENTEXECUTIONREQUEST');

    Please mark my answer as 'Verified' if it works for you. 

     


     
  • Suggested answer
    Yng Lih Profile Picture
    1,531 on at
    E-Invoicing Submission Failing - SQL Trigger Error on BUSINESSDOCUMENTEXECUTIONREQUEST Table
    Hi RM,
     
    When E-invoicing doesn't work, it could be:
    - the data i.e. the master data that you are trying in UAT has missing values
    - the key vault expiration date or some other Azure setups has expired 
    - could it be there is a prod database restoration to UAT previously? if so, you may want to check the E-Invoicing setup to ensure its still pointing to UAT.
    - since its UAT, you may want to try to go LCS > UAT > Maintain > Restart service
    - last resort would be to seek help from Microsoft support via LCS support ticket submission
     
    If this information was helpful, kindly mark it as 'Verified'. Thank you. :)
     
     
     
  • RM-09090509-0 Profile Picture
    61 on at
    E-Invoicing Submission Failing - SQL Trigger Error on BUSINESSDOCUMENTEXECUTIONREQUEST Table
    Thank you for the solution on this.
    We did find a trigger which was added, upon removing the trigger, The E-invoice submission started working as required.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 2,177

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 860 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 593 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans