cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ihilder
Level: Powered On

Local Option Set Error when Field Name is the Same Across Entities

I've been working with CDS for a little while and have run into an issue that seems to only exist in the CDS Manager and not when using the Classic Dynamics Solution Manager. I want to have a consistent set of fields across a few entities that I've created in the CDS, one of which is a Workflow State field that we will be using for some internal process designation. This Option Set isn't going to be reuseable (safely) between different entities because the Process is going to differ from entity to entity, so I opted to use a Local Option Set. Here is how the first one looks that was created in the PowerApps CDS Manager :

 

1_InitialEntity.PNG

 

You can see the Local OptionSet Name is cr0c1_workflowstate and during creation, once I I select Local option, set I don't have the ability to modify it. Now I go create another entity and add a WorkflowState field with another Local Option set:

 

1_WorkflowStateCreation.PNG2_WorkflowStateFailure.PNG

 

When I attempt to Save the Entity I get the error above. It's using the field name to create the local option set name, which has already been created, but on a different Entity. In an attempt to see if this was an issue in both the standard CDS Manager and the Classic View CDS manager I performed the same field creation and local option set attachment there with a different result :

 

image.png

 

And the resulting Local Option Set when I browse back to the CDS:

 

4_WorkingEntity.PNG

 

As you can see above, the name generated on the Local Option Set from the Classic Viewer is cr0c1_{EntityName}_cr0c1_workflowstate and no error was generated during save because the option set name is unique. Is this a bug in the CDS Manager? We can use the Classic Solution Manager for adding these fields, but this seems to be the only case I have found so far that requires it.

3 REPLIES 3
Community Support Team
Community Support Team

Re: Local Option Set Error when Field Name is the Same Across Entities

Hi @ihilder,

Currently, I could not reproduce your issue on my side. When I create a Option Set type column in my CDS Entity, there is no Global option set and Local option set option listed:13.JPG

 

If you want to get further help in your issue, please take a try to submit an assisted support ticket through the following link:

https://powerapps.microsoft.com/en-us/support/pro/

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
ihilder
Level: Powered On

Re: Local Option Set Error when Field Name is the Same Across Entities

If you click on the '+ New Option Set' from the Option Set picklist when adding a column and then the 'View More...' button from the subsequent view you should have all of the options I showed above.  See my screenshots (attached).

 

 

ihilder
Level: Powered On

Re: Local Option Set Error when Field Name is the Same Across Entities

@v-xida-msft Any feedback given my additional information provided above?

Helpful resources

Announcements
firstImage

PowerApps Monthly Community Call!

Join us next Wednesday for our Demo Extravaganza, October 16, 2019 8am PDT.

firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 504 members 4,442 guests
Please welcome our newest community members: