Property "Name" of Server with original name "_sample" is invalid. The property value is duplicated.
You may experience this error when you attempt to create a managed server that already exists, especially if you have read an existing template.
In my case, I was building an Oracle Access Manager (OAM) domain and referenced the oracle.oam_ds_11.1.2.0.0_template.jar template. This template defines a managed server, "oam_server1". In my logic, I was trying to create a managed server with the same name, thus the exception was being thrown.
As a workaround, you can do the following:
- In your script logic, reference the pre-existing managed server and manipulate it,
- Name your new managed server something else, or
- Remove the reference to whatever domain template you may be using.