cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Rana
Helper I
Helper I

SQL error when trying to delete a custom column from table in CDS

Hi,

I have a custom column in a CDS table which I want to delete. I have removed all the dependencies to this column from forms ,views and keys. But when I try to delete the column and save the table I'm getting the below error. 

CDS Error.jpg

I tried deleting this from Dynamics  environment as well but I'm getting the below error. Rana_0-1625548177452.png

 

Any idea why this is occurring and how can I overcome this? 

 

Regards,

Rana

7 REPLIES 7
Sid_Jafri
Responsive Resident
Responsive Resident

Hi @Rana ,

 

Patience is the key here. You may wait for a while and try to delete later. You can create a new column and leave that one alone for little while and come back later to remove.

 

Just want to confirm that this is not the calculated column?

 

Please Thumbs up and accept as solution if my post helped you solve your issue.

EricRegnier
Super User II
Super User II

Hi @Rana,

Can you download the log and share the details please? Usually the error is because there's either a table lock or record lock on the DB table level, due to a Dataverse publish or transaction in progress.

Cheers

Hi @EricRegnier ,

 

Please see below the error log

 

Erro1.JPG

Erro2.JPG

 

 

Hi @Sid_Jafri ,

 

This is a text field. I added a new text field to this table and managed to delete it without an issue. 

 

Regards,

Rana

Error code -2146232060 is about invalid login to SQL Server.... Can you try to log out and log back in? If that doesn't work open a Microsoft Support Ticket at: https://admin.powerplatform.microsoft.com/support 

Sid_Jafri
Responsive Resident
Responsive Resident

Hi @Rana ,

 

It happened to me, I  don't remember was the same error message but I couldn't delete the column. I logout and next morning I was able to delete the column. You can give it a try or as EricRegnier mentioned to create a Microsoft ticket

 

Please Thumbs up and accept as solution if my post helped you solve your issue.

Hi @EricRegnier ,

Tried log out and log back in , but getting the same error. I'll try tomorrow as @Sid_Jafri  suggested and if the issue continues will open a ticket with MS support. Thank you both for your feedback.

 

regards,

Rana

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,158)