zman policy-create fails when xml contains satellite server information

  • 7001942
  • 19-Nov-2008
  • 07-Jul-2012

Environment

Novell ZENworks 10 Configuration Management Zman

Situation

Note:  This ONLY applies to using zman to move objects from one zone to another.  For  similar error in other cases see related TID 7006732
 
Error when creating a policy with zman policy-create from an xml that was exported from another zone with zman policy-export-to-file .
 
ERROR: 
 
"Error: An internal error occurred. Please check the zman log for more
information."
 
ERROR (from zman.log ):
 
[DEBUG] [11/20/08 1:38:38 PM] [] [CommandRunner] [java.lang.reflect.InvocationTargetException
...
Caused by: com.novell.zenworks.zman.exceptions.ZManException: com.novell.zenworks.datamodel.exceptions.InternalDataModelException: 1;com.novell.zenworks.datamodel.exceptions.InternalDataModelException: org.hibernate.exception.ConstraintViolationException: could not insert collection: [[com.novell.zenworks.datamodel.objects.assignablecontent.AssignableContentObject.SatelliteServers#27f88366304bc31520d151aeaac16818]]

Resolution

This is fixed in version 11.2.1 - see KB 7010042 "ZENworks Configuration Management 11.2.1 - update information and list of fixes" which can be found at https://support.microfocus.com/kb/doc.php?id=7010042

Workaround:
The zman export is including zone specific GUIDs of satellite servers assigned for content.  Remove sections tagged SatelliteServers references from the policy.xml that zman betf created prior to creating in the new zone.
 
For example remove:
 
</ns2:SatelliteServers >