web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Microsoft.Dynamics.DataEntities.ExportToPackage - Not creating a execution in Job History - D365 FO

(0) ShareShare
ReportReport
Posted on by 2,032

Hi,

I am calling the API method " Microsoft.Dynamics.DataEntities.ExportToPackage " from Logic apps . The recurrence is set to 4am every day.

The issue doesn't occur often. But not sure why this happens. Given below the details 

First step: Call API ExportToPackage. URL is https://D365FOURL/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ExportToPackage

DDMRP1.PNG

Step2 : I could see the API call creates a new execution 

DDMRP2.png

When I check in D365FO, I do not find any such execution Id 

DDMPR3.PNG

Though I give a delay of 25 seconds in Logic apps to move to the next step to GetExportedPackageURL, with this missing execution id, the step fails

pastedimage1599134619155v1.png

I tried checking in event viewer and did not find any error in the given time and it shows the execution id. 

pastedimage1599134701864v2.png

pastedimage1599135501555v1.png

When I resubmit the run again, the execution is successful.

Could you please advise on where I need to focus ?

I have the same question (0)
  • Suggested answer
    Sergei Minozhenko Profile Picture
    23,095 on at

    Hi AnithaEswaran,

    Instead of using Delay between ExportPackage and GetExportedPackageURL, you need to implement a loop with a call to GetExecutionSummaryStatus to check if the package is ready to be downloaded. Most likely you see the error because export was not finished after it was requested within 25 seconds. Check also export process diagram from docs.

    docs.microsoft.com/.../data-management-api

    docs.microsoft.com/.../data-management-api

  • AnithaEswaran Profile Picture
    2,032 on at

    Thank you Sergei.

    In my case, ExportToPackage doesn`t create ExecutionId in D365FO. This doesnt happen often.

    As mentioned in the second link,     GetExecutionSummaryStatus works only if the execution Id exists in Ax.  

  • Suggested answer
    Deekshit Addepalli Profile Picture
    Microsoft Employee on at

    Is the async processing flight enabled? There was a bug a while ago that showed this behavior with the DMF API. Not sure what PU you are on, but try enabling the async flight and run through your tests again

  • AnithaEswaran Profile Picture
    2,032 on at

    I am using PU36 .  Can you confirm if the bug is on this PU ?

    May I know where should I check on Async processing flight?

  • Sergei Minozhenko Profile Picture
    23,095 on at

    Hi AnithaEswaran ,

    GetExecutionSummaryStatus checks not only the execution table but also DMFExecutionAsync table where execution is created during async run. It can also fail, but in this case, you can re-run ExportPackage step. Async executions can be delayed if there is a heavy load on the backend, so if you don't see execution right after you executed ExportPackage, it doesn't mean that it failed, it can be executed later, but GetExecutionSummaryStatus call can give you understanding if the execution record was created or not.

    There is also flight DMFDisableExportAsyncRecordCreation, which activates check that async thread creates execution before ExecutionId will be returned in the response for ExportPackage, but in your case, ExportPackage step will fail.

    Anyway, I recommend using GetExecutionSummaryStatus for error handling and status check instead of delay.

  • Art Richmond Profile Picture
    5 on at

    We are seeing the same issue.  The post returns at status of 200 and execution ID, but the export project is never activated or logged.  You can wait a long as you like, the export package will never be created.

    It happens more often when the instance is under heavy load but also happens when pretty much nothing else is going on.

    Where is this in flight DMFDisableExportAsyncRecordCreation setting?

  • Sergei Minozhenko Profile Picture
    23,095 on at

    Hi Art,

    Are you looking information how activate the flight?

    docs.microsoft.com/.../data-entities-data-packages

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 608

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 591 Super User 2026 Season 1

#3
CP04-islander Profile Picture

CP04-islander 430

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans