Error occurs during import of a classic virtual system pattern that was exported from another system

When you attempt to import a classic virtual system pattern, the import fails.

Symptoms

When you export the pattern, you see the error message: The execution mode for the script package {script package name} is set to "user initiate", which does not work with script package ordering. You must change the execution mode for the script package or the import of the pattern will fail.

When you import the pattern on another system, you see the message: The script package "{script package name}" cannot be ordered. Make sure that its execution mode is 0 or 3.

Explanation

The pattern editor specified script package execution order for the pattern and added a script package that was set to execute "at virtual system creation" (0) or "at virtual system creation and when I initiate it" (3). The script package editor later changed that setting to "at virtual system instance deletion" (1) or "when I initiate it" (2). This change put the pattern in an invalid state that exports successfully but cannot import successfully.

For more information about this script package property, see Fields on the Script Packages page.

Resolving the problem

  1. Edit the original pattern and either change the execution mode for the script package that is causing the failure to at virtual system creation or at virtual system creation and when I initiate it, or remove the script package from the script package ordering.
  2. Save this change, and then export the pattern again.
  3. Import this updated pattern to the other system.