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)

DIXF - staging "validate" button bug

(0) ShareShare
ReportReport
Posted on by 811

Dear,

after data was copied into the staging table and you open the form to view staging data. (form DMFDataVizualization)

In that form there is a button "Validate" or "Validate All". WHen you click this button, one of the validates that is executed is the validateField method of the staging table record. If something is check in there that returns false, the record is supposed to be invalid.

However, when you click "Copy data to target", this method is NOT executed and so this validation is skipped and data is just copied to the target.

I don't think this is logical behaviour. The validation should be the same upon processing as upon clicking the "validate" button.

Anyone else noticed this behaviour or has a fix for it?

Kr,

Sven

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Florian Hopfner Profile Picture
    2,466 on at

    Yes and no, because it it not a bug and there is already a way to enable those validations for import form staging to target: If you open the "Modify target mapping" form of an entity, in the mapping details you will notice the checkboxes "Call validate Field method" and "Call modified field method". If you check these, the checks from the Validate/Validate All buttons in the staging data form will also be executed during import from staging to target.

    Please note that these additional validations will decrease the performance of the import from staging to target.

  • Sven Joos Profile Picture
    811 on at

    I am sorry to say that this is not true. I had already checked those boxes (as well on source=>stage, stage=>target) and these validations are just not ran upon processing from stage to target.

    I verified again, did another test, conclusion remains.

    By the way: working on AX2012 R3.

    Kr,

    Sven

  • Sven Joos Profile Picture
    811 on at

    On top of that, some extra info.

    The validateField method of the staging table is called from DMFCheckField:validateRecordsServer()

    which calls DMFCheckField::validateFieldValues which in its place will call the validateField of the staging buffer.

    This seems like a bug to me, since I am pretty sure this was working differently in the previous version of the framework.

    Kr,

    Sven

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 10

#2
Harisgillani Profile Picture

Harisgillani 4

#2
dserp Profile Picture

dserp 4

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans