web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Function 'GetTempFileNameW' in DLL library 'KERNEL32' has caused an exception

(0) ShareShare
ReportReport
Posted on by 14,855

Dear 

We are facing an issue when trying to print from the enterprise portal to PDF using the printjobsetting class, we are receiving the below error:

Function 'GetTempFileNameW' in DLL library 'KERNEL32' has caused an exception

we would appreciate your feedback , thank you 

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Luegisdorf reported that this happen if you use GetTempFileNameW in a Business Connector session on 64-bit system. If the call is in your code or in code that you can change, try replacing it with System.IO.Path::GetTempFileName().

  • Abdo Khoury Profile Picture
    14,855 on at

    Hello Martin

    this you for the above, we are working on Dynamics AX 2012 R2 , can you kindly highlight which classes we need to change?

    thank you so much for your help

    Regards

  • Martin Dráb Profile Picture
    237,965 Most Valuable Professional on at

    Sorry, I don't your code nor where the error is thrown in your case.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans