web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Staging cleanup in Data Migration Framework when copy data to target has not been executed already

(0) ShareShare
ReportReport
Posted on by

I am using Data Migration Framework in AX 2012 R2 CU7. Everything works fine. It is really a very good tool to migrate datas. My question is how can I cleanup the staging datas, when the staging status is ended but the target status is didn't run. That happens if you get stating data a second time (for example due to wrong datas) and you want to remove the staging datas from the first job. When I use the staging cleanup function under "Periodic" only the full completed transfers will be erased.

Does anybody has some experience in this matter?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    André Arnaud de Calavon Profile Picture
    306,773 Super User 2026 Season 2 on at

    Hi Michael,

    This is not forseen in DIXF. I did delete the records manually from the table browser when I had this scenario.

  • Verified answer
    Community Member Profile Picture
    on at

    As per the concept of staging table in DIEF, this feature is not available as per standard and you need to it manually using periodic clean up option

    As per concept we can use staging table data after data transfer to traget too

    so we should not delete the data in staging just after data trasfer to traget

    eventhough if need this feature to delete the staging data, you need to do some customization in DIEF famework

    as per my understaning it is posible to do this bit of customization.

    Please verify and let me know if you need any technical help for this bit of customization.

  • Community Member Profile Picture
    on at

    Thank you for your answers. I thought as much but wasn't sure.

  • Community Member Profile Picture
    on at

    What I did was to create a custom class by copying the existing DMFStagingCleanup class and then modifying the run function to do exactly what I wanted.

    FYI: From my comments, here is what the out of the box DMFStaginCleanup class uses for criteria:

       // These are the criteria that are used by AX's DMFStagingCleanup class for deleting execution history.  I will not use all of them.  I will also add a criterion based on row counts.

       //(

       //    (dmfDGE.StagingStatus == DMFBatchJobStatus::Finished && dmfDGE.TargetStatus == DMFBatchJobStatus::Finished)

       //    ||

       //    (dmfDGE.StagingStatus == DMFBatchJobStatus::Finished && dmfDGE.TargetStatus == DMFBatchJobStatus::Hold)

       //    ||

       //    (dmfDGE.StagingStatus == DMFBatchJobStatus::Error    && dmfDGE.TargetStatus == DMFBatchJobStatus::Error)

       //    ||

       //    (dmfDGE.StagingStatus == DMFBatchJobStatus::NotRun   && dmfDGE.TargetStatus == DMFBatchJobStatus::NotRun)

       //)

  • yasu Profile Picture
    on at

    sir ,, our client's requirement is to delete records using DIXF . is it possible?????

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans