You have attempted to pass an invalid name for the name argument when calling the rdoEngine.rdoCreateEnvironment method or Add method with a private rdoEnvironment.
To avoid this error, make sure you pass a valid name as the name argument. The name can be any string expression that is not null or empty, and it should not be a duplicate of any name previously added to the collection.