Forum Discussion

Former_Member's avatar
Former_Member
Ideator I
7 years ago

XML Parser Error

When I use applyAML, I got this error.

But my AML is correct.

An error occurred while parsing EntityName. Line 8, position 67.System.Xml.XmlException: An error occurred while parsing EntityName. Line 8, position 67.

4 Replies

  • Hi Bryan,

    is it possible for you to post the AML you wanted to apply?

    Cheers,

    C

    • Former_Member's avatar
      Former_Member
      Ideator I

      This is my AML.

      Only the first time you send will fail, the second time will succeed.
      Very strange phenomenon.

      Thank you.

      9/12/2019 5:26:48 PM :
      送簽錯誤ATEN_CFC_COMMON_SUBMIT 表單號碼:PNR-10000007 執行XML:<AML><Item type='Activity' action='EvaluateActivity'><Activity>97E694E898C749C8BADEEA6528056A63</Activity><ActivityAssignment>714CF5F6B16E46DFBE491A0074831949</ActivityAssignment><Paths><Path id='C9B4DC45575F4C1DA2D9D25A22A4517E'>Approve</Path></Paths><DelegateTo></DelegateTo><Tasks></Tasks><Variables></Variables><Authentication mode=''></Authentication><Comments></Comments><Complete>1</Complete></Item></AML>
      錯誤訊息:System.Xml.XmlException: An error occurred while parsing EntityName. Line 8, position 67.
      at System.Xml.XmlTextReaderImpl.Throw(Exception e)
      at System.Xml.XmlTextReaderImpl.ParseEntityName()
      at System.Xml.XmlTextReaderImpl.ParseEntityReference()
      at System.Xml.XmlTextReaderImpl.Read()
      at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
      at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
      at System.Xml.XmlDocument.Load(XmlReader reader)
      at System.Xml.XmlDocument.LoadXml(String xml)
      at Aras.IOM.Innovator.applyMethod(String methodName, String body) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\IOM.NET\Innovator.common.cs:line 137
      at aten.BaseTool.errLog(Exception e)
      at aten.ArasTool.getAssignmentByActivity(Item actItem)
      at PKG_ATEN_Add_Review_Relationship_A3_CD746629BEEB5C79.ItemMethod.methodCode()
      at PKG_ATEN_Add_Review_Relationship_A3_CD746629BEEB5C79.CLS_ATEN_Add_Review_Relationship_A3_CD746629BEEB5C79.FNCMethod(IServerConnection InnovatorServerASP, XmlDocument inDom, XmlDocument outDom)
      at Aras.IOME.Evaluator.Aras.Server.Core.IEvaluator.DoEval(CacheMethodInfo method, XmlDocument inDom, XmlDocument outDom, EventSpecificData eventSpecificData, Object eventData) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\MethodInvocation\Evaluator.cs:line 88
      at Aras.Server.Core.ApplyItemProxy.ExecuteMethod(CacheMethodInfo meth, XmlDocument inDom, XmlDocument outDom, EventSpecificData eventSpecificData, Object eventData) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 1179
      at Aras.Server.Core.ApplyItemProxy.ExecuteMethodByNameInternal(XmlDocument inDom, XmlDocument outDom, String methodName) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 962
      at Aras.Server.Core.ApplyItemProxy.ApplyMethodInternal(XmlDocument inDom, XmlDocument outDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 859
      at Aras.Server.Core.Utilities.ApplySoapAction(String soapAction, XmlDocument inDom, XmlDocument outDom, Boolean securityCheck) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\Utilities.cs:line 2531
      at Aras.Server.Core.IOMConnection.CallAction(String actionName, XmlDocument inDom, XmlDocument outDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\IOMConnection.cs:line 126
      at Aras.IOM.Innovator.applyMethod(String methodName, String body) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\IOM.NET\Innovator.common.cs:line 140
      at PKG_ATEN_Add_Review_OnActive_A3_A2749AEF22ED7F1D.ItemMethod.methodCode(OnVoteEventArgs eventData)
      at PKG_ATEN_Add_Review_OnActive_A3_A2749AEF22ED7F1D.CLS_ATEN_Add_Review_OnActive_A3_A2749AEF22ED7F1D.FNCMethod(IServerConnection InnovatorServerASP, XmlDocument inDom, OnVoteEventArgs eventData, XmlDocument outDom)
      at Aras.IOME.Evaluator.Aras.Server.Core.IEvaluator.DoEval(CacheMethodInfo method, XmlDocument inDom, XmlDocument outDom, EventSpecificData eventSpecificData, Object eventData) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\MethodInvocation\Evaluator.cs:line 88
      at Aras.Server.Core.ApplyItemProxy.ExecuteMethod(CacheMethodInfo meth, XmlDocument inDom, XmlDocument outDom, EventSpecificData eventSpecificData, Object eventData) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 1179
      at Aras.Server.Core.ApplyItemProxy.Aras.Server.Core.IApplyItem.ExecuteMethodById(String methodId, XmlDocument inDom, XmlDocument outDom, EventSpecificData eventSpecificData, Object eventData) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 288
      at Aras.Workflow.WorkflowProcessActivity.ExecuteActivityMethods(WorkflowEventArgs workflowEventArgs) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\Workflow\WorkflowProcessActivity.cs:line 620
      at Aras.Server.Core.Workflow.ExecuteActivityMethodsPromotionsAndSendEmail(WorkflowProcess workflowProcess, WorkflowEventArgs workflowEventArgs, Boolean ignoreActivityState) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\Workflow\Workflow.cs:line 3301
      at Aras.Server.Core.Workflow.EvaluateActivityInternal(XmlDocument itemDom, XmlDocument responseDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\Workflow\Workflow.cs:line 2399
      at Aras.Server.Core.ApplyItemProxy.ApplyItem(XmlDocument& inDom, AddItemImplementationAdditionalInfo additionalItemInfo, XmlDocument& outDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 736
      at Aras.Server.Core.ApplyItemProxy.Aras.Server.Core.IApplyItem.ApplyItem(XmlDocument inDom, XmlDocument outDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\ApplyItem.cs:line 268
      at Aras.Server.Core.Utilities.ApplyAML(XmlDocument amlDom, XmlDocument passedResponseDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\Utilities.cs:line 1891
      at Aras.Server.Core.Utilities.ApplySoapAction(String soapAction, XmlDocument inDom, XmlDocument outDom, Boolean securityCheck) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\Utilities.cs:line 2525
      at Aras.Server.Core.IOMConnection.CallAction(String actionName, XmlDocument inDom, XmlDocument outDom) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\Core\IOMConnection.cs:line 126
      at Aras.IOM.Innovator.applyAML(String AML) in D:\Builds\Innovator\6549-RELS11-0-SP9\Innovator.git\Innovator\CompilableCode\IOM.NET\Innovator.common.cs:line 112
      at PKG_ATEN_CFC_COMMON_SUBMIT_A7_7821F2D3EA3AD5DC.ItemMethod.methodCode()

      • cogres's avatar
        cogres
        Ideator I

        Hi Bryan,

        thanks for sharing the AML. Do you have any server methods on the activity you are trying to evaluate in the AML? It seems the AML you posted isn't the problem itself, but that when the "EvaluateActivity" action tries to ExecuteActivityMethods(), you get an error.

        Cheers,

        C