Thursday 23 April 2020

Refreshing the caller form in d365

 public void close()
    {   
        next close();
        FormRun calledFomr = @this.localFormRun;
        Formdatasource  callingformdatasource = calledFomr.dataSource();
        callingformdatasource.refresh();
        callingformdatasource.reread();
        callingformdatasource.research(true);
    }

Sunday 19 April 2020

AX7/D365/Operations: Data entities export data error

Error1


 Exception:

While exporting data from local VM of Dynamics 365 for Operations, you might get an error if the Azure storage emulator is not running.
Microsoft.WindowsAzure.Storage.StorageException: Unable to connect to the remote server —> System.Net.WebException: Unable to connect to the remote server —> System.Net.Sockets.SocketException: No connection could be made because the target machine actively refused it.

Resolution:

You can start the Azure storage emulator by following the steps below:
  1. On OneBox VM, run command prompt as administrator.
  2. Navigate to “C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\”
  3. Run “AzureStorageEmulator.exe start”
This should resolve the issue reported above which surfaces while exporting data through data entities in Dynamics 365 for Operations.
Emulator

Thursday 16 April 2020

Change Tracking For Entity Export

When we are trying to change track  the entity it is giving error like sql is not set to change tracking. Then we need to execute below code

AXDBECO - AX data base name

ALTER DATABASE AXDBECO
SET CHANGE_TRACKING = ON
(CHANGE_RETENTION = 2 DAYS, AUTO_CLEANUP = ON)