Skip to main content

Importing Objects

The Import tab of the Import / Export page uploads a file of JAMS object definitions and applies it to the JAMS server you are signed in to. Use it to migrate objects between environments, to restore definitions you exported earlier, or for a one-off transfer of a few objects.

Import is a utility for moving definitions. It is not a source-control solution: it keeps no history of what it imported and doesn't compare versions.

Opening the Import tab​

  1. Click System from the main menu.
  2. Click Import / Export.
  3. Click the Import tab.

The Import and Export tabs share the page title, Import / Export, and the subtitle below it. The Import tab is selected when the page opens, unless the Export Bundle holds objects. Then the Export tab comes first and is selected.

You can switch to the Export tab and back without losing the file you uploaded, its preview or the results of an import. Leaving the Import / Export page resets the tab, and you need to upload the file again.

Accepted files​

The Import tab accepts one file at a time, in either of these formats:

FileContentsOrder
A .zip bundleA bundle downloaded from the Export tab of the JAMS Web Client. See Exporting Objects. It holds one XML file per object type and a manifest.Objects are imported in the order of what they reference, across every file in the bundle. See How objects are processed.
A single .xml fileA file exported from JAMS Desktop or with the Export-JAMSXml cmdlet.Objects are imported in the order of what they reference.

A .xml file doesn't need to be converted to a .zip bundle first. The drop zone shows the accepted extensions and the size limit for a file.

Calendars, Date Types, Menus and App Menus in a .xml file can't be imported in the Web Client. They are listed in the preview as Not supported and can't be selected.

Uploading a file​

When no file is loaded, the tab shows a drop zone with the text "Drop a bundle here, or browse" and "One .zip from JAMS Web Export, or one .xml from JAMS Desktop or Export-JAMSXml."

  1. Drag a .zip or .xml file from your file system onto the drop zone, or click browse and choose the file.
  2. JAMS reads the file and checks each object against the server. The drop zone shows "Reading file name…" until the preview opens.

Upload errors​

If the file can't be used, the tab stays on the drop zone and shows the reason above it.

MessageCause
Unable to read bundle: reasonJAMS couldn't read the file. For example, the .zip is malformed, its manifest is missing or invalid, or the XML can't be parsed.
Drop one file at a time.More than one file was dropped.
File name can't be imported. Import accepts extensions files.The file isn't a .zip or .xml file.
File name is larger than the Import limit of limit MB.The file is larger than the size limit.
File name was changed, moved or deleted after you chose it. Drop it again to check and import the current version.The file changed on disk after you uploaded it. JAMS uploads the file again when you import, so it checks that the file is still the one you previewed.

Previewing the import​

The preview shows what the import will do before anything is written to the server.

Summary and notices​

A summary at the top shows the file name, the number of items and object types, and the counts of each status and problem, for example "48 items in 6 types: 30 new, 18 overwrite · Problems: 2 missing dep".

Below the summary, the tab may show these notices:

  • Restrict ACL On Import. Whether the permissions in the file will be applied. See Permissions and ACLs.
  • Parts of the file couldn't be read. Content JAMS skipped while reading the file.
  • Files changed after export. One or more files in the bundle were edited after it was exported. Import still reads them.
  • Newer JAMS version. The bundle comes from a newer version of JAMS, and settings this server doesn't know may not import.

Target folder for a JAMS Desktop file​

A .xml file from JAMS Desktop or Export-JAMSXml has no folder paths. When the file holds Jobs, Folders or Variables, the preview shows Target folder for Jobs, Folders and Variables. Click the browse button to choose the Folder they go to. The default is the root Folder.

Choosing another Folder checks the items again, because whether an item is New or Overwrite, and what it needs, depends on where it goes. Your selections are kept, apart from items that can no longer be selected.

Items​

Items are grouped by object type, in the order they are imported. Each group header shows:

  • A checkbox that selects or clears every item in the group that can be selected. It is checked when all of them are selected, partly checked when some are, and cleared when none are.
  • The type, the file it comes from in a .zip bundle, and the number of items.
  • How many of the group's items are selected.

Click the group header to collapse or expand the group. Clicking the checkbox selects or clears the group without collapsing it.

Each item shows a checkbox, its name, its full JAMS path for a Job, Folder or Variable, and a chip for its status and each of its problems. Items without a problem are selected when the preview opens. Items with a problem are cleared, so you decide whether to import them.

In the example below, the Jobs group is partly checked: the two Overwrite Jobs and the Missing dep Job are cleared.

When a selected item needs another item from the file that you cleared, a warning under the selected item names the object it needs.

Statuses and problems​

Each item has one status:

StatusMeaning
NewThe server has no object of the same type and path. The import creates it.
OverwriteThe server has an object of the same type and path. The import replaces it with the one in the file.

An item can also have one or more problems:

ProblemMeaning
Missing depThe item refers to an object that is neither in the file nor on the server. The import of this item may fail.
No accessYou don't have permission to create or overwrite the object, or to use an object it refers to. An item with No access on the object itself can't be selected.
Method differsThe Job on the server uses a different Execution Method than the Job in the file. An import never changes a Job's Execution Method.
Type differsThe Agent, Connection or Execution Method on the server is of a different type than the one in the file. An import never changes the type.
Same nameAnother object in the file goes to the same place, with the same type and name, and in the same Folder for a Job, Folder or Variable. Each would overwrite the one before, so select the one you want to import.
Not supportedThe Web Client can't import this type of object. The item can't be selected.

Expanding an item​

An item with details to show has an arrow at the right end of its row. Click the item to open it and see why it has its status, problems or outcome. Click it again to close it.

An open item can show:

  • The objects it needs that are missing, such as "Missing Credential: name", and the objects you have no access to.
  • Notes about the item, such as values the import will leave out.
  • The validation log. By default, it shows the step the item is about with one step above and below it. Click Show all N steps to see the whole log, and Show fewer steps to go back. Failing steps are shown in red and warnings in orange.

No dialog opens. Everything shows inline on the row.

The footer shows how many items are selected, for example "45 of 48 items selected", and two buttons:

  • Cancel returns to the drop zone and discards the file.
  • Import N items starts the import. It is disabled when no item is selected.

Running the import​

  1. Select the items to import.
  2. Click Import N items.

While the import runs:

  • The tab shows "Importing done of total" with a progress bar.
  • Each selected item shows Pending until its result arrives. Items you didn't select are skipped.
  • The checkboxes and the footer buttons are disabled, and the Export tab can't be selected.

How objects are processed​

JAMS imports the selected objects one at a time, in an order based on what they reference: an object is imported after the objects it needs, across every file in a .zip bundle.

When an object needs an object that comes later, JAMS tries it again after the other objects in its file, and once more after all the files. An object that refers to another only in values it can be saved without for a while is saved first, and those values are added once the other object is saved. An object that still can't be imported on the last try fails, and the import continues with the next object.

Leaving during an import​

The import runs on the server. If you leave the Import / Export page while it runs, JAMS asks "Leave while importing?" and warns that you won't see the results here. If you leave or close the browser, the server finishes the import, but the results aren't shown when you come back.

Objects that were imported stay imported. To see where the import got to, upload the file again: the imported items show as Overwrite.

Viewing the results​

When the import ends, the summary at the top shows the counts of each outcome, and each item shows an outcome chip in place of its status and problem chips:

OutcomeMeaning
ImportedThe object was created or replaced. Shown in green.
Imported with warningsThe object was imported, but part of it was left out, such as a link to an object that wasn't imported. Open the item to see the warnings.
FailedThe object wasn't imported. Shown in red.
SkippedThe item wasn't selected. Shown in gray.

Each group header shows the counts of its outcomes, such as "3 imported, 1 failed". The first five failed items open automatically, with the reason and any validation log.

If the import didn't finish, a message above the list says why: the server stopped it, the server refused it before importing anything, or the connection to the server was lost. After a lost connection, the import continues on the server. Upload the file again to see what it imported.

The footer has two buttons:

  • Start over returns to the drop zone and discards the file and its results.
  • Retry failed (N) goes back to the preview with the failed items selected. It is disabled when no item failed.

Retrying failed items​

  1. Fix the problems the failed items show. For example, add a missing object to the file or create it on the server.
  2. Click Retry failed (N).

JAMS checks the file against the server again and returns to the preview. The items the first import created now show as Overwrite and are cleared. Only the failed items are selected, apart from any that can no longer be selected. The message "Imported items were deselected. Fix the problems shown and import again." is shown.

Permissions and ACLs​

The import checks your permissions on each object. In the preview, an object you may not create or overwrite shows No access and can't be selected. Your permissions are checked again when each object is imported, and an object you no longer have permission on fails with the reason in its validation log.

Whether the ACLs in the file are applied depends on the Restrict ACL on Import setting on the System tab of Configuration. There is no ACL option on the Import tab. The preview shows which applies:

  • "Restrict ACL On Import is on: permissions in the file are ignored."
  • "Permissions from the file will be applied (Restrict ACL On Import is off). Changing permissions on existing objects needs Control."

After the import​

Exports don't include secrets. After an import:

  • Enter the password or private key of each new Credential. Existing Credentials keep theirs.
  • Enter the values of new encrypted Variables and parameters, which arrive empty. Existing objects keep their values.

Known limitations​

  • No field-by-field comparison. The preview shows whether an object is New or Overwrite, not what changes. To compare, export the objects from the target server and compare the files outside JAMS.
  • Overwrite is the only way to resolve a conflict. To keep the existing object, clear its checkbox.
  • Leaving the page resets the tab. If you leave the Import / Export page before you click Import N items, upload the file again.
  • Missing dependencies aren't created. Add the missing objects to the bundle, or create them on the target server first.