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)

Method 'send' in COM object of class 'CDO.Message' Issue only in Batch job Class

(0) ShareShare
ReportReport
Posted on by 499

Hi 

I have above error in my batch job class run method 

My notes

1.The batch i have configured can able to perform other task like updating any table value

(I updated table value just to make sure that batch is proper)

2.I have pasted the same code in AOT Job where , the job is successful in sending mail 

(So email parameters are correct)

3.Right now i don't have any attachments in sending mails.

4.Run on property for my class is set to "Called from"

5.Class is having runsImpersonated() method which is returning false

6.In Batch job "View task" setting the Run Location is server & i have not set any conditions.

7. I am testing the job in AOS Server itself (test server)

8.In Tools-->Options-->Development , Run business operations in CIL is checked I temporarily un cheked and tried still issue is there with error

Method 'send' in COM object of class 'CDO.Message' returned error code 0x80040211 (<unknown>) which means: <unknown>.

I got code from below link which is working fine in AOT Job . but not in batch job

https://www.tech.alirazazaidi.com/sending-email-using-x-code-dynamics-ax-2012/

please help me..

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    In AX2012 in the InventOnHandItemListPage I need to be able to f Profile Picture
    499 on at

    Hi

    I found that after replacing SysMailer's  sendMail(); method with quickSend();,

    Now my batch job is working.

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