Skip to content · Zum Inhalt

Exchange schema files with other companies

A schema is exchanged as a JSON file, so a schema you built in one company can be used in another company or in a test environment without being typed in again.

Before you start

  • The schema exists and is finished, or you have a schema file another company exported.
  • You know that an imported schema always arrives as a draft and must be released before passports can use it.

Export a schema to a file

  1. On the Product Passport Schemas page, select the schema you want to hand over.
  2. Choose Export. The app writes the schema, its fields with their origins, and its translations to a file with formatVersion: 1.
  3. The app confirms with "The schema <code> version <n> was exported." and offers the file for download.
  4. Read Field Count and Version No. before you hand the file on, so the other company knows what it receives.

Exporting a schema from the schema list

Example: QZ-SCH-FILE Every name once is exported with its 13 fields as version 1.

Import a schema file

  1. In the other company, open Product Passport Schemas and choose Import.
  2. Drop the file into the upload dialog.
  3. The app creates the schema, its fields, its origins and its translations as a Draft and confirms with "The schema <code> version <n> was imported."
  4. Open the imported schema, check the fields, and choose Release when it is right.

Importing a schema file from the schema list

Example: the file of QZ-SCH-FILE version 1 is imported in the next company, where it appears again as QZ-SCH-FILE Every name once, version 1, Draft, with the same 13 fields.

Tip: a released schema can be exported as well. The file then carries the released version, and the company that imports it still has to release it there before its passports can use it.

What happens

Export writes one file per schema version. Import creates the schema, the fields with their origin settings and the translations, and always as a draft, so nothing that arrives from outside can be used by a passport before someone has looked at it. Data types, access levels, source types and calculation types are written and read by name, so a file stays readable when option numbers change.

If something goes wrong

  • "The file has format version <n>. Only version 1 is supported." — the file was written by another version of the app. Ask for a file with format version 1.
  • "Schema <code> version <n> is released and cannot be overwritten" — the schema and version in the file already exist here and are released or obsolete. Import the file under another code, or make a new version of the schema you have.
  • "Unknown value '<x>' in field <code>" — the file names a data type or a source type this version of the app does not know. Check that both companies run the same version.