Skip to content

Masking Whole File

You can now configure the masking engine to mask the complete file (for example, JSON or Parquet) and pass the content of that file as a single input to an algorithm.

Pre-requisite

  • You must create a fixed-width file connector. For more information on creating connectors, see Managing Connectors.
  • You must create a fixed-width file format that has only one field defined in it. For more information on creating file formats, see Managing File Formats.

Masking a Whole File

Perform the following procedure to mask a whole file.

  1. Navigate to Environemnts > Ruleset.

  2. On the Rule Set screen, click the Edit icon to the right of the fixed-width connector rule set. Alternatively, click on the fixed-width connector name.

    The rule set screen displays all the files in the directory that are associated with the respective connector.

  3. Click the Edit icon to the right of the file or pattern name.

    The Edit File screen appears.

  4. From the File Format drop-down list, select a file format that has only one field defined in it. Selecting any other file format will result in an error.

  5. Select the Mask Whole File checkbox to enable whole file masking.

    Selecting this option results in disappearance of other options (End of Record, Delimited, Enclosure, and Escape Character for Enclosure). These configurations are no more required as the masking engine will now read the whole file and send it to the algorithm.

    Note

    Masking whole file is applicable only for:

    • Files that are less than 200 MB in size. However, you can modify this limit via API by configuring 'WholeFileMaskingMaxFileSizeInMB' key in the Application Settings.
    • File format that has only one field defined in it.

  6. Click Save.

  7. Navigate to Environemnts > Inventory.

    The Record Types, Define Fields, and the Delete options are greyed-out when you select a file format that is used with any fixed-width file having Mask Whole File option enabled.

  8. Click the Edit icon to the right of the record type.

  9. From the Algorithm drop-down list, select the matching extended algorithms that must be applied to the file.

    Note

    You can not modify/update the length and position for the single field defined in the respective file format if you enable the Mask Whole File option in the rule set screen.

  10. Click Save.