Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot implicitly convert type ...StatusCode to 'Microsoft.Xrm.Sdk.OptionSetValue' #471

Open
bwmodular opened this issue Dec 15, 2023 · 3 comments

Comments

@bwmodular
Copy link

Sorry Daryl, I've been trying to work these v1 -> v2 upgrade issues myself but keep getting stuck.

Tool and Version
EarlyBoundGenerator V 2.2023.12.14

Describe the bug
Following an upgrade from EBG v1 to EBG v2, I'm getting a compilation error on code which was developed with EBG v1.

Using v2, with the v1 settings unchanged, I now get compilation errors on both State and Status Code Option Set Values:
image

image

Changing the "Use Enum for State Codes" setting to True fixes the issue for State but not Status Code:

image

Any ideas what I should do to fix this?

@bwmodular bwmodular added the bug label Dec 15, 2023
@daryllabar
Copy link
Owner

Don't apologize. The only way I'm going to fix any of the issues, is if people bring them up!

So in V1, it was creating Choice Column properties as enums, but in V2 it is creating it generating as OptionSets?

@daryllabar
Copy link
Owner

I believe you gave me your metadata xml file already for V2. Did you give me your V1 xml config? I'd like that as well so I can make sure that what gets generated before and after match.

@bwmodular
Copy link
Author

I've uploaded the v1 & v2 settings files below. Do you need anything else? Thanks
BEN.EarlyBound.Settings.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants