Failed Import of Translated Articles Due to Hidden BOM Characters (Doc ID 1493442.1)

Last updated on SEPTEMBER 19, 2016

Applies to:

Oracle Knowledge - Version 8.1.3.1 and later
Information in this document applies to any platform.

Symptoms

One Example of the issue:

Attempting to import translated articles fails with the following exceptions found in the IM wrapper log

[Fatal Error] :1:1: Content is not allowed in prolog.
126367521 [Thread-730] ERROR com.inquira.foundation.utilities.ExceptionLogWriter  - DOMHelper.stringToDocument()
org.xml.sax.SAXParseException: Content is not allowed in prolog.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
at com.inquira.foundation.xml.DOMHelper.stringToDocument(DOMHelper.java:138)
at com.inquira.admin.content.TranslatedContentImport.setDestinationContentText(TranslatedContentImport.java:543)
at com.inquira.admin.content.TranslatedContentImport.createContent(TranslatedContentImport.java:378)
at com.inquira.admin.content.TranslatedContentImport.importRecords(TranslatedContentImport.java:326)
at com.inquira.admin.content.TranslatedContentImport.performAction(TranslatedContentImport.java:290)
at com.inquira.admin.application.CVProgressThread.run(CVProgressThread.java:65)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Thread.java:595)
126367521 [Thread-730] ERROR com.inquira.admin.content.TranslatedContentImport  - Total Memory in JVM : 1349713920
Free Memory : 334323472

ERROR:
Content is not allowed in prolog.
DOMHelper.stringToDocument() error creating a Document with xml string: <KB_ARTICLE>

 

Another Example:

Attempting to import content using a csv file in the UTF-8 format results in the record not saving.

Date: 2013-08-21 09:48:32 Etc/GMT
User:  Name of User
Rows in file: 1
Successfully parsed records: 1
Successfully saved records: 0

*** Saving errors: The file entered is not valid. See logs below:

This key is not part of the Schema: KEY: ////CHANNEL/ATTRIBUTE
Missing required attributes on first row of the text file. The following Schema Attribute is required by the schema.

Attribute: ////CHANNEL/ATTRIBUTE
FAILEDROWS: 1
IPADDRESS: 10.12.345.67
SITEGUID: 02460157437ec894011b38094532007fbd
SITEID: null
SITEREFKEY: REPOSITORY
SUCCESSFULROWS: 0
TYPE: CONTENT
USERID: Name of User
USERNAME: null

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms