4

I'm getting an error when editing a custom metadata field on a topic in Tridion Docs, via the Publication Manager interface and then saving an trying to reopen the topic (there is no similar issue in the web client interface). This custom metadata is connected from Tridion Sites to Tridion Docs (using a custom metadata binder). The error is fairly cryptic and the logs are not being much help:

Error loading the XML for the object "xmlFieldTags": An error occurred while parsing EntityName. Line 1, position 2513.

enter image description here

The full logs are as follows:

02:41:25.7026   Error   10  00008   a:UC:Damian API25/MetadataBinding/ResolveIds    Trisoft.InfoShare.API25.MetadataBinding.ResolveIds      []  
Trisoft.InfoShare.BorderControl.ErrorLoadingXMLException: Error loading the XML for the object "xmlFieldTags": An error occurred while parsing EntityName. Line 1, position 2513.
   at Trisoft.InfoShare.BorderControl.Schema.Validate(SchemaId schemaId, String objectName, String xml)
   at Trisoft.InfoShare.API25.MetadataBinding.ResolveIds(String xmlFieldTags, String language, String& outXmlFieldTags)
<no type>.SyncInvokeResolveIds => MetadataBinding.InfoShareWS.Wcf.API25.Interfaces.IMetadataBinding.ResolveIds => MetadataBinding.ResolveIds
02:41:25.7026   Error   10  00008   a:UC:Damian API25/MetadataBinding/ResolveIds    Trisoft.InfoShare.API25.MetadataBinding.ResolveIds  (xmlFieldTags=[<?xml version="1.0" encoding="utf-16"?>
<ishfieldtags xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <ishfieldtag ishfieldname="***************">
    <tags>
      <tag id="/webdav/035***************" />
    </tags>
  </ishfieldtag>
</ishfieldtags>])   []  
02:41:25.7026   Error   10  00008   a:UC:Damian API25/MetadataBinding/ResolveIds    Trisoft.InfoShare.API25.MetadataBinding.ResolveIds  (language=[])   []  
02:41:25.7026   Debug   10  00008   a:UC:Damian API25/MetadataBinding/ResolveIds    Trisoft.InfoShare.API25.MetadataBinding.ResolveIds()        [MethodExit(00291)] 1313ms
02:41:25.7026   Error   10  00008   a:UC:Damian API25/MetadataBinding/ResolveIds    InfoShareWS.Wcf.Base.WCFCustomization.SessionTransformerInvoker.System.ServiceModel.Dispatcher.IOperationInvoker.Invoke     []  
Trisoft.InfoShare.API25.InfoShareException: Error loading the XML for the object "xmlFieldTags": An error occurred while parsing EntityName. Line 1, position 2513. [203;ErrorLoadingXML]
   at Trisoft.InfoShare.API25.MetadataBinding.ResolveIds(String xmlFieldTags, String language, String& outXmlFieldTags)
   at InfoShareWS.Wcf.API25.MetadataBinding.InfoShareWS.Wcf.API25.Interfaces.IMetadataBinding.ResolveIds(String xmlFieldTags, String language, String& outXmlFieldTags)
   at SyncInvokeResolveIds(Object , Object[] , Object[] )
   at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
   at InfoShareWS.Wcf.Base.WCFCustomization.SessionTransformerInvoker.System.ServiceModel.Dispatcher.IOperationInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
ImmutableDispatchRuntime.ProcessMessage5 => DispatchOperationRuntime.InvokeBegin => SessionTransformerInvoker.System.ServiceModel.Dispatcher.IOperationInvoker.Invoke
02:41:25.7181   Error   10  00008   na::    API25/MetadataBinding/ResolveIds    InfoShareWS.Wcf.API25.ErrorHandlers.ErrorHandler.LogFaultContract   (InfoShareErrorNumber=[-203],Origin=[Trisoft.InfoShare.API25],Description=[Error loading the XML for the object "xmlFieldTags": An error occurred while parsing EntityName. Line 1, position 2513. [203;ErrorLoadingXML]])  []  
02:41:25.7181   Error   10  00008   na::    API25/MetadataBinding/ResolveIds    InfoShareWS.Wcf.API25.ErrorHandlers.ErrorHandler.LogFaultContract   (XMLDetail=[<?xml version="1.0" encoding="utf-16"?><detail><errnumber>-203</errnumber><logger applicationname="InfoShareAuthor" userid="Damian" serverrequestid="8" serverhostname="ECL-US-TDCMF003"><logs><error logid="0" status="new" resourceid="ErrorLoadingXML" resourcelib="isAuthor" number="-203"><basedescription>Error loading the XML for the object "xmlFieldTags": An error occurred while parsing EntityName. Line 1, position 2513. [203;ErrorLoadingXML]</basedescription><desc>Error loading the XML for the object "xmlFieldTags": An error occurred while parsing EntityName. Line 1, position 2513. [203;ErrorLoadingXML]</desc><param paramname="object" paramtype="String">xmlFieldTags</param><param paramname="reason" paramtype="String">An error occurred while parsing EntityName. Line 1, position 2513.</param></error></logs></logger></detail>])    []  

1 Answer 1

5

It turns out this is caused by a '&' character in some of the keywords that are connected into Tridion Docs from Tridion Sites, even if that particular keywords is not in use - it may be involved in the ResolveIds method, where is causes an error since '&' is apparently invalid in XML - see here.

I was able to resolve this by removing the annotated labels from my custom metadata binder, as these are optional anyway (see here for reference).

I was able to get this working even with '&' character in my regular labels - it was only the annotated labels that causes issues.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.