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
0
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
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).
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.
this is the function in codeunit. I call this function through webservice.
GetVendors(VAR VendorList : XMLport HBVendorList)
=======
VendorList.EXPORT;
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
It worked. =D>
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.