Notifications
Announcements
No record found.
Hi All,
I have written a code to export the xml based on DMF project on click of a button (PO Confirm).
I have written the code which is giving me the successful execution with staging data populated but when i download the file its giving no data.
Can you pls help me understand what am I missing here.
Thanks !!
Hi AX Dev,
I think you are calling the exportToPackageV2 method which will download as a package.
Try using exportToFileV2 method to export data into file.
Thanks,
Girish S.
Girish, this method is internally called after exportToPackageV2 and still the data is missing.
Please go through the class "BankPositivePayExport" - generatePositivePayFile(Method name).
In that class they will initialize the data entity by adding query ranges and call the "DMFEntityExporter" class to send the file to user as a XML format.
So please compare your class with that standard class and check for difference.
Hi Girish,
generatePositivePayFile calls exportToFile which is also getting called from the base method exportToPackageV2 which later calls exportToFileV2.
I have compare to the manual process the file execution is successful with staging data but when I download file from the execution it has no data just the xml tags.
Can you check the below URL. Send the file directly to the user using "File::SendFileToUser" instead of donwloading file from the data management execution job.
https://community.dynamics.com/ax/b/shabibax/posts/export-data-entity-through-code-dynamics-365-finance-and-operations-x
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 449 Super User 2025 Season 2
Martin Dráb 422 Most Valuable Professional
BillurSamdancioglu 239 Most Valuable Professional