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 :
Finance | Project Operations, Human Resources, ...
Unanswered

Assigning a numerical value to extensible enum 'Extensible Enumeration(DirPartyType)'

(0) ShareShare
ReportReport
Posted on by 536
Hi,

I got this BP warning:

Assigning a numerical value to extensible enum 'Extensible Enumeration(DirPartyType)' will yield unexpected results. Extensible enum values are not deterministically assigned to a numerical value.
_vendVendorV2Entity.VendorPartyType = _reqContract.parmVendorPartyType(); //request is string
DirPartyType vendorPartyType = dictEnum.symbol2Value(_vendVendorV2Entity.VendorPartyType);
if (vendorPartyType == DirPartyType::Organization)
{

}
else if (vendorPartyType == DirPartyType::Person)
{

}
else
{

}


So i fixed it by changing it to int, is this the correct solution? or can i do this in a better way
_vendVendorV2Entity.VendorPartyType = _reqContract.parmVendorPartyType(); //request is string
int vendorPartyType = dictEnum.symbol2Value(_vendVendorV2Entity.VendorPartyType);
if (vendorPartyType == enum2int(DirPartyType::Organization))
{

}
else if (vendorPartyType == enum2int(DirPartyType::Person))
{

}
else
{

}
 
Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 587

#2
Abhilash Warrier Profile Picture

Abhilash Warrier 552 Super User 2026 Season 1

#3
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 542 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans