Upload/Download File ERROR - CTL_E_PERMISSIONDENIED

infonoteinfonote Member Posts: 233
edited 2012-05-18 in NAV Three Tier
The process is this. I am uploading a text file to the temp, and downloading the file to the network path. The error is occurring in the download file.

What I noticed is when I send a hard coded path, it works fine, but when I dynamically get the path, using concatenation e.g. \\network\Folder\Job

The Job No. is dynamic and it is retrieved correctly.

I used the + for concatenation and the even used 'STRSUBSTNO' but it still works incorrectly.

Microsoft Dynamics NAV

This message is for C/AL programmers: The call to member MoveFile failed: Exception from HRESULT: 0x800A0046 (CTL_E_PERMISSIONDENIED).
OK

Any ideas?
Thanks in advance.

Comments

  • Carlos_PtCarlos_Pt Member Posts: 21
    Hi, can it be permission rights to access that folder?
  • infonoteinfonote Member Posts: 233
    Carlos_Pt wrote:
    Hi, can it be permission rights to access that folder?

    Found the error. Since the Path is set dynamically, there was a '\' missing at the end of the download file path.
Sign In or Register to comment.