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)

Avoid inserting on stage table - Data import export framework

(0) ShareShare
ReportReport
Posted on by 36

Hi,

How to avoid some rows inserting on the stage environment?

I am using Excel file as source for DIXF. I am inserting trade agreements. If the product already having some trade agreement then i should not allow the DIXF to insert new trade agreement. So, i plan to add validation or avoid to insert on stage table.

Please explain me to solve this issue.

 

Version: AX 2012 R2 CU7

 

Thanks,

Hari

*This post is locked for comments

I have the same question (0)
  • Verified answer
    Travis Bagley Profile Picture
    395 on at

    I don't believe you can avoid inserting records to the staging table. The way the data is brought in from files is using SSIS and it essentially is doing a bulk copy from my understanding. I believe what you would have to do is add logic to the DIXF class to ensure it doesn't update or add if the item already has some trade agreements. To me it might even be easier to write a job to go through your staging table and then delete the records after import if you don't need them.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    305,777 Super User 2026 Season 1 on at

    Hi Hariharan,

    Travis is correct. You need to use the staging table. You cannot add validation logic on the step source to staging. You can add logic and additional validations on the DMF helper class like Travis mentioned.

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 16

#2
Nagendra Varma K Profile Picture

Nagendra Varma K 4

#2
Harisgillani Profile Picture

Harisgillani 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans