Richard Watt
4 posts
Registered:
12 May 2021
18 Jun 2023
Link to this post
Hi
I have a crm plugin that is modifying the Portal User Roles. It deletes all portal user roles and re-adds them based on a custom permission field on the contact. This has been working successfully.
However in our UAT environment, the TPC plugin that triggers from the Portal User Role delete now gives an error. It appears to be a xml parsing error
this is the plugin error trace log:
pavliks.PortalConnector.Plugins.PrePortalUserRoleDelete
is firing for Entity: pav_portaluserrole, Message: Delete, Correlation Id:
5fef023c-1444-4bd9-8286-a963af52d2db, Initiating User:
7b20c998-25e9-e811-a96c-000d3ad05e15
The Portal Connector
- Cache Helper Acquire Portal Records: Querying all Portal Records.
The Portal Connector
- Cache Helper Acquire Portal Records: All portals queried successfully.
The Portal Connector
- Cache Helper Acquire Portal Record: Retrieved portal with id
c6c8f0e0-d200-ed11-82e6-00224894471e from cache.
Portal Record Id:
c6c8f0e0-d200-ed11-82e6-00224894471e Name: xxx Url: https://xxxx.xxx.xx
Error Message: Data
at the root level is invalid. Line 1, position 1. Stack Trace: at
System.Xml.XmlTextReaderImpl.Throw(Exception e)
at
System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at
System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at System.Xml.XmlReader.MoveToContent()
at System.Xml.Linq.XElement.Load(XmlReader
reader, LoadOptions options)
at System.Xml.Linq.XElement.Parse(String
text, LoadOptions options)
at
pavliks.PortalConnector.Plugins.PrePortalUserRoleDelete.ExecutePrePortalUserRoleDelete(IServiceProvider
serviceProvider)
Exiting
pavliks.PortalConnector.Plugins.PrePortalUserRoleDelete.Execute(), Correlation
Id: 5fef023c-1444-4bd9-8286-a963af52d2db, Initiating User:
7b20c998-25e9-e811-a96c-000d3ad05e15
I compared the XML unsecure config on the plugin step to another step and they are identical incase that had become corrupted somehow.
we are on TPC version 6.1
Regards
Richard