Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

Unable to send invoices after year end update - MSGraphEmailSendEmail

(1) ShareShare
ReportReport
Posted on by 394
Having an odd issue after the EOY update.

When we send an email out in the sales module, for some, but not all invoices in the batch we get the following message:
 
The following errors were found while attempting to send the document in e-mail:/, /There were one or more issues when processing email, please review the DynamicsGP_MSGraphEmail.log file in the temp directory/
 
Opening the log file up we get this lovely message:
<MSGraphEmailSendEmail>d__35.MoveNext - Object reference not set to an instance of an object
 
Things i've tried:
Removing the graph ID in mail setup
Adding it back as global admin
Adding the shared mailbox permission even though we aren't using shared mailboxes.
Opened a case with Microsoft, but it's been two weeks and we're not making any progress there.
 
I've since had to convert everyone back from using the MFA solution back to regular old outlook email, which required an office rollback.
 
Just wondering if anyone else had run into this problem after year end.
Categories:
  • Unable to send invoices after year end update - MSGraphEmailSendEmail
    Neal's quick and dirty script did work for our test DB as well as the production DB. We did backup that SY01200 table in PROD just in case we needed to revert quickly. Our GP Support rep is checking with their MS contact to make sure the script Neal suggested doesn't cause any issues down the road.
     
    THANK YOU Neal Santin!
  • Suggested answer
    Neal Santin Profile Picture
    Neal Santin 106 on at
    Unable to send invoices after year end update - MSGraphEmailSendEmail
    Here is a "quick and dirty" script to move all BCCs to the CC if the CC is not populated and get around this issue.
    *provided AS-IS, unofficial, use at own risk*

            UPDATE SY01200 
            SET EmailCcAddress = EmailBccAddress,
                EmailBccAddress  = ''
            WHERE CONVERT(VARCHAR(MAX),EmailBccAddress) <> ''  and  CONVERT(VARCHAR(MAX),EmailCcAddress)  = ''
     
  • Suggested answer
    Terry R Heley Profile Picture
    Terry R Heley Microsoft Employee on at
    Unable to send invoices after year end update - MSGraphEmailSendEmail
    Thanks for all the discussion in the forums and reporting this.  
    This has been confirmed an issue with Dynamics GP and it started happening with some of the changes that were made in the 18.6 RTM release, 18.6.1685.
    The issue is targeted to be fixed in the mid-year update around June/July of 2024, there is an easy workaround as the issue only happens when the CC is not populated, but you have the BCC populated, this is why some emails work, and some may fail with the error message.  Populate the CC field and all emails will work for the time being.
     
    Thanks
    Terry Heley
    Microsoft
  • Neal Santin Profile Picture
    Neal Santin 106 on at
    Unable to send invoices after year end update - MSGraphEmailSendEmail
    Same issue with us as well when sending emails with BCCs, and resetting the Azure/Entra setup proposed by Terry does not resolve the issue.
     
    We're finding it sporadic, some emails (SOP Invoices) with a BCC will send, but some will not. We auto add the same BCC address to every new customer (via custom trigger), so we can't see any difference between the ones that work vs not work.  The ones that fail, will fail for any user on any workstation until the BCC is removed.  
     
     
  • Verified answer
    Kevin Rasmussen Profile Picture
    Kevin Rasmussen 74 on at
    Unable to send invoices after year end update - MSGraphEmailSendEmail
    We've also experienced this issue with both 18.6 RTM (18.6.1685) and the 2023 year-end update (18.6.1695). As others have stated, it occurs only when the BCC line contains data. Removing and re-adding the Tools > Setup > Company > E-mail Settings > Application (Client) ID value does not resolve the issue, nor does creating a new Azure App Registration (either multi or single tenant).

    This issue appears to affect any email that includes BCC addresses - this problem was initially reported to EthoTech when emailing Commission Plan reports, as we utilize the Dynamics GP email send functionality. We have been unable to replicate the issue in 18.5 or earlier.

    Update: if I also include CC addresses, the email sends without error; however, the BCC addresses are moved to the CC line in the resulting email.
  • Steven Vallarian Profile Picture
    Steven Vallarian 394 on at
    Unable to send invoices after year end update - MSGraphEmailSendEmail
    Daniel,
     
    Rolled back to Version 1811 (Build 11029.20079) and disabled office updates
    See 
     
    Michael,
     
    Super! I'll give that a try because we are leaning heavy on the bcc: line!
     
     
  • Unable to send invoices after year end update - MSGraphEmailSendEmail
    Ran into this issue today and found that if you remove the BCC email addresses, the emails seem to send. In our case, we just cut from BCC and pasted into CC. Still working with Microsoft support to see if we can get it resolved altogether but this was a temporary fix.
     
  • Unable to send invoices after year end update - MSGraphEmailSendEmail
    We are also getting the same issue as described and after redoing the app registration still get the same issue, <MSGraphEmailSendEmail>d__35.MoveNext - Object reference not set to an instance of an object. Our GP retailer have said the put  aticket in with Microsoft but haven't heard back from them. Seems to be a Microsoft issue and not on individual users setups.
  • Unable to send invoices after year end update - MSGraphEmailSendEmail
    Just to add our 2 cents at our Org. We are experiencing the exact same issue. Same Log file message, Have run thru the exact same troubleshooting steps listed above. Also have a case with MS open but it doesn't seem they have any suggestions that have made any progress on this issue whatsoever.
     
    We also made a brand new enterprise app and tried using that, removed old client ID from email setup in GP, closed and reopened GP, added new client ID, logged in as Global Admin, granted permissions, then signed in with the user account we have that sends these automated emails out when doing a remit and we get that "<MSGraphEmailSendEmail>d__35.MoveNext - Object reference not set to an instance of an object" error no matter what we do.
     
    I will see about excluding this user and the account we have that sends the automated emails out with a remit/payment and see if that will help her out.
     
    What office version did you rollback to? Did you use a specific version or specific update channel when doing the roll back?
  • Suggested answer
    Terry R Heley Profile Picture
    Terry R Heley Microsoft Employee on at
    Unable to send invoices after year end update - MSGraphEmailSendEmail
    Hello Steven, 
     
    If they had MFA on prior and you upgrade, you need to run through the steps in this blog.
     
    Thanks
    Terry Heley 
    Microsoft 

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,476 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans