MscrmTools / MscrmTools.PolymorphicLookupCreator

GNU General Public License v3.0
6 stars 7 forks source link

Can't remove a lookup created by this plugin in XRMToolbox #7

Closed epsracing77 closed 2 years ago

epsracing77 commented 2 years ago

I wanted to remove the lookup created by this plugin, in D365 but when I tried to do this in the Classic Interface it threw an XML Invalid Object error!!

So not sure if this is quite ready for production deployment if we can't back out the changes. This was done using D365 9.2.22091 online (edited, sorry for any confusion)

Polymorphic Lookup Manager version 1.2022.8.4

Removing it from the Form throws this error (when saving)

image

Checking the download log....

System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]: The Form XML f19ade57-8a2e-4eb3-b1b8-21777aefb4fe does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: The element 'events' has incomplete content. List of possible elements expected: 'event'. (Fault Detail is equal to Exception details: ErrorCode: 0x80048425 Message: The Form XML f19ade57-8a2e-4eb3-b1b8-21777aefb4fe does not conform to the required schema. A schema validation error has been detected at line 0, position 0. Details: The element 'events' has incomplete content. List of possible elements expected: 'event'. TimeStamp: 2022-09-29T12:21:00.6241519Z

).

MscrmTools commented 2 years ago

D365 9.0.2 ? So you mean OnPremise, right? I'm not sure it is even supported...

What I would try : Use XrmToolBox tool FormXml manager to remove the attribute from the form Use Polymorphic Lookup manager to delete the attribute

epsracing77 commented 2 years ago

No, online, latest version

Sorry - it's 9.2.22091.192

epsracing77 commented 2 years ago

I'll give your suggestion a try - but odd that it doesn't work using D365 Form Editor itself

MscrmTools commented 2 years ago

Classic interface does not now about polymorphic lookup, give it a try with Modern designer

epsracing77 commented 2 years ago

Will do - sorry I'm stuck in my ways!!

epsracing77 commented 2 years ago

That seems to work, but it has other issues (MS ones!!)