cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JohnP
Kudo Kingpin
Kudo Kingpin

Can't delete entity

I created an entity called Customers for testing purposes. It has no relationships. When I try to delete it I get the following error:

cds_error.jpg

3 ACCEPTED SOLUTIONS

Accepted Solutions
DavidJennaway
Solution Supplier
Solution Supplier

From the message, the problem may be that the issue is with the UI getting the case wrong, as the message refers to crc09_Customers (with an uppercase C). As a workaround, try opening the Dynamics 365 organisation for the environment, go to Settings, Customisations, Customize the System, and see if you can delete the entity from there

View solution in original post

bahaaa_bouakl
Regular Visitor

David is right,

i tested  and the issue is that the new power apps UI is confused with the case of the entity name.

for example, try to create an new entity and name it "Test Entity" in the display name then save it.

now, even that the name (not display name) is  clearley "***_testentity", you will get an error that "***_TestEntity" (note the upper case) is not found.

 

now try to create an entity and in display name enter "test entity 2" (all lower), save it then delete it it will be deleted without problems.

 

so you have 2 work arounds: 

1-create the enttity with display name all lower case, then after saving it, open the entity, then click "settings" in the upper right corner and change back the display name to the correspongin case

 

2-use the classsic solution explorer:

  • login to "https://web.powerapps.com"
  • cllick "Solutions" on the left pane
  • in the upper menu click "Switch to Classic"
  • click "Common data services default solution" link in the list taht appears
  • in the left pane, under "Components" expand "Entities". click the entity you want to delete. When it opens, in the upper menu click "Delete". Confirm you action and it should work

Hope this helps

 

View solution in original post

v-xida-msft
Community Support
Community Support

Hi @JohnP ,

Do you mean that you could not delete the custom Entity from your CDS?

 

I have made a test on my side, and don't have the issue that you mentioned. Please consider clear cache of your browser, then try it again, check if the issue is solved.

 

If the issue still exists, please consider go to your Dynamics 365 instance (the CDS related to), then click "Customizations"-> "Customized the System" option, then you could delete the Entity from there:8.JPG

 

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.

View solution in original post

4 REPLIES 4
DavidJennaway
Solution Supplier
Solution Supplier

From the message, the problem may be that the issue is with the UI getting the case wrong, as the message refers to crc09_Customers (with an uppercase C). As a workaround, try opening the Dynamics 365 organisation for the environment, go to Settings, Customisations, Customize the System, and see if you can delete the entity from there

bahaaa_bouakl
Regular Visitor

David is right,

i tested  and the issue is that the new power apps UI is confused with the case of the entity name.

for example, try to create an new entity and name it "Test Entity" in the display name then save it.

now, even that the name (not display name) is  clearley "***_testentity", you will get an error that "***_TestEntity" (note the upper case) is not found.

 

now try to create an entity and in display name enter "test entity 2" (all lower), save it then delete it it will be deleted without problems.

 

so you have 2 work arounds: 

1-create the enttity with display name all lower case, then after saving it, open the entity, then click "settings" in the upper right corner and change back the display name to the correspongin case

 

2-use the classsic solution explorer:

  • login to "https://web.powerapps.com"
  • cllick "Solutions" on the left pane
  • in the upper menu click "Switch to Classic"
  • click "Common data services default solution" link in the list taht appears
  • in the left pane, under "Components" expand "Entities". click the entity you want to delete. When it opens, in the upper menu click "Delete". Confirm you action and it should work

Hope this helps

 

v-xida-msft
Community Support
Community Support

Hi @JohnP ,

Do you mean that you could not delete the custom Entity from your CDS?

 

I have made a test on my side, and don't have the issue that you mentioned. Please consider clear cache of your browser, then try it again, check if the issue is solved.

 

If the issue still exists, please consider go to your Dynamics 365 instance (the CDS related to), then click "Customizations"-> "Customized the System" option, then you could delete the Entity from there:8.JPG

 

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.

@bahaaa_bouakl@v-xida-msft@DavidJennaway 

 

Thanks a lot. I deleted the entity from the classic view. I hope they fix this bug in the new interface 🙂

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (2,125)