• Skip to main content
  • Skip to primary sidebar
  • Home
  • About
  • Recommended Readings
    • 2022 Book Reading
    • 2023 Recommended Readings
    • Book Reading 2024
    • Book Reading 2025
  • Supply Chain Management Guide
  • PKM
  • Microsoft Excel
  • Microsoft Copilot in Office 365
  • Public Wiki Page

Ali Raza Zaidi

A practitioner’s musings on Dynamics 365 Finance and Operations

Dynamics AX 2012

Method ‘send’ in COM object of class ‘CDO.Message’ returned error and lesson learned Dynamics Ax 2012 R3.

September 16, 2018 by alirazazaidi

Very interesting scenario we faced in one customization. Requirement was very simple and developer used very code to send Email.

Usually testing will be done on dev box which has both AOS and client installed on same machine. No error occurred and code shipped to production. But when we deploy the code on production server and test the email sent functionality we got following error.




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

After trouble shoot we found that when we run the AX client from another machine pointing to AOS this error occurred. There is some network security issue which did not access rights to SMTP server while running code from Client.

So what is solution. Then we explore how Ax send email. What is out of the box solution.

We found that in out of the box functionality, AX did not send email immediately,  Instead, they stored required information in some tables and then Batch sent emails on Server.

So We changed our design and new code just inject information into out of the box tables and emails goes with out of box batch job. Only attachment part was little bit tricky.

Recommendation and lesson learned that, instead calling Smtp server directly on code, we have to use out of the box functionality and just integrate it.

Email sending to customer/vendor using built-in functionality in ax 2012
http://www.schweda.net/blog_ax.php?bid=454&vtid=YXgzMA==

Line level Charges Sales Order Processing Dynamics 365 for finance and operations

September 9, 2018 by alirazazaidi

Hi all, here is another youtube video. I used to explore things and  them document. Here I documented line level charges on sales order applied based on customer charges group and Item Charges group. English is not my native language so bear with me. 

Currency Exchange Rate, Currency Exchange Rate Provider MSDyn365FO Dynamics 365 for Finance and operations

September 1, 2018 by alirazazaidi

Hi all, Microsoft provide 3 currency Exchange rate providers, With these provider we get latest currency Exchange rates in Dynamics 365 for finance and operations. These exchange rates used when We required transactions in different currencies.  In the current web cast I used one of Exchange rate provider get latest exchange rates. Its works excellent in my local laptop hosted VM. My English is improving day by day so bear with me.

Sale Order Processing Part 6 Manual Charges Video- D365 for Finance and Operations t

August 19, 2018 by alirazazaidi

This is 6th to the point video in Sales order processing series, where I shared the manual charges applied on Sale Order Header. Hope this helps.

Sale Order Processing Part 5 Sales Order Confirmation Video- D365 for Finance and Operations

August 6, 2018 by alirazazaidi

This is 5th video in Sales order processing D365 for finance and operations. Sales order creation and sale order confirmation.

 

Sale Order Processing Part 4 Line Level Discount Sales Trade Agreement Video- D365 for Finance and Operations

July 28, 2018 by alirazazaidi

Fourth video in Sale order processing video series. I shared very precise how to, Line level discount trade agreement and apply it on Sales order.

MICROSOFT RELEASES OCTOBER 2018 FEATURES ROADMAP FOR BUSINESS APPLICATIONS

July 28, 2018 by alirazazaidi

You can found document   here.

Sale Order Processing Part 3 Price Listing Sales Trade Agreement Video- D365 for Finance and Operations

July 22, 2018 by alirazazaidi

This is third video in Sale order Processing series using D365 for finance and operations. We use trade agreements for Price listing for Customer or group of customers.

 

Sale Order Processing Part 1 Customer Creation Video- D365 For Finance and Operations

July 18, 2018 by alirazazaidi

Trying:exec BudgetControlCheckBudgetProc :BudgetControlCheckBudgetProc: Dynamics Ax 2012 R3

July 10, 2018 by alirazazaidi

Hi all I faced this error on Production server.  Error occur when User Post Purchase Invoice.

[Microsoft][SQL Server Native Client 11.0][SQL Server]BudgetControlProcessProc ( in
SysRaiseErrorProc): Trying:exec BudgetControlCheckBudgetProc :BudgetControlCheckBudgetProc:
Trying:Initial insert #BSTDStage – BudgetSourceTrackingDetail:String or binary data would be
truncated.(8152) at line 369 at line 67

 

 

Solution: I found out of box length of Purchase Invoice number is 20. Some one extend the length and it is used notes like functionality. But extension of length did not reflect on BudgetControlCheckBudgetProc.

When we enter the Purchase Invoice number value as 20. Invoice is posted without error.

 

 

 

« Previous Page
Next Page »

Primary Sidebar

About

I am Dynamics AX/365 Finance and Operations consultant with years of implementation experience. I has helped several businesses implement and succeed with Dynamics AX/365 Finance and Operations. The goal of this website is to share insights, tips, and tricks to help end users and IT professionals.

Legal

Content published on this website are opinions, insights, tips, and tricks we have gained from years of Dynamics consulting and may not represent the opinions or views of any current or past employer. Any changes to an ERP system should be thoroughly tested before implementation.

Categories

  • Accounts Payable (2)
  • Advance Warehouse (2)
  • AI (3)
  • Asset Management (3)
  • Azure Functions (1)
  • Books (6)
  • Certification Guide (3)
  • ChatGPT (3)
  • Claude (1)
  • Customization Tips for D365 for Finance and Operations (63)
  • D365OF (60)
  • Data Management (1)
  • database restore (1)
  • Dynamics 365 (59)
  • Dynamics 365 for finance and operations (139)
  • Dynamics 365 for Operations (174)
  • Dynamics AX (AX 7) (134)
  • Dynamics AX 2012 (274)
  • Dynamics Ax 2012 Forms (13)
  • Dynamics Ax 2012 functional side (16)
  • Dynamics Ax 2012 Reporting SSRS Reports. (31)
  • Dynamics Ax 2012 Technical Side (52)
  • Dynamics Ax 7 (65)
  • Exam MB-330: Microsoft Dynamics 365 Supply Chain Management (7)
  • Excel Addin (1)
  • Favorites (12)
  • Financial Modules (6)
  • Functional (8)
  • General Journal (1)
  • Implementations (1)
  • Ledger (1)
  • Lifecycle Services (1)
  • Logseq (4)
  • Management Reporter (1)
  • Microsoft Excel (4)
  • MS Dynamics Ax 7 (64)
  • MVP summit (1)
  • MVP summit 2016 (1)
  • New Dynamics Ax (19)
  • Non Defined (9)
  • Note taking Apps (2)
  • Obsidian (4)
  • Personal Knowledge Management (3)
  • PKM (16)
  • Power Platform (6)
  • Procurement (5)
  • procurement and sourcing (6)
  • Product Information Management (4)
  • Product Management (6)
  • Production Control D365 for Finance and Operations (10)
  • Sale Order Process (10)
  • Sale Order Processing (10)
  • Sales and Distribution (5)
  • Soft Skill (1)
  • Supply Chain Management D365 F&O (5)
  • Tips and tricks (278)
  • Uncategorized (165)
  • Upgrade (1)
  • Web Cast (7)
  • White papers (4)
  • X++ (10)

Wiki

  • SCM

Copyright © 2026 · Magazine Pro On Genesis Framework · WordPress · Log in