cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tschopp
Advocate I
Advocate I

Control on deleted form tab still shows as dependency

In my model-driven app, I had a tab on a form with several controls on it.  I deleted that tab.  Now I want to delete one of the fields that was on that tab from the table.  But it won't let me because the dependency still exists on that form.  I've tried adding the field back onto the form and deleting it again, but the dependency is still there.  I even tried adding a new tab, giving it the same properties as the original tab, adding that field to it, save/publish, delete the field again, save/publish, and dependency is still there.  How can I get rid of that dependency?

1 ACCEPTED SOLUTION

Accepted Solutions
cchannon
Continued Contributor
Continued Contributor

I've seen this behavior too. What appears to happen is that when you add a PCF to a form it gets added to the XML in two places: at the top of the form XML to register the presence of the PCF and inline in the xml on the control you are replacing. Sometimes when you remove the control (or remove its tab or its section) only the inline portion gets excised and the declaration at the top of the form XML persists. When this happens you're pretty much SOL, within the UI at least (re-adding and deleting won't get you there).

 

I have found only two workarounds for this:
- Delete the form and recreate it or

- Crack open the customizations XML and delete the XML node for the PCF

For the record, as much as we all know XML editing is a baaaaad idea, I have found in this circumstance it is easy and safe, so I would actually recommend it here if deleting and recreating your form will cause you problems (i.e. if you have downstream customizations to the form and replacing it isn't a practical option).

View solution in original post

5 REPLIES 5
DianaBirkelbach
Super User
Super User

Hi @tschopp , 

Hm.. I haven't encountered this. Are you sure that the dependency is not on another form? If somebody made another form, maybe he/she got the PCF automatically without even noticing?

Kind regards,

Diana

tschopp
Advocate I
Advocate I

Hi @DianaBirkelbach ,

I'm the only person making changes in this environment right now.  When I view dependencies for the field, it shows the form that it used to be on.  When I double click the dependency, it opens the form editor and that field shows on the Unused Fields list.

HemantG
Power Apps
Power Apps

This is a known issue and we are working on it ..can you please log a support case and they can run mitigation script ..

I am Enquiring other workaround options . Will update the thread.

 

Thanks,

Hemant 

Thanks @HemantG .  The issue has been reported.  Let me know if you come up with a workaround.

cchannon
Continued Contributor
Continued Contributor

I've seen this behavior too. What appears to happen is that when you add a PCF to a form it gets added to the XML in two places: at the top of the form XML to register the presence of the PCF and inline in the xml on the control you are replacing. Sometimes when you remove the control (or remove its tab or its section) only the inline portion gets excised and the declaration at the top of the form XML persists. When this happens you're pretty much SOL, within the UI at least (re-adding and deleting won't get you there).

 

I have found only two workarounds for this:
- Delete the form and recreate it or

- Crack open the customizations XML and delete the XML node for the PCF

For the record, as much as we all know XML editing is a baaaaad idea, I have found in this circumstance it is easy and safe, so I would actually recommend it here if deleting and recreating your form will cause you problems (i.e. if you have downstream customizations to the form and replacing it isn't a practical option).

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Users online (63,420)