Hi,
We're working on testing 6.0R2 and I'm running into an issue with calling a file for import. Basically the programming used to call a dataport and I had to recreate it as an XMLPort so I am doing the following:
TestFile.OPEN('C:\Test\Test.xml');
TestFile.CREATEINSTREAM(TestStream);
XMLPORT.IMPORT(50001,TestStream);
TestFile.CLOSE;
When I click on the button that runs this code I receive the message "The specified path is invalid". I verified that the C:\Test directory exists and that the Test.xml file is there. From looking at permissions on that directory nothing stands out to tell me that is the issue, so I'm wondering if anyone else has any idea what could cause this?
Thanks,
Joe
0
Comments
You'll have to use the UPLOAD-function to upload your local file to the server first.
See Walkthrough: Uploading a File from a Client to Microsoft Dynamics NAV Server
Joe