D365 -Publishing Entities (BYOD)

Microsoft released the Dynamics 365 on November 01, 2016. With that Microsoft also release the VM for the solution as well – you can download it from https://connect.microsoft.com/site1321/Downloads

(You need to be registered in the feedback program to download)

After setting it all up, I tried to publish the entities to external database. It all looked easy, but while trying to do faced some exceptions as it was not able to find assemblies to actually execute the publish commands.

Below is the first error received, the SMO assembly for SQL Server was not loaded. error-loading-assemly

Now to resolve this follow below steps:

  1. You can find this and other related assemblies in the C:\AOSService\PackagesLocalDirectory\Bin folder for your local VM.
  2. After locating the assembly – drag it to c:\windows\assembly folder on your local VM. It will register it in the GAC. Don’t get confused by the assembly version in the properties of it. It will correctly display as 13.100.0.0  in the GAC.
  3. Restart the “Microsoft Dynamics 365 for Operations – Data Import/Export Framework Service” from windows services
  4. Reset IIS from Command prompt running in Administrator mode
  5. Refresh the Dynamics AX, and publish the entities again after selecting

publish-done

When you will refresh the page – you will see “published” column indicating the successful operation.

publish-indicators

The database chosen for this will have the Schema published for the selected entities. Please note the name of the columns will be different than what actually are in the actual AX tables. I am sure you can change them – but that’s for some next article.

Example: SalesTable.SalesId == SalesOrderHeaderEntityStaging.SalesOrderNumber … (In Staging)

sql-published

Next, you can use “Export” framework to export data to this database. Will find some time soon to go through further details on it. In the mean time please see Microsoft wiki on the topic. It’s a great help.

Until next time … Enjoy!

 

 

 

Advertisement

6 thoughts on “D365 -Publishing Entities (BYOD)

  1. Hi,

    I tried above steps but the error doesn’t get resolved. However, I used gacutil for registering .dll in GAC.

      • Sorry I didn’t add all assembly. When I add smo, it was asking for another .dll. But now added all assembly and successfully published entity store.
        But when I try to export data, it is showing below error.

        “An Error occurred in add data flow component for Entity Store”

  2. I get the same error “An Error occurred in add data flow component for Entity Store” Did you find resolution for this?

  3. @Narayan,
    try republishing the entity from the data entities form.
    1) go to data entities form
    2) enable change tracking (again), the change tracking state will show as “None” even though it was enabled from the “Configure Entity export to database-> Publish” form earlier
    3) Publish the entity. You will be prompted that it has already been published and must be dropped.

    These steps fixed it for me. Also, you made need to regenerate the entities mapping from scratch.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.