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
    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
    60,228 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans