Options

specified path is invalid message

jcannavojcannavo Member Posts: 3
edited 2011-05-11 in NAV Three Tier
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

Comments

  • Options
    Luc_VanDyckLuc_VanDyck Member, Moderator, Administrator Posts: 3,633
    In the RTC, the path 'C:\Test' refers to the C:-drive of the server where the service tier is running, not the PC where the client is started.
    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
    No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
  • Options
    jcannavojcannavo Member Posts: 3
    Thanks for pointing me in the right direction, this is very helpful.

    Joe
Sign In or Register to comment.