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)

Error 0x80040211 when executing batch jobs that send e-mails (AX 2009)

(0) ShareShare
ReportReport
Posted on by

Greetings!

The batch jobs we created for sending e-mails stopped working since last friday. When I took a look at the error logs, this message was shown: "Method 'send' in COM object of class 'CDO.Message' returned error code 0x80040211 (<unknown>) which means: <unknown>."

When I debugged and searched through the code, I figured out the error happened when the SysEmailParameters table Password method was used. After searching a little more, I found out the error actually happens in the WinAPIServer class CryptUnprotectData method in the following code:

arrayOfByteOutput = CLRInterop::staticInvoke('System.Security.Cryptography.ProtectedData', 'Unprotect',

       arrayOfByteInput, optionalEntropy,

       CLRInterop::parseClrEnum('System.Security.Cryptography.DataProtectionScope', 'CurrentUser'));

I could get a more specific error message (by using Try... Catch) and it was: "Key not valid for use in specified state".

This problem started after we changed the server in which the batch jobs are executed.

Surely, we must change some server configuration, I don't have any idea about what could it be and I'm not finding any clue anywhere... Can somebody help me?

Thanks in advance!

Luiz Bezerra

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at

    I found out the solution... Well, the e-mail parameters password (accessed by Administration > Configuration > E-mail Parameters) was incorrect in the server.

    I thought any updates on the password in the client would be reflected back at the server, but it did not happen.

    Anyway, that is it...

  • Community Member Profile Picture
    on at

    Hi Luiz Bezerra,

    Hope you are doing well.

    As you have specified above, the same error I have been facing it in my environment. I did reset the email parameters, though still i have been getting the same error.

    To give you more detail about environment, we have 2 different AOS servers. one dedicated Database server.

    Is there any other settings need to be checked to fix this issue.

    Thanks in advance.

    Guru.

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