My notes on Dynamics 365 Data Export Service


Recently we configured Data Export Service in our Production environment. The idea was to export the data to Azure SQL DB that can be used for Power BI report.

https://nishantrana.me/2017/03/19/configuring-data-export-service-in-microsoft-dynamics-365/

Pros:

  • Easy to configure.
  • Takes care of incremental changes.
  • Easy to check the status

Cons:

Issues with the Failed records.

For e.g.

We have around 200K records failed for one entity as shown below.

There is preview feature added for retrying the sync for the failed records.

Clicking on Resync Failed Records didn’t help much here as we didn’t see any change in the count of failed records.

And now we are getting the below message for it.

It has been more than 24 HOURS when we had started the Failed Records Synchronization.

This feature being still in preview, we can expect few things not working.

So how do we deal with failed records, how do we figure out the reason for them failing so that we could correct it and retry our export ?

For this we can use the Failed Records feature of Data Export Service to get the logs of the failed records

It will give us a Blob URL, which is valid for 24 hours, to which we can connect through Azure Storage Explorer and check the logs.

Copy the Blob URL

Download the Azure Storage Explorer

https://azure.microsoft.com/en-us/features/storage-explorer/

Open Azure Storage Explorer, select the Account section and click on Add an Account.

Select “Use a shared access signature URI” option and click on Next.

Paste the copied Blob URL

Click Next to get the connection summary and click Connect.

After connecting we should be able to see the log

However in our scenario, the blog container was always blank. Ideally it should have the following information

One more limitation that we need to be aware of is that Activity type entities are not supported.

https://technet.microsoft.com/en-us/library/mt744592.aspx#Anchor_17

And also if we delete one of the entities from the export profile and plan to add it later to the same profile or to a new profile, we need to delete its table and corresponding user defined type from the Azure SQL DB else we will get the exception.

https://technet.microsoft.com/en-us/library/mt744592.aspx#Anchor_14

Considering how easy it is to configure and takes care of the incremental data, this feature is well worth considering, however it is the failed records things that could prove a challenge, if we don’t have the logs for them or we are not able to fix them as we do not have much control over the things when compared to writing a custom code or using some tool like KingswaySoft Adapter.

Hope this helps..

Earned “Top 10 in September 2018 Blog Leaderboard” badge in Dynamics 365 Community


I have my blog syndicated to Dynamics 365 Community.

We can request our existing blog to be syndicated to Microsoft Dynamics Community which I would strongly recommend all the Dynamics 365 bloggers out there.

Click the below link to get all the details à

https://community.dynamics.com/w/help/136.request-a-new-blog-or-blog-to-syndicate

With blog syndicated, your blog post would also be published to Dynamics community as well and active participation in the community, either through blog post or through answering in forums etc. is rewarded through badges by Microsoft, which I believe is nice way of encouraging and recognizing the community contributors.

Check all the badges here à

https://community.dynamics.com/badges

In fact, there is a badge if you ask your first question in the forum

For last month September 2018, I got the Top 10 in September 2018 Blog Leaderboard badge

We can also check our rank in the leaderboard

https://community.dynamics.com/leaderboards/243

We can also check the leaderboard for the lifetime

https://community.dynamics.com/leaderboards/2

Our Dynamics Community is one of the best out there and so would also request and recommend all the Dynamics 365 Professionals to actively participate and contribute in the community, ask question regarding the issues you are facing, answer few of them or at least read all the answered questions to see what issues one can face during the implementation and the solution to it.

Keep learning..

Error validating profile registration while configuring Microsoft Dynamics 365 Data Export Service


While configuring the Data Export Service we got the below error while validating the profile

It mostly occurs if there is some issue with the connection string specified in the PowerShell Script used for generating the key vault.

Always copy the connection string from the Azure SQL Connection Strings property and double check the username and password provided there. And make sure the user specified has all the required rights.

https://technet.microsoft.com/en-us/library/mt744592.aspx#Anchor_1

Correcting the connection string resulted in successful validation of the export profile.

Hope it helps..

Could not load file or assembly ‘CrmLibraries, Version=8.0.0.0’ while using Microsoft Dynamics 365 Developer Toolkit


While trying to deploy Plugin through Developer Toolkit we got the below error

Could not load file or assembly ‘CrmLibraries, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35’ or one of its dependencies. The system cannot find the file specified.

   at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)

We will get this error if we haven’t configured the path to Plug-in Registration Tool and CRM SDK Bin Directory in our Visual Studio


Hope it helps..

 

“An error occurred when verifying security for the message” in Dynamics 365 CE


While trying to connect to Dynamics 365 CE through a console application we were getting the below error.

“An unsecured or incorrectly secured fault was received from the other party”

“An error occurred when verifying security for the message”

Changing the version of the assemblies referenced, changing the target version of the framework etc. didn’t help.

Eventually we realized that the Date and time was incorrect in the machine (was one day ahead). It is 27th September while writing this blog post.

Correcting it fixed the issue.

Hope it helps..

The type or namespace name Xrm could not be found (are you missing a using directive or an assembly reference?) error while using Azure Functions 2.x


Recently while working on Azure Functions (https://nishantrana.me/category/azure-functions/), we started getting the error that type or namespace Xrm could not be found.

We had added the project.json file with appropriate NuGet Package reference inside it

It was later we realized that project.json file have been replaced with function.proj in Azure Function 2.0.

More details here

https://blogs.msdn.microsoft.com/cjaliaga/2018/01/21/installing-nuget-packages-in-azure-functions-2-x-runtime-preview/

Hope it helps..