The environment is on premise, version is 1612 (9.0.12.4) (DB 9.0.12.4).
On one custom entity one field makes problem when trying to delete it. There were dependencies (on several views and one business process). All of them were successfully removed.
I tried to delete this field using Attribute Manager via XRM ToolBox.
This is error:
Beginning Step: Remove Existing Attribute
Deleting Field
System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: Generic SQL error. (Fault Detail is equal to Exception details:
ErrorCode: 0x80044150
Message: Generic SQL error.
--
Exception details:
ErrorCode: 0x80044150
Message: Generic SQL error.
--
Exception details:
ErrorCode: 0x80040216
Message: Exception output:: System.Data.SqlClient.SqlException (0x80131904): The index 'ndx_QF_cus_FieldName' is dependent on column 'cus_FieldName'.
ALTER TABLE DROP COLUMN cus_fieldname failed because one or more objects access this column.
Could we fix this error somehow and delete this field in Dynamics, not going directly through the database using SSMS?