Skip to main content

Notifications

Announcements

No record found.

Business Central forum

Error API BC : A transaction must be started before changes can be made to the database.

Posted on by 2
Hello,
I'm working on a soap API integration. 
I can easily create a Sales Quote but then I would like to modify it multiple times to add a SQ line each time. First time it seems to work but then I can't either write nor read the SQ. 
 
The returned error is : 
<s:Envelope xmlns:s=/http://schemas.xmlsoap.org/soap/envelope//><s:Body><s:Fault><faultcode xmlns:a=/urn:microsoft-dynamics-schemas/error/>a:Microsoft.Dynamics.Nav.Types.Exceptions.NavCSideException</faultcode><faultstring xml:lang=/en-US/>A transaction must be started before changes can be made to the database.</faultstring><detail><string xmlns=/http://schemas.microsoft.com/2003/10/Serialization//>
 
Any idea why is that? Do I have to commit the changes I push through API ? How to do so ? 
 
Environment is on premise and Version: BE Business Central 19.5 
 
Thanks
Categories:

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans