DLaB.Xrm.XrmToolBoxTools icon indicating copy to clipboard operation
DLaB.Xrm.XrmToolBoxTools copied to clipboard

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

Open bwmodular opened this issue 8 months ago • 3 comments

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 avatar Dec 15 '23 16:12 bwmodular

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 avatar Dec 15 '23 18:12 daryllabar

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.

daryllabar avatar Dec 15 '23 18:12 daryllabar

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

bwmodular avatar Dec 18 '23 13:12 bwmodular