I'm working on sample inbound integration, that'd use Data Management Import job, via LogicApps. I'm experiencing error message that doesn't make sense for me. Please give me a hint, where to look for a solution.
Integration, based on this example:
https://github.com/Microsoft/Dynamics-AX-Integration/wiki/File-based-integration-using-Logic-Apps
I'm processing basic and standard entity (Customer Group), it works fine directly from D365O.
When processing via LogicApps
# it manages to read the file from OneDrive
# write it to BLOB storage
# the step "Initiate package import" just fails.
Inbound message:
{ "host": { "api": { "runtimeUrl": "logic-apis-westus2.azure-apim.net/.../dynamicsax" }, "connection": { "name": "/subscriptions/435b9284-791a-4433-8173-818031446e37/resourceGroups/adimResourceGroup/providers/Microsoft.Web/connections/dynamicsax" } }, "method": "post", "path": "/datasets/d365dev1611pu6adim9b3ce0095753e9b7devaos.cloudax.dynamics.com/procedures/DataManagementDefinitionGroups%252FMicrosoft.Dynamics.DataEntities.ImportFromPackage", "body": { "definitionGroupId": "ImportFlow01", "execute": true, "legalEntityId": "USMF", "overwrite": true, "packageUrl": "d365dev1611pu6adimbc17b8.blob.core.windows.net/.../01NKAF55LXRUQ6AWOVB5CL6P4SIZUTOQZ5;sr=b&sig=tjji13KsjCidqU4bfhBnPm%2FljdGp3O7JP%2BSBUwmKc5A%3D&st=2017-10-27T10%3A08%3A11Z&se=2017-10-27T10%3A23%3A11Z&sp=rw" } }
Outbound message:
----
{ "code": "", "message": "An error has occurred.", "innererror": { "message": "Exception occurred while executing action ImportFromPackage on Entity DataManagementDefinitionGroup: End of Central Directory record could not be found.", "type": "System.InvalidOperationException", "stacktrace": " at Microsoft.Dynamics.Platform.Integration.Services.OData.Action.ActionInvokable.Invoke()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.ActionInvocation(ChangeOperationContext context, ActionInvokable action)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.<>c__DisplayClass13_0.<ScheduleInvokable>b__0(ChangeOperationContext context)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActions(ChangeOperationContext context)\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()\r\n at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.<SaveChangesAsync>d__2.MoveNext()" } }
----
What does this " End of Central Directory record could not be found." mean? tried googling, but it doesn't seem related to D365.
I'm newbie to Logic Apps - where is this code executed, do I have some chance to debug it? Or at least to understand what's the meaning of that rare message. It's challenging when "native X++" suddenly has to face much broader range of systems and their errors. :-/
Environment: Personal dev-box, D365O Application 1611, PU6
*This post is locked for comments
I rectified this issue by Unzipping the contents of the file and then zipped them again using Windows archiver.
Is there any update on this issue. I am facing the same in my latest POC on logic app connecting with D365FO?
{
"status": 400,
"message": "An error has occurred. Exception occurred while executing action ImportFromPackage on Entity DataManagementDefinitionGroup: End of Central Directory record could not be found.\r\nclientRequestId: 123456-1234-1234-1234-1234568901447",
"error": {
"message": "An error has occurred. Exception occurred while executing action ImportFromPackage on Entity DataManagementDefinitionGroup: End of Central Directory record could not be found."
},
"source": "northstarvn-stage.sandbox.operations.dynamics.com",
"errors": []
}
I have already set up the recurring job in D365FO, and I am using the import process "DataManagementDefinitionGroups-ImportFromPackage" action in my Logic App instance.
I am trying to import the exported package with data file, manifest.xml and packageheader.xml but still it is giving me same error, but still getting the error.
here I am using postman to test API instead of logic App.
Is there anything that I am missing?
Hello,
I came across the same problem while using the same example:
https://github.com/Microsoft/Dynamics-AX-Integration/wiki/File-based-integration-using-Logic-Apps.
The solution is to import the whole package (zip file having your csv file, manifest.xml and packageheader.xml).
the ImportToPackage api in Ax expects the import package to be in same way as export package. Try exporting the package and import the same one. It will work fine.
-Kanika.
hi SSB
Martin's suggestions made sense and I could read / see the error messages.
But the error messages were too cryptic for my AX-oriented mind, so for this reason we've currently parked this approach.
Seems, we're going solve the integration by good old X++ approach, since our requirement covers monthly/weekly operation, that's fully possible to do manually.
But I'd be really interested to see the eventual solution, so on my spare time I'll do some investigation and report it here. Please update if you have some findings.
Hi Atis,
I'm also facing similar kind of issue, could you please let me know if you were able to rectify this issue.
Check event logs too (especially Applications and Services Logs > Microsoft > Dynamics > AX-ODataService); there might be more details.
André Arnaud de Cal...
291,965
Super User 2025 Season 1
Martin Dráb
230,836
Most Valuable Professional
nmaenpaa
101,156