I have a field called Region inside Contact entity.
I want to delete the field,however I cannot do so as the field has dependency,which is a view from Key Contact entity.
The view is called Key Contact Associated View. I have checked the view and the Region field cannot be seen inside the view:
But when I try to open the xml using fetchxml, there is linking of Key Contact and Contact inside Key Contact Associated View :
The attribute ads_region is the field I want to delete inside the view,so that I can delete the field inside Contact entity. However I cannot find the field when I try to edit the view but I can find attribute gendercode inside the view.
When I try to delete the relationship from fetchxml,it says that I cannot change the return attribute:
How can I delete the field from the view (the dependency) so that I can delete the field in Contact entity?
Thank you so much for the help!
Hi NurNina,
I reproduced you issue:
I created a view which is based on contact, it displays contact fields and its related country(a lookup field) information.
In country entity, there is a field called "Continent", I want to remove it from the view.
The reason for your issue would be that you were using FetchXML Builder to remove attributes, however, the plugin only updates the query of the view(only fetchXml), which means that the query must contain the expected set of columns, otherwise the view will "crash".
Instead, you should use View Designer to edit view and remove attributes, it will change column(layoutXml) of view at same time.
Your issue might be similar to following issue on GitHub:
https://github.com/rappen/FetchXMLBuilder/issues/139
Regards,
Clofly
yes, i directly tried to delete the attribute
How did you delete the relationship from fetchxml?
Would it be by removing ads_region attribute from fetchxml query directly?
Regards,
Clofly
Hi there,thank you for the respond. I use XrmToolBox because I want to see the link inside the view. I cannot see the dependent column from the OOB editor.
Hi NurNina,
We can also check dependencies of field in legacy web client:
Top right gear icon > Advanced settings > Customizations > Customize the system > Entities > Fields
When deleting a field which has dependencies, associated components can be also found in Details link of error prompt window.
Could you tell me why did you use XrmToolBox to remove field of view?
You can remove the column of the view in OOB editor directly.
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156