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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to validate/filter data in DMF (Data import export framework)

(0) ShareShare
ReportReport
Posted on by 4,075

I have to read a CSV file with Supplier prices, and i would like to do some validation/filtering of the data when i read the into the staging tables.

As far as i can tell i am reading the records into the table DMFPriceDiscAdmTransEntity, using the Class DmfPriceDiscAdmTransEntityClass.

Now my CSV file contains some records that would not be valid in AX, in some cases the vendor or item id does not exist in AX, and also in some cases the price for the line is the same as in AX, so i also do not want to read those lines.

Where should i put in my code to filter the records?

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Rudi Hansen,

    As far as I know, transfer of data from file to staging table is done by SSIS that does not know anything about AX business logic and can validate only data types. All validation\filtration should be done on a standing to target copy.

  • Rudi Hansen Profile Picture
    4,075 on at

    Ok do you know where in the code that happens?

  • Mea_ Profile Picture
    60,284 on at

    If you asking about writing to staging check DmfStagingWriter.execute()

  • Verified answer
    Mea_ Profile Picture
    60,284 on at

    Actually you may override postGetStagingData method on DmfPriceDiscAdmTransEntityClass to "cleanup" data. This method is executed just after import into staging table, but again you cannot avoid copying them.

  • Rudi Hansen Profile Picture
    4,075 on at

    This actually solves this problem for me, i can put some cleanup code in postGetStagingData.

    Thanks for your help

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans