Environment
Novell ZENworks 10 Configuration Management with Support Pack 1 -
10.1 Bundles
Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 Migration
Novell ZENworks 10 Configuration Management with Support Pack 1 - 10.1 Migration
Situation
ERROR: "Exception Thrown USAGE_ERROR: 2;The name contains invalid characters:"
If an application from ZDM (ZENworks Desktop Management) contains a tilde ("~") in the name, such as XYZ-Simple-Application~R1-CGY-en and it is automatically migrated because it's in a Site List, or because it's a dependent application, the tilde does not get replaced with an underscore ("_"), and the migration fails.
The application is migrated correctly if it is manually migrated.
If an application from ZDM (ZENworks Desktop Management) contains a tilde ("~") in the name, such as XYZ-Simple-Application~R1-CGY-en and it is automatically migrated because it's in a Site List, or because it's a dependent application, the tilde does not get replaced with an underscore ("_"), and the migration fails.
The application is migrated correctly if it is manually migrated.
Resolution
This is fixed in version 10.1.3 - see KB 7002526 "ZENworks 10
Configuration Management 10.1.3" which can be found at https://www.novell.com/support
Additional Information
Extract from migration log:
Migrating cn=~`reg_edit_'~HKLM,ou=apps,o=novell to /~bundles~/~`reg_edit_'~HKLM
Migrating from RRTZEN7 tree to MY_ORACLE zone
Error Migrating cn=~`reg_edit_'~HKLM,ou=apps,o=novell to /~bundles~/~`reg_edit_'~HKLM
Exception Thrown USAGE_ERROR: 2;The name contains invalid characters: ~`reg_edit_'~HKLM in Migrate
Stack Trace: at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
at PluginInterface.BundleAdminService.BundleAdminServiceService.create(ZENObject object)
at Apps.Plugin.Migrate(MigrationInfoStruct myMigrationInfoStruct)
Aborting Migration Task
Migration failed for cn=~`reg_edit_'~HKLM,ou=apps,o=novell
Migration of this object took: 0 hours, 0 minutes, 0 seconds, 609 milliseconds