ImportCantHaveCheck
 
Type

Long

Default

1

Required

no

Description

Allows you to specify how the ImportCantHaveCSVs strings should be applied by entering a bitwise mask number. You can determine this number by adding up some of the following numbers as appropriate:

Check specified fields: 0

If you enter 0, the Import Module checks the specified ImportCantHaveFieldCSVs fields for any of the specified ImportCantHaveCSVs strings. If any of the fields in a document contains any of the strings, the document is not imported.


DREREFERENCE: 1

If you enter 1 the Import Module checks if a document's DREREFERENCE contains any of the specified ImportCantHaveCSVs strings. If it does, the document is not imported.


Case insensitive: 64

You can add 64 to the ImportCantHaveCheck value in order to make the checking of the specified ImportCantHaveCSVS fields case-insensitive.


Note:

  • The Import Module performs CantHave and MustHave checks as a last stage of the importing process, after field operations are executed. This means that if a field is modified during the importing process, the Import Module checks the modified value for the strings you specify with ImportCantHaveCSVs. If you want to check documents before field operations are executed, you must set ImportCantHaveCheckAfterOps=false.
  • CantHave requirements have precedence over MustHave requirements. That is, if the same string is specified for both ImportMustHaveCSVs and ImportCantHaveCSVs, and the Import Module finds that string in a document, the document is not imported.
Example

ImportCantHaveCheck=65

In this example, the Import Module checks the DREREFERENCE of documents for case-insensitive matches of any ImportCantHaveCSVS. If the DREREFERENCE of a document contains any of the ImportCantHaveCSVS strings, the Import Module discards the document.

See also

ImportCantHaveCheckAfterOps

ImportCantHaveCSVs

ImportCantHaveFieldCSVs

ImportMustHaveCheck

ImportMustHaveCheckAfterOps

ImportMustHaveCSVs