08 Apr 2024
Link to this post
Hi folks - weird error here, and been searching a while for a solution, but was hoping somebody here could point me in the correct direction. Our client has a Sitefinity site built on TPC, which we just upgraded to Sitefinity 14.4, and TPC 6.2 (latest version of each). We make use of SavedQueries fairly extensively throughout the site, but after upgrading, certain of these SavedQueries are failing - the error in the SF log shows
"Encountered unexpected namespace 'http://schemas.microsoft.com/xrm/2011/Contracts'. The namespace must be empty."
This seems to only happen on certain queries (typically those with a Linked Entity, and only certain attributes on that linked query, since I was able to get it to work by changing that attribute). I unfortunately do not have access to the raw data, although if that might be the issue, I could have the client look into that on that end.
Calling the endpoint (/SavedQueryService/Execute/test), just throws a:
ERR_HTTP2_PROTOCOL_ERROR (I assume because of the XML Serialization error)?
If it helps, this is what my query looks like (simplified down, but this still causes the issue)
<fetch version="1.0" distinct="false" mapping="logical" output-format="xml-platform">
<entity name="new_troubleticket">
<attribute name="new_troubleticketid" />
<attribute name="createdon" />
<attribute name="new_name" />
<link-entity name="new_location" alias="new_troubleticketid" to="new_location" from="new_locationid">
<attribute name="new_siteid" />
</link-entity>
</entity>
</fetch>
Not really sure where to even start looking to get this sorted, so any assistance would be most appreciated.