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