Hello
This is my first post to mibuso so bear with me.
So I have a Codeunit which launches three XMLports. The problem shows up when the codeunit reaches the last XMLport and if the run time error occurs with some validation -> There are no Rollbacks. How one must build this that it rolls back each used XMLport?
To give you context: I'm importing sales headers and sales lines from different files.
Navision version: 2015
Has any one have solution for that kind of problem?
Yours truly,
pn7
0
Comments
Assuming you xmlport are XMLA, XMLB and XMLC
1. Create Temp (staging Table) for all these three tables where actually want to import record.
2. insted of XMLA.Import(parameters) Use Where TransferRecord Is a Boolean.
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!