
Background:
We have a LogicApp which is trying to export data incrementally from D365 from standard General Journal Lines entity. It worked fine till recently when we added more filters in the query. Now we noticed that the LogicApp is timing out after 2 mins when calling the ExportToPackage API in async mode. The API is responding back to the http call after finishing the export which is taking more than 2 mins (3-4 mins). Then async mode is configured in LogicApp and the API should actually return the Execution ID immediately and not wait until all records are exported.
Analysis:
This makes me suspect that the API is working in synchronous mode. The below MS URL suggests that there is async version and the API name is ExportToPackageAsync.
However, I get below error when I try to use the API (Tested in browser)
https://[MYURL]/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ImportFromPackageAsync
https://[MYURL]/data/DataManagementDefinitionGroups/Microsoft.Dynamics.DataEntities.ImportFromPackage
I did read about enabling a flight DMFExportToPackageForceSync which i tried but i still don't see the http route.
How to use this async version?
Would suggest you to log a Microsoft support ticket, showcase the issue details to Suport engineer and get issue clarified.