My Oracle Support Banner

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

Last updated on FEBRUARY 25, 2019

Applies to:

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


Executing the following command from EM 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 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 <Agent Base>/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.




To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.