We desired to remove numerous characteristics from an object we fashioned (Employee).
Typically this is an incredibly direct issue with Microsoft CRM. You merely eliminate the area from the Form and Grids from there utilizing the Entity Editor then pick the characteristic and click “delete”.
In our incident, the characteristics in discussion were being utilized by workflow. Regrettably, the error report you get from CRM isn’t very useful. Can you tell me how stop there use in workflow and remove them?
Thank you very much for your service.
Microsoft Dynamics CRM — Webpage Dialog
State code is invalid or state code is valid but status code is invalid for a specified state code.
OK
http //devserver: 5000A(Keyportfolio/_common/error/dIg_error. aspx?hresult= Local intranet
This attribute cannot be deleted because it is used in one or more workflows. Cancel any system
jobs for workflows that use these attribute, then delete or modify any workflows that use the
attribute, and then try to delete the attribute again.
We desired to remove numerous characteristics from an object we fashioned (Employee).
Since it is clearly stating that the current attribute that you are trying to delete is being used by another instance of the program or application and therefore you cannot delete it. There are few things that you need to do in order to remove such things.
-
First search the whole code to see where the attribute is being used.
-
Check all the dependencies of the attribute with other instances of the program. Delete it from unwanted places and replace it with something else where it is needed.
-
After that just delete the major instance as it will automatically delete other sub level instances.
-
Save the code and compile the program again.
-
Now hopefully, you will not see the error again.