Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Download File using NAS

Posted on by 5,567

Hi All

we are trying to download file to the client folder using downloadtoclient function in file mgmt, which is working fine with windows client, if we use the same with the NAS we received the below error.

Microsoft Dynamics NAV
---------------------------

Microsoft Dynamics NAV Server attempted to issue a client callback to download a file: C:
ProgramData
Microsoft
Microsoft Dynamics NAV

TEMP
__TEMP__0f69c486b5d34323b6127beea3b2bfcb.tmp.xlsx (CodeUnit 419 File Management). Client callbacks are not supported on Microsoft Dynamics NAV Server.
---------------------------
OK
---------------------------

 we have also tried using the copy(file) function but no success

any thoughts ?

Thanks

Rajasekhar.Y

*This post is locked for comments

  • jcastro Profile Picture
    jcastro 2,245 on at
    RE: Download File using NAS

    The Downloadtoclient feature works with clients, just like the name suggests.

    If you want to download a file from within nas just use the download function.

    msdn.microsoft.com/.../dd301195.aspx

    If you want the silent download (not opening up a new window to ask you where to store the file) check this out: msdn.microsoft.com/.../dn647267.aspx

  • Suggested answer
    keoma Profile Picture
    keoma 32,675 on at
    RE: Download File using NAS

    hi,

    this scenario is not possible with the functions you used, because these function need a server and a client. running these functions out from a page (using the rtc client), there is a client. running it as nas job then there is no client, but server with server! so change the code:
    - use simple nav functions
    - OR try using dotnet functions 

    check also https://community.dynamics.com/nav/f/34/p/115355/236313.aspx

    best regards

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans