Error opening job in AWI after exporting / importing from V11
search cancel

Error opening job in AWI after exporting / importing from V11

book

Article ID: 103622

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine CA Automic One Automation Automic SaaS

Issue/Introduction

A v11.x object with structured documentation will not open in the Automic Web Interface (12.0 and abovce). 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 ] <SYSTEM>:<CLIENT>/<USER>/<DEPARTMENT> 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.

Resolution

The solution has to do with the <Content> tags in the in the xml for the object. 

There may be extraneous "content" tags, where you would do the following:


<DOC><![CDATA[<Content> 
http://link1.htm
</Content><Content> ********** Delete this line *********** 
http://link2.htm
</Content>]]></DOC> 

To:

<DOC><![CDATA[<Content> 
http://link1.htm
http://link2.htm
</Content>]]></DOC>

There could also be missing <Content> tags, where you would do the following:

Fix this by editing the xml for the problematic Object and adding the missing xml tag  </Content>]]

From:

<DOC><![CDATA[<Content>
Documentation lines go here]]></DOC>

To:

<DOC><![CDATA[<Content>
Documentation lines go here</Content>]]></DOC>