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 :
Microsoft Dynamics AX (Archived)

Logic Apps integration to Data Maganement - exception message

(1) ShareShare
ReportReport
Posted on by 113

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 have the same question (0)
  • Martin Dráb Profile Picture
    238,782 Most Valuable Professional on at

    Check event logs too (especially Applications and Services Logs > Microsoft > Dynamics > AX-ODataService); there might be more details.

  • SSB Profile Picture
    5 on at

    Hi Atis,

    I'm also facing similar kind of issue, could you please let me know if you were able to rectify this issue.

  • DimanC Profile Picture
    113 on at

    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. 

  • Community Member Profile Picture
    on at

    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.

  • Rajeshvari Solanki Profile Picture
    145 on at

    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?

  • Abhi.Kr Profile Picture
    on at

    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.

  • Suggested answer
    Shakir Shabbir Profile Picture
    76 on at

    I rectified this issue by Unzipping the contents of the file and then zipped them again using Windows archiver.

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Sagar Suman Profile Picture

Sagar Suman 2 Super User 2026 Season 1

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans