• Skip to main content
  • Skip to primary sidebar
  • Home
  • About
  • Recommended Readings
    • 2022 Book Reading
    • 2023 Recommended Readings
    • Book Reading 2024
    • Book Reading 2025
    • Book Reading 2026
  • 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

Tips and tricks

Dynamics Ax 2012 R3 Cu8 demo data download link

January 25, 2015 by alirazazaidi

 

Demo data file for Dynamics Ax 2012 R3 CU8 is available for download. You can download it from following link

https://mbs.microsoft.com/partnersource/northamerica/sales-marketing/demo-tools/virtual-machines/AX2012DemoToolsMaterials

To log on here you must have partner source or customer source credentials.


1-23-2015 2-06-47 PM

 

unable to save method … Dynamics Ax 2012 R3

January 19, 2015 by alirazazaidi

I got error message ” Unable to save method init” during saving the form.   While surprising it gives no error on compiling the code. I also found some errors on classes too, I solved it by following way, possible it helps,

 

1-19-2015 7-12-33 PM

 

How to check Dynamics Ax 2012 form is in edit mode

January 16, 2015 by alirazazaidi

During development, I wrote code in clicked event of Button. But requirement is that code will works only if form is in edit mode. I used following code to check it

 

boolean _bool;

supper();

_bool=   element.inViewMode();

if (_bool==boolean::true)
{
info (“true”);
}
else
{
info (“false”);
}

This  method element.inViewMode() return true when form is view mode.
 

File load dialog in Dynamics Ax 2012

January 4, 2015 by alirazazaidi

Some times we have to load files into dynamics Ax. Following X++ code helps to load files in Dynamics AX.

Dialog _dialog;
DialogField _file;
;

//Prompt to import excel
_dialog = new Dialog(“Please select the file to load”);
_dialog.addText(“Select file:”);
_file = _dialog.addField(ExtendedTypeStr(“FilenameOpen”));

_dialog.run();

if (_dialog.closedOK())
{
info(_file.value() );
}

File load

ddd

Session Date and time in Dynamics Ax 2012

December 23, 2014 by alirazazaidi

In dynamics Ax 2012, session date is appear in status bar. User can change it if required.

If you want to change it you can click on it fil=> tools=> session date and time

12-23-2014 7-20-10 PM

 

 

 

On click it similar form will appear.

Session Date and time

 

If session Date is not appear in Status bar, then you have to enable it from following link

 

 

File > Tools > Option s > Status bar

12-23-2014 7-25-36 PM

Enable session date time by clicking on “Show session date:”

 

12-23-2014 7-26-29 PM

 

Dynamics Ax 2012 BACKUP LOG cannot be performed because there is no current database backup

December 23, 2014 by alirazazaidi

After fresh installation on VM, we usually restored the database back of Production or QA server . And this technique usually applied in multi development environment. But yesterday I got this error when I tried to restore Dynamics AX database on my newly created Dynamics Ax 2012 VM.

BACKUP LOG cannot be performed because there is no current database backup. (Microsoft.SqlServer.Smo)

As per Sql Authority Website, it was backup creation issue, But surprisingly it was rights issue. I was trying to restored database from User who has not db owner or rights on the database. I switched the User and make my user as db owner, And then try to restored it. It works for me.

If this solution is not working then Please do the following.
• Stop the AOS service.
• Open BDS and delete the Dynamics Ax database.
• Restored the Dynamics Ax database from Back files
• Gave the db owner rights to service user on Dynamics Ax databases. Service user means that the user which Dynamics Ax service is running.
• Get the Current user SID by running following command in Powershell (Run as administrator).
$AdObj = New-Object System.Security.Principal.NTAccount(“administrator”)
$strSID = $AdObj.Translate([System.Security.Principal.SecurityIdentifier])
$strSID.Value

• Update the statement in database table

update userinfo set
networkdomain = ‘dynamicworlds.com’,
networkalias = ‘administrator’,
SID = ‘S-1-5-21-3030200632-4028267746-237368394-500’
where ID = ‘Admin’

Image stored in Dynamics Ax 2012 tables

December 19, 2014 by alirazazaidi

In dynamics Ax 2012, You can read image from physical path and stored in database as follow

BinData binData = new BinData();
str extention, path, nameOfFile;
container imageContainer;
str imageFilePathName;
imageFilePathName=”C:\\abc\\ali.jpg”;
// if ( WinAPI::fileExists(imageFilePathName))
{
binData.loadFile(imageFilePathName);
imageContainer = binData.getData();
table.Person = _Party.RecId;
table.Image = imageContainer;
table.insert();

}

This code runs both for server side and client side. At server side execution table use winserverapi::FileExists

Fatal exception performing AXRDCE transformation step. Dynamics Ax 2012 R3

December 2, 2014 by alirazazaidi

During development of SSRS  report I got follow error,

 

“Fatal exception performing AXRDCE transformation step. The report cannot be rendered. Please contact your system administrator.”

 

and report stop working, It working perfectly write a few hours ago. The old trick works for me.

  1. Comment all the code in processReport method of RDP class, by adding /* and */ at end.
  2. Generate Incremental CIL.
  3. Run the report. (Which will result in empty report).
  4. Remove the /* at start of method and */.
  5. Generate Incremental CIL.
  6. Run the report, it works fine.

How to enable document attachment in Dynamics Ax 2012

November 26, 2014 by alirazazaidi

 

By default document attachment is not enabled on every table. To enable document attachment you have follow following links

Organization administration > Setup > Document management > Active document tables.

11-26-2014 5-20-18 PM

 

Search and add required table ie, custTable,VendTable,hrmRecuritmentTable,hcmApplicant, hcmApplicantion in “Table name” drop down and click on check box “always enabled” and Press Ctrl+S for save

11-26-2014 5-20-45 PM

 

Hopes this works

Import Export data: Excel Add-ins with AIF service Dynamics Ax 2012

November 25, 2014 by alirazazaidi

 

If you set up Aif service data in Dynamics Ax 2012, You can easily import and export data into AX using Excel Add-in.  You can export, import data with all out of the box AIF services.  In the case of table import export in Excel add-ins then under the hood AIF metadata service used.

 

For current post I am using my exists custom document Service in Excel Add-ins. The more complex custom services can be written.

This custom service is in detail you can follow following article.

http://tech.alirazazaidi.com/creating-and-consuming-custom-document-service-in-dynamics-ax-2012-r3/

 

  • Setting up data source in Ax for Excel Add ins

ddddeeeee

 

11-25-2014 3-21-48 AM

 

 

 

Now click open the Excel and create a new worksheet. You find Dynamics Ax  tab strip as follow

11-23-2014 10-26-45 PM

 

Click  and open the connection to Dynamics Ax 2012

11-25-2014 3-23-40 AM

 

Now click on add data at tab strip and click add data

11-25-2014 3-24-16 AM

 

Select the source

11-25-2014 3-24-39 AM

Now drag and expend it to required number columns.

11-25-2014 3-32-50 AM

11-25-2014 3-34-11 AM

 

Second way to select the header and click on add row button  from Dynamics AX tab strip.

 

11-25-2014 11-12-20 AM

Enter data and click on publish button. After pressing the publish button open table explorer in AOT, data is found.

 

11-25-2014 3-47-51 AM

 

 

 

 

 

 

« 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 (64)
  • D365OF (60)
  • Data Management (1)
  • database restore (1)
  • Dynamics 365 (59)
  • Dynamics 365 for finance and operations (139)
  • Dynamics 365 for Operations (175)
  • 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