Forums

Forums / Bugs & Issues / Encountered unexpected namespace 'http://schemas.microsoft.com/xrm/2011/Contracts'. The namespace must be empty.

Encountered unexpected namespace 'http://schemas.microsoft.com/xrm/2011/Contracts'. The namespace must be empty.

2 posts, 0 answered
  1. David Briers
    David Briers avatar
    1 posts
    Registered:
    05 Apr 2024
    08 Apr
    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.



  2. Dustyn Holland
    Dustyn Holland avatar
    8 posts
    Registered:
    19 Jun 2023
    09 Apr in reply to David Briers
    Link to this post
    Hello David,

    Looking through your comment I am seeing that it may be a couple different things causing your issue but am not 100% certain without having access to your system to troubleshoot.

    If you would like to open a Support Ticket so we can look at this in further detail, you can do that by submitting an email to tpcsupport@serenichelp.zendesk.com.

    Thank you,

    Dustyn Holland



2 posts, 0 answered