# ImportOptionsType (Complex Type)

### Namespace: http://midpoint.evolveum.com/xml/ns/public/common/common-3

The options for import tasks. It specifies optional settings for import such as "overwrite" and "stop on error".

Item Summary
Name | Type | Multiplicity | Description
--- | --- | --- | ---
overwrite | property boolean | [0,1] | If set to a true value it will cause that objects that are already in the repository will be overwritten by the imported objects.
keepOid | property boolean | [0,1] | If set to a true value it will cause that objects that overwritten objects will reuse the same OID as previous objects.
stopAfterErrors | property int | [0,1] | Number of errors that will cause import to stop.
summarizeSucceses | property boolean | [0,1] | If set to true the successfully imported items will be summarized in the result.
summarizeErrors | property boolean | [0,1] | If set to true the import errors will be summarized in the result.
referentialIntegrity | property boolean | [0,1] | TODO
validateStaticSchema | property boolean | [0,1] | TODO
validateDynamicSchema | property boolean | [0,1] | TODO
encryptProtectedValues | property boolean | [0,1] | TODO
fetchResourceSchema | property boolean | [0,1] | TODO
keepMetadata | property boolean | [0,1] | If set to true then the importer will keep the metadata from the source file.
modelExecutionOptions | container ModelExecuteOptionsType | [0,1] | If present, these options are used for adding objects into the repository.
compatMode | property boolean | [0,1] | Compatibility model.

- ### Items

  - #### overwrite

    Flags: RAM,runtime

    Multiplicity: [0,1]

    If set to a true value it will cause that objects that are already in the repository will be overwritten by the imported objects. It may not be applicable to all import types. E.g. it makes no sense for import from resource, as this is not storing objects in the repository directly.

  - #### keepOid

    Flags: RAM,runtime

    Multiplicity: [0,1]

    If set to a true value it will cause that objects that overwritten objects will reuse the same OID as previous objects. May be potentially dangerous. USE WITH CARE.

  - #### stopAfterErrors

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Number of errors that will cause import to stop. If set to one the import will stop on first error. If set to zero or negative value the import will not stop on any error.

  - #### summarizeSucceses

    Flags: RAM,runtime

    Multiplicity: [0,1]

    If set to true the successfully imported items will be summarized in the result. WARNING: setting this to false may result in a very large result structure and may cause overflow of the system memory.

  - #### summarizeErrors

    Flags: RAM,runtime

    Multiplicity: [0,1]

    If set to true the import errors will be summarized in the result.

  - #### referentialIntegrity

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO

  - #### validateStaticSchema

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO

  - #### validateDynamicSchema

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO

  - #### encryptProtectedValues

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO

  - #### fetchResourceSchema

    Flags: RAM,runtime

    Multiplicity: [0,1]

    TODO

  - #### keepMetadata

    Flags: RAM,runtime

    Multiplicity: [0,1]

    If set to true then the importer will keep the metadata from the source file. If set to false then the imported will re-generate metadata on each object.

  - #### modelExecutionOptions

    Flags: RAM,runtime

    Multiplicity: [0,1]

    If present, these options are used for adding objects into the repository. Null option values might be overridden by import-related options. In particular, the missing "raw" option is overridden to "true". So, if you want the operation run in non-raw mode, set "raw" option to "false".

  - #### compatMode

    Flags: RAM,runtime

    Multiplicity: [0,1]

    Compatibility model. If selected then the data parsing will be less strict. E.g. removed element will be ignored.