Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Business Central forum

Enum datatype created

(0) ShareShare
ReportReport
Posted on by

Hey guys,

I have a problem with the datatype "Enum".

When I publish my extension I get the following error message:

SchemaUpdateMode=synchronize failed with code 422. Reason: Requested value 'Uniformity_rst' was not found.

I have created the following enum object:

pastedimage1564579804342v1.png

The user should have same possibilites to choose.

And that is the mapping in my table:

pastedimage1564579938785v2.png

Here I want to get back the value, the user has chosen earlier.

Do you have an idea where my mistakes are?

Thank you :)

Categories:
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Enum datatype created

    Why this local variable caled Uniformity in the OnValidate trigger? Enums must be used like an Option field. If in the OnValidate trigger you want to assign the value to UniformityVal accordingly to the value selected in the Uniformity field by the user, you need to remove the local variable declared here.

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans