Error opening job in AWI after exporting / importing from V11
book
Article ID: 103622
calendar_today
Updated On:
Products
CA Automic Workload Automation - Automation EngineAUTOMIC WORKLOAD AUTOMATION
Issue/Introduction
A v11.2.2 object with structured documentation will not open in the Automic Web Interface. After exporting/importing the object, it cannot be opened with a stacktrace message. The following error is in the AWI log:
2018-06-14 08:41:33,665 pool-2-thread-6107 [WARN ] UC4SAND:100/AUTOMIC/AUTOMIC NOUI 0000000045730012 +6856 [ns.content.uc4objectview.UC4ObjectLoader] - Encountered edge case while loading UC4 object com.uc4.ecc.backends.exceptions.AutomationEngineAPIException: Error during XRequest com.uc4.webui.communication.requests.OpenObjectAdapter at com.uc4.ecc.backends.util.APICallHelper.sendRequestAndWait(APICallHelper.java:57) at com.uc4.ecc.backends.impl.dataservice.request.RequestService.lambda$sendAndWait$47(RequestService.java:65) at com.uc4.ecc.framework.core.async.VaadinSessionLockUtil.reportLock(VaadinSessionLockUtil.java:89) at com.uc4.ecc.backends.impl.dataservice.request.RequestService.sendAndWait(RequestService.java:65) at com.uc4.ecc.backends.impl.dataservice.request.RequestService.sendAndWait(RequestService.java:80) at com.uc4.ecc.backends.dataservice.request.IRequestService$pbryglu.sendAndWait(Unknown Source) at com.uc4.ecc.backends.impl.dataservice.object.ObjectService.tryOpenInternal(ObjectService.java:825) ... Caused by: java.lang.RuntimeException: org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 12; The markup in the document following the root element must be well-formed. at com.uc4.api.objects.XMLDocumentation.load(XMLDocumentation.java:76) at com.uc4.api.objects.DocuContainer.extractDocu(DocuContainer.java:72) at com.uc4.api.objects.DocuContainer.<init>(DocuContainer.java:38) at com.uc4.api.objects.UC4Object.load(UC4Object.java:178) at com.uc4.communication.requests.OpenObject.handleContent(OpenObject.java:184) at com.uc4.communication.requests.XMLRequest.handleResponse(XMLRequest.java:82) at com.uc4.communication.Connection.sendRequestAndWait(Connection.java:1441) at com.uc4.webui.api.connection.AEConnectionAdapter.sendRequestAndWait(AEConnectionAdapter.java:53) at com.uc4.ecc.backends.util.APICallHelper.sendRequestAndWait(APICallHelper.java:46) ... 23 common frames omitted
Cause
There is an issue with the XML code for structured documentation.
This issue is fixed in Automation Engine 11.2.8, which is available for download. The source environment would need to be upgraded before exporting the objects.
If upgrading is not ideal, the workaround for this issue is to delete the extraneous "content" tags:
<DOC><![CDATA[<Content> http://link1.htm </Content><Content> ********** Delete this line *********** http://link2.htm </Content>]]></DOC>