In Nav 4.0, I have trying to export Customer List in XML file Format using XMLPort and Codeunit.
I am facing problem and not able to export data in XML file in Nav 4.0. Navision crashes when I try to export data in XML file using code as below: I have also attached XML Port design snapshot.
I have tries same code in Navision 2009 R2 and it has export XML File successfully. Is it XML Port Limitation in Nav 4.0 that it can not export data in XML Format. Any suggestion/help to solve my problem is appriciate.
Codeunit : OnRun() Trigger
IF EXISTS('D:\Test\Customer.xml') THEN
XMLFileName := 'D:\Test\Customer.xml';
FileOpened := TestFile.OPEN(XMLFileName);
MESSAGE('XML Customer Export Complete.');