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)

AX7: how to run code before synchronization without LCS (release update)

(0) ShareShare
ReportReport
Posted on by

Hi All,

I have created an entity for a table by adding a new Counter (Int) field and creating an alternate key with the new field included.

After I wanted to build and sync the project it has failed with error message about applying unique index is not allowed because of record duplication. It is true, because the newly created field was empty at the time of applying the new unique index.

I have created a code (lets call it FILLER), which is going to fill the existing record's new Counter field before enabling the index. After that I have enabled the index, and it worked.

But I don't want to do this way. I cannot remove the content of the table, so I would like to run the code FILLER before the synchronization to avoid the error mentioned above.

I am a newbie in AX, and I haven't find a solution for this. (I have heard about a solution in AX6 (releaseupdate), but it is not working in AX7 as far as I know, am I right?). I hope you understand the issue and can provide me a solution for this. Thanks!

Regards,

Szabi

*This post is locked for comments

I have the same question (0)
  • tothszabolcs Profile Picture
    on at

    Thank you, but as you said this is a workaround, I know about it, it is not an option.

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
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans