-cmdfile for bamcommand is not working with "permission" option

(Doc ID 2318232.1)

Last updated on OCTOBER 18, 2017

Applies to:

Oracle BAM (Business Activity Monitoring) - Version 12.2.1.0.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to use bamcommand with -cmdfile option
the following error occurs.

ERROR
-----------------------
2017-05-30 11:41:11.982 [00001] FINER oracle.beam.impexp.commandline.util.BeamXMLValidationHandler.handleEvent:
EVENT
SEVERITY: 2
MESSAGE: cvc-complex-type.3.2.2: Attribute 'permission' is not allowed to appear in element 'Import'.
LINKED EXCEPTION: org.xml.sax.SAXParseException; lineNumber: 2; columnNumber: 83; cvc-complex-type.3.2.2: Attribute 'permission' is not allowed to appear in element 'Import'.
LOCATOR
  LINE NUMBER: 2
  COLUMN NUMBER: 83


STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Create in.xml and ex.xml
 
Example of in.xml:

<OracleBAMCommands continueonerror="0">
<Import id="1" type="dataobject" mode="overwrite" permission="1" file="/refresh/home/Desktop/3-15019698627/SimpleTESTDO.zip"/>
</OracleBAMCommands>

Example of ex.xml

<OracleBAMCommands continueonerror="0">
<Export id="1" type="dataobject" name="SimpleTESTDO" permission="1" file="/refresh/home/Desktop/3-15019698627/export_SimpleTESTDO.zip"/>
</OracleBAMCommands>


2. Export DO using cmdfile option: bamcommand -cmdfile ex.xml
3. Import DO using cmdfile option: bamcommand -cmdfile im.xml
4. Observe the issue: DO successfully exported/imported, but without any customized security role.

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