You are here: Reference > Rule types > Data Set > Creating a File data set record

Creating a File data set record

You must configure each instance of the File data set rule to read data from a file in CSV or JSON format.

The File data set supports two types of JSON input, standard array format and newline-delimited JSON.

  1. Create an instance of the File data set rule.

  2. Upload a file.

    The file size that can be uploaded is limited. To check the system limits, see System limits and maximums.

    1. Click Upload file.

    2. In the Upload file dialog box, browse for a CSV or JSON file and click Upload.

    After the file is uploaded, the sections in the File tab are updated with additional details:

  3. Specify additional settings in the Content section.

    The system identifies the appropriate settings and automatically populates the fields in this section. You can modify the settings, if necessary.

    1. Enter the uploaded file type. The file can be only in CSV or JSON format.

    2. Configure additional settings.

  4. Click the Mapping tab.

  5. Click Save.

    For invalid CSV or JSON files, errors are displayed that indicate the reason for the error and a line number where the error is present in the file.

  6. Optional: After you save the rule form, you can download the file that you uploaded in the File download section in the File tab.