Posts

Dynamics 365 Error : Unable to resolve dependency dynamicsax-dimensionsformadaptor

We were removing over layering from our code and while creating deployment package we got this error "Unable to resolve dependency dynamicsax-dimensionsformadaptor". This error comes because we were not including some models. So what you have to do is to check model dependency hierarchy and see on which models have dependency. Just include those models in your deployment or remove reference of model from your model. To check model dependency hierarchy in AOT model view right click on model and  View Package Dependencies > View Incoming References. To remove model reference  go to Dynamics 365 > Model Management > Update Model Parameters select your model and uncheck model which you want to exclude.

D365 Enable/Disable maintenance mode for DEV and UAT

There are two ways you can enable maintenance mode. 1. COMMAND: To enable maintenance mode open command prompt as Admin and execute below command J:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir J:\AosService\PackagesLocalDirectory --bindir J:\AosService\PackagesLocalDirectory\Bin --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd ********* --setupmode maintenancemode --isinmaintenancemode true' To disable maintenance mode open command prompt as Admin and execute below command J:\AosService\PackagesLocalDirectory\Bin\Microsoft.Dynamics.AX.Deployment.Setup.exe --metadatadir J:\AosService\PackagesLocalDirectory --bindir J:\AosService\PackagesLocalDirectory\Bin --sqlserver . --sqldatabase axdb --sqluser axdbadmin --sqlpwd ********* --setupmode maintenancemode --isinmaintenancemode false Make sure you give the correct path of AOS service directory. 2. SQL: To enable maintenance mode write below query on sql se...

Could not load file or assembly 'Microsoft.Dynamics.BusinessConnectorNet' or one of its dependencies. An attempt was made to load a program with an incorrect format.

Image
Recently we were developing web service that that perform CRUD operation on AX 2009. We use business connector dll for this task. When we deploy app on IIS we start getting following error. Could not load file or assembly 'Microsoft.Dynamics.BusinessConnectorNet' or one of its dependencies. An attempt was made to load a program with an incorrect format. Dynamics AX .NET Business Connector contains both managed code and unmanaged 32-bit x86 code and as such it cannot be loaded by a 64-bit application. We resolved our issue by enabling 32 bit application in IIS. 1. Go to IIS. 2. Select you application pool. 3. Click Advance setting. 4. Set Enable 32-Bit Application to true.

Management Reporter Issue

Dynamics ax 365 display method

As we cannot create new method in exiting (Microsoft don't recommend overlayering) or extension table. We have to create extension class to add display method. First you have to create extension and add display method in it. public static class CustTable_Extension {   [SysClientCacheDataMethodAttribute(true)]   public static display str customerGroup(CustTable_this)  {     CustTable custTable;    select custTable    where custTable.AccountNum== _this.AccountNum;    return custTable.CustGroup;   } } To use this method in form you have to set DataMethod as CustTable_Extension::customerGroup and CacheDataMethod as YES.

The model specified on the project cannot be found

This error occurred when you pull latest code from one machine to another.“ The model <ModelName> specified on the project cannot be found. ”. This occurred because you haven't added descriptor in TFS. To add descriptor first create such folder locally inside your model repository and drag and drop the descriptor folder from there to the TFS branch. Then push your changes.Move to next system get latest and after that you have to refresh the model. To do this go to Dynamics AX and select refresh model. Now build your model hopefully your issue will be resolved.

Dynamics 365 : Breakpoint not hit in Visual studio

Image
Some time while development in Visual Studio and while debugging you receive message "The breakpoint will not currently be hit. No symbols have been loaded for this document." This issue can be resolved by following steps   1. From tool bar go to Dynamics 365 and select option   2. Choose Debugging option from list and uncheck the Load symbols only for items in the solution   Now try again.