Duplicate records - calling webservice
Srivas
Member Posts: 89
Hi All,
I am getting duplicate records when I am calling XMLPort (via codeunit) from webservice.
But when I export the data from inside Navision (calling the same xmlport), the data is correctly exported.
Please note that I am using temporary table as source table for this xmlport.
Please help ](*,)
thanks
I am getting duplicate records when I am calling XMLPort (via codeunit) from webservice.
But when I export the data from inside Navision (calling the same xmlport), the data is correctly exported.
Please note that I am using temporary table as source table for this xmlport.
Please help ](*,)
thanks
0
Answers
-
It means that you are using the xmlport as a parameter in function in Codeunit, which is published as webservice?0
-
if you are using xmlport as parameter in a function (as kine asked you):
Do you manually call xmlport.export in your codeunit function? If so this may cause the problem because you don't have to. The webservice framework does it by itself.
So maybe you have duplicate records because xmport is executed 2 times, and you have a serious performance impact (doubled execution time).0 -
Thanks for quick reply
Yes I am calling XMLport from codeunit.
Xmlport1.export
But then how do I tell which xmlport to call if I donot mention in codeunit.0 -
It looks like this.
this is the function in codeunit. I call this function through webservice.
GetVendors(VAR VendorList : XMLport HBVendorList)
=======
VendorList.EXPORT;0 -
You do not need to use the VendorList.EXPORT. It will be done implicitely at the end of the function. Just try it...0
-
You guys are gem of NAV community.
It worked. =D>0 -
Thanks a lot!!!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
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 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
