Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

NAV 2016 Temporary file location used by "Print and Send" - can it be changed?

(0) ShareShare
ReportReport
Posted on by

Hi all,

We have several NAV databases, so we have set up a number of shortcuts that use the "-settings" parameter to point to a different ".config" file.  These config files are stored in a directory on a server where the users do NOT have write/delete permissions - only read.

When using the "Print and Send" to Excel feature, users are getting the following error:

Configuration file error:

An error occurred loading a configuration file: Access to the path 'J:\CApp\RTC\2xokkuwh.tmp' is denied. (J:\CApp\RTC\Nav2016Test.config)

So, from this message, I have inferred that NAV uses the directory where the .config file is for a temporary file in generating Excel (or Word) output.

If I change the -settings command to point to a directory where the user has full permissions (or remove the -settings command completely so it defaults to the standard location), the Print to Excel works fine.

SO, my questions are:

1. Can the location that NAV uses for these temporary files be changed to some directory OTHER than the location of the .config file, and 

2. If so, how?

Thanks

Ron Saritzky

*This post is locked for comments

  • rsaritzky Profile Picture
    rsaritzky on at
    RE: NAV 2016 Temporary file location used by "Print and Send" - can it be changed?

    It appears (only from observation) that the temp file used by the "Print and Send" feature is not controlled by the TempFilePath setting.  However, if you create a temp file using TEMPFILEPATH or one of the file management functions, it does use the TempFilePath directory.

    This surprised me also...

    Ron

  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,161 Super User 2025 Season 1 on at
    RE: NAV 2016 Temporary file location used by "Print and Send" - can it be changed?

    I was in impression that NAV creates temp files defined under Tools-->Options-->TempFilePath

    Am I wrong?

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans