Nav 2013 XMLport and Mapped Network Drive

jimmyfjimmyf Member Posts: 104
I am having a problem where I have developed an XMLport in NAV 2013 and when I browse to a file in a Mapped Network drive NAV does not recognise the file even though I can physically browse to the mapped drive.

Does anyone know how to resolve this?

Thanks

Comments

  • vaprogvaprog Member Posts: 1,141
    Take into account that you are browsing the file system from the client but processing it from the NAV (middle tier) server. You should properly upload the file(-data) or use an UNC-Path or an identical network drive mapping on the server. Also take into account ACLs. If you access the file, the NAV Server service user needs to have access too.
  • jimmyfjimmyf Member Posts: 104
    Hi thanks for your reply.
    Could you please explain what you mean by "You should properly upload the file(-data)"
    The service account has access to the mapped drive. I have also tried to use a UNC path but that also errors with the file not being found.
  • vaprogvaprog Member Posts: 1,141
    Please see NAV C/AL documentation to
    UPLOAD Function (File)
    UPLOADINTOSTREAM Function (File)
  • Alex_ChowAlex_Chow Member Posts: 5,063
    Anyone have a solution to this? We have a client that uses mapped network drives to upload files into NAV. After upload, they will move the file to an archive drive.

    Because of number of servers, it doesn't make sense to use the UNC drive. The users prefer to use the mapped network drives.
  • yukonyukon Member Posts: 361
    Hi Alex,

    Can be solve below code to your issue?
    Code unit - File Management
    File Management.MoveFile (not move the file. copy the file first after that delete the source file)
    File Management.CopyClientFile
    

    Best Regards,
    Yukon
    Make Simple & Easy
Sign In or Register to comment.