Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

Invoice PDF attachment name containing full file path

Posted on by 145

Hello, 

We have a customer on Dynamics GP 2016 R2 then when sending invoices as PDF attachments, the document name will contain the full file path e.g "C:\Users\username\AppData\Temp\18\CompanyName - Invoice Number. 

It seems like its happening when receiving the email into Outlook 2016 and higher as it wasen't happening in 2013. Has anyone else had this problem or know a way to fix it?

Kind regards,

Matt

Categories:
  • Victoria Yudin Profile Picture
    Victoria Yudin 22,766 on at
    RE: Invoice PDF attachment name containing full file path

    This is an old thread, so I was wondering if anyone had any new suggestions for this? The suggested fix for changing the registry (instead of the Win.ini file) did not do the trick. 

    - Victoria

  • Suggested answer
    Shannon Aune Profile Picture
    Shannon Aune on at
    RE: Invoice PDF attachment name containing full file path

    Hi Matt,

    This can occur if you are updating your Win.ini file to MAPIX = 1 or MAPI = 1 as a workaround for the Outlook message ‘A program is trying to send an e-mail message on your behalf’ rather than fixing the issue in Outlook itself.  

    If you go through the steps in the following blog, one of the side effects is that the file name will pick up the file path from the temp folder with it.   

    A program is trying to send an e-mail message on your behalf when trying to send a Template via E-mail

    community.dynamics.com/.../draft-a-program-is-trying-to-send-an-e-mail-message-on-your-behalf-when-trying-to-send-a-template-via-e-mail

    To avoid the file path changing you must remove MAPIX=1 from my Win.ini file (C:\Windows\) and restarted GP and Outlook, or change your system preferences to email using Exchange rather than MAPI (Tools>>Setup>>System>>System Preferences).  

    If this brings back the Outlook Prompt, instead of using the quick/fix workaround from the blog, you need to properly address that prompt in Outlook/Exchange to trust the Microsoft Dynamics GP Application automatically with emails.  This would be handled by the Office team as this is not a Microsoft Dynamics GP warning message, but is an Outlook warning message that occurs based on your environment’s setup.  

    I hope this helps.

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

Product updates

Dynamics 365 release plans