How to saveChanges in a transaction using NAV OData web service
jeqdev
Member Posts: 8
Hi,
I have an application that consumes a standard NAV OData service, Page 51 - Purchase Invoice. I am crating the Purchase header and its related lines. I would like to create the header and the lines in one single transaction. So that, if one of the lines is wrong the system doesn't create neither the header nor the lines.
I am trying to achieve this goal by calling the SaveChanges function with the BatchWithIndependentOperations option enabled, but I am getting the same error all the time "The remote server returned an error: (404) Not Found.". I am able to create the purchase header and the lines successfully if I use None (default option).
Questions:
Many thanks.
I have an application that consumes a standard NAV OData service, Page 51 - Purchase Invoice. I am crating the Purchase header and its related lines. I would like to create the header and the lines in one single transaction. So that, if one of the lines is wrong the system doesn't create neither the header nor the lines.
I am trying to achieve this goal by calling the SaveChanges function with the BatchWithIndependentOperations option enabled, but I am getting the same error all the time "The remote server returned an error: (404) Not Found.". I am able to create the purchase header and the lines successfully if I use None (default option).
Questions:
- Do you know if the BatchWithIndependentOperations option is supported in an OData NAV web service?
- If it is supported, how can I make it work?
Many thanks.
0
Best Answer
-
Hi,
I am not 100% sure but...
I don't see BatchWithIndependentOperations implemented or documented anywhere in NAV.
Good luck.\\The truth exists in seven versions.5
Answers
-
Hi,
I am not 100% sure but...
I don't see BatchWithIndependentOperations implemented or documented anywhere in NAV.
Good luck.\\The truth exists in seven versions.5 -
Thanks Peter+is1!
I agree it is not there, it seems that it is not supported NAV.
0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
