Hi there,
We are using "zman petf" (policy export to file) and "zman pc" (policy create) to replicate our Test environment settings to pilot production for ZCM 10.3.

I've exported a simple ZENworks Explorer Configuration Policy to the .xml file but when I run the "zman pc <policyname> <xml file>" I'm getting "Error:An internal error occurred. Please check the zman log for more information". The command syntax works fine on the source Test zone. There is no *_Action.xml file involved with this policy.

Other zman commands like "zman pl" work OK on pilot production.

Any thoughts greatly appreciated!
Cheers,
Kirk Maule

The zman.log says:

[DEBUG] [6/21/10 2:41:17 PM] [] [ZMan] [] [Command: pc ZEN Explorer Policy zenExplorerPolicy.xml --TerminalDevice=/dev/pts/0 --ScreenDimension=24 126 ] [] []
[DEBUG] [6/21/10 2:41:24 PM] [] [ZMan] [] [Checking if we need to cache licenses] [] []
[DEBUG] [6/21/10 2:41:24 PM] [] [ZMan] [] [Should recache: false] [] []
[DEBUG] [6/21/10 2:41:26 PM] [] [ZMan] [] [Error:An internal error occurred. Please check the zman log for more information.] [] []
[DEBUG] [6/21/10 2:41:26 PM] [] [CommandRunner] [] [java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:592)
at com.novell.zenworks.zman.CommandRunner.execute(Com mandRunner.java:92)
at com.novell.zenworks.zman.ZMan.executeRunner(ZMan.j ava:321)
at com.novell.zenworks.zman.ZMan.main(ZMan.java:505)
Caused by: com.novell.zenworks.zman.exceptions.ZManException: com.novell.zenworks.datamodel.exceptions.InternalD ataModelException: 1;com.novell.zenworks.datamodel.exceptions.Interna lDataModelException: org.hibernate.exception.ConstraintViolationExcepti on: Could not execute JDBC batch update
at com.novell.zenworks.zman.exceptions.ZManExceptionH andler.handleException(ZManExceptionHandler.java:1 97)
at com.novell.zenworks.zman.exceptions.ZManExceptionH andler.handleException(ZManExceptionHandler.java:6 0)
at com.novell.zenworks.zman.commands.PolicyHandler.cr eatePolicy(PolicyHandler.java:390)
... 7 more
Caused by: com.novell.zenworks.datamodel.exceptions.InternalD ataModelException: 1;com.novell.zenworks.datamodel.exceptions.Interna lDataModelException: org.hibernate.exception.ConstraintViolationExcepti on: Could not execute JDBC batch update
at com.novell.zenworks.zman.exceptions.ZManExceptionH andler.createException(ZManExceptionHandler.java:2 72)
at com.novell.zenworks.zman.exceptions.ZManExceptionH andler.makeDataModelException(ZManExceptionHandler .java:260)
at com.novell.zenworks.zman.commands.PolicyHandler.cr eatePolicy(PolicyHandler.java:379)
... 7 more
Caused by: com.novell.zenworks.datamodel.exceptions.RemoteDat aModelException: 1;com.novell.zenworks.datamodel.exceptions.Interna lDataModelException: org.hibernate.exception.ConstraintViolationExcepti on: Could not execute JDBC batch update
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInsta nce(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newI nstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Construc tor.java:501)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.novell.zenworks.datamodel.exceptions.RemoteDat aModelExceptionMarshaler.deserialize(RemoteDataMod elExceptionMarshaler.java:36)
at com.novell.soa.ws.impl.soap.LiteralEncodingStyle.r eadObject(LiteralEncodingStyle.java:256)
at com.novell.soa.ws.impl.soap.LiteralEncodingStyle.r eadObject(LiteralEncodingStyle.java:235)
at com.novell.soa.ws.impl.soap.LiteralEncodingStyle.r eadObject(LiteralEncodingStyle.java:213)
at com.novell.soa.ws.impl.xml.InputStreamImpl.readObj ect(InputStreamImpl.java:80)
at com.novell.zenworks.datamodel.services.policies.so ap.PolicyAdminServiceBinding_Stub.create(PolicyAdm inServiceBinding_Stub.java:545)
at com.novell.zenworks.zman.commands.PolicyHandler.cr eatePolicy(PolicyHandler.java:373)
... 7 more
] [] []
[DEBUG] [6/21/10 2:41:26 PM] [] [ZMan] [] [Command failed (partially or totally)] [] []
[DEBUG] [6/21/10 2:41:26 PM] [] [ZMan] [] [Command completed in 9554 ms] [] []