Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

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

Posted on by Microsoft Employee

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

  • yasu Profile Picture
    yasu on at
    RE: Staging cleanup in Data Migration Framework when copy data to target has not been executed already

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Staging cleanup in Data Migration Framework when copy data to target has not been executed already

    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)

       //)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Staging cleanup in Data Migration Framework when copy data to target has not been executed already

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

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Staging cleanup in Data Migration Framework when copy data to target has not been executed already

    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.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 291,280 Super User 2024 Season 2 on at
    RE: Staging cleanup in Data Migration Framework when copy data to target has not been executed already

    Hi Michael,

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

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans