Web Service Create method to add a Sales Order in NAV by using SOAPUI.

dbabas
Member Posts: 33
Hello all,
I'm trying to create a new sales order in NAV through a page Web Service by using SOAPUI. The page published as WS is the standard page 42 (I know it's not a good practice but it's just for testing).
The problem is that the call with an empty "No." doesn't work and returns the following error:
The same occurs even if I send the "No. Series" value in the call.
If I assign any other value to "No.", it returns a different error as follows:
I also tried by totally removing the "No." element but this kills the NAV Service!
Obviously, if I setup the "No. Series" to allow a manual entry it won't have any issues, however, what I'm trying to achieve is the standard behaviour to automaticaly assign a number.
Anyone who managed to resolve this please?

I'm trying to create a new sales order in NAV through a page Web Service by using SOAPUI. The page published as WS is the standard page 42 (I know it's not a good practice but it's just for testing).
The problem is that the call with an empty "No." doesn't work and returns the following error:
Primary key element No in service SalesOrder_Service is empty or null. Empty and null elements are not allowed in primary keys.
The same occurs even if I send the "No. Series" value in the call.
If I assign any other value to "No.", it returns a different error as follows:
You may not enter numbers manually. If you want to enter numbers manually, please activate Manual Nos. in No. Series S-ORD-1
I also tried by totally removing the "No." element but this kills the NAV Service!
Obviously, if I setup the "No. Series" to allow a manual entry it won't have any issues, however, what I'm trying to achieve is the standard behaviour to automaticaly assign a number.
Anyone who managed to resolve this please?

0
Best Answer
-
Hi,
Just to share that what I said above is inaccurate. If I omit the "No." element and without any other elements, it works perfectly fine. What I was trying before is to pass the "Sell-to Customer No." at the same time and this was causing the error.
0
Answers
-
Hi,
Just to share that what I said above is inaccurate. If I omit the "No." element and without any other elements, it works perfectly fine. What I was trying before is to pass the "Sell-to Customer No." at the same time and this was causing the error.
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions