My Oracle Support Banner

EM 12c: Metric Collection from emctl in Enterprise Manager 12.1.0.4 Cloud Control Gives Error: XML-20221 (Fatal Error) Invalid char in text (Doc ID 2068864.1)

Last updated on MAY 22, 2017

Applies to:

Enterprise Manager for Oracle Database - Version 12.1.0.1.0 to 12.1.0.8.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

Executing the following command from EM 12.1.0.4 Cloud Control gives the command session error shown:

$emctl control agent runCollection <YOUR_DATABASE>:oracle_database oracle_dbconfig

EMD runCollection error:
oracle_dbconfig:Could not send some or all data over to repository: Failed to upload file: XML error during upload to https://someserver.oracle.local:4900/empbs/upload uplE_P4_S2_I1745.xml will be saved in the badfile directory (TIMEOUT)

Reviewing the badfile uplE_P4_S2_I1745.xml the invalid character can be seen in Line 1, Column 28385


Coincidentally, the .../agent_inst/sysman/log/gcagent.log messages start with:

2015-09-25 10:49:24,076 [29307:B78CFBBF] WARN - Upload file /u01/app/oracle/product/em12c/agent_1/agent_inst/sysman/emd/upload/upload/sending/uplE_P4_S2_I1745.xml with tracking key 1745.1443196162000 being moved to invalid file location storage due to upload error: <Line 1, Column 28385>: XML-20221: (Fatal Error) Invalid char in text.

Due to this issue, users cannot monitor all areas of the database.

 

 

Cause

To view full details, 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 a vibrant support community of peers and Oracle experts.