capam_command with addTargetApplication failed because of PAM-CM-0536 error

Document ID : KB000076419
Last Modified Date : 04/04/2018
Show Technical Document Details
Introduction:
It tried to create the UNIX application named 'test0219' by the capam_command as follows, but the error returned. 
 
C:\work\PAM\CAPAM_3.1.1\RemoteCLI>capam_command capam=<IP ADDRESS> adminUserID=super cmdName=addTargetApplication TargetServer.hostName=<DEVICE NAME> TargetApplication.name=test0219 TargetApplication.type=generic 
Enter password: 

<CommandResult><cr.itemNumber>0</cr.itemNumber><cr.statusCode>1</cr.statusCode><cr.statusDescription>PAM-CM-0536: Application error occurred. An error occurred while executing the command: addTargetApplication</cr.statusDescription><cr.result></cr.result></CommandResult>

The below DocOps explains the command with the required parameters and the above command has all required parameters. But the problem occurs.

 Title: addTargetApplication 
 https://goo.gl/HyLe9K 

Also, when it ran this command, the session log was not updated anything that related to this action.
Environment:
CA Privileged Access Manager 3.1.1
Instructions:
Here is the for example of the UNIX/Linux's application creation. 
 
capam_command capam=<IP address> adminUserID=super cmdName=addTargetApplication TargetServer.hostName=xx.xxx.x.xx TargetApplication.name=testRHEL TargetApplication.type=unixII 

Windows Proxy is the TargetApplication.name=windows. 

Regarding the UNIX connector for the TargetApplication.name, the below DocOps page explains about the value. 
https://docops.ca.com/ca-privileged-access-manager/3-1-1/EN/reference/credential-manager-target-connector-settings/unix-target-connector#UNIXTargetConnector-UNIXAddTargetApplicationCLIParameters