Creating a File data set record for embedded files
To read data from an uploaded file in CSV or JSON format, you must configure an instance of the File date set rule.
- On the New tab, in the Data source section, click Embedded file.
- Upload a file:
- In the File management section, click Upload file.
- In the Upload file dialog box, click Choose File.
- In the Open dialog box, select the target file, and then click Open.
- In the Upload file dialog box, click Upload.
- Optional: For CSV files, to update file settings automatically, in the Parser configuration section, click Configure automatically, and then go to step 6.
- For CSV files, update additional file settings:
- Specify if the file contains a header row by selecting the File contains header checkbox.
- In the Delimiter character list, select a character separating the fields in the selected file.
- In the Supported quotation marks list, select the quotation mark type used for string values in the selected file.
- For CSV and JSON files, update date and time settings:
- In the Date time format field, enter the pattern
representing date and time stamps in the selected file.The default pattern is: yyyy-MM-ddHH:mm:ss
- In the Date format field, enter the pattern representing
date stamps in the selected file.The default pattern is: yyyy-MM-dd
- In the Time of day format field, enter the pattern
representing time stamps in the selected file.The default pattern is: HH:mm:ss
- In the Date time format field, enter the pattern
representing date and time stamps in the selected file.
- For CSV files, on the Mapping tab, check and complete the
mapping between the columns in the CSV file and the corresponding properties in Pega Platform:
- To map an existing property to a CSV file column, in the Property column, press the Down Arrow and choose the applicable item from the list.
- For CSV files with a header row, to automatically create properties that are not in Pega Platform and map them to CSV file columns, click Create missing properties. Confirm the additional mapping by clicking Create.
- To manually create properties that are not in Pega Platform and map them to CSV file columns, in the Property column, enter a property name that matches the Column entry, click the Target icon, and configure the new property. For more information, see Creating a property.
- Optional: Download the file that you uploaded. In the File tab, in the File download section, click Download file.
- Confirm the new File data set configuration by clicking Save.
Previous topic Configuring Hadoop settings for an HDFS connection Next topic Creating a File data set record for files on repositories