You are here:
Add CSV Data to Decision Tables
When you use CSV as the source data for your decision table, you can configure only the input and output columns for the mapping. You can upload the CSV data for your decision table only after you finish creating a decision table.
Required Editions
| Available in: Lightning Experience |
| Available in: Enterprise, Unlimited, and Developer Editions for clouds that have Business Rules Engine enabled |
| User Permissions Needed | |
|---|---|
| To create, edit, and activate a decision table: | Rule Engine Designer |
| To run decision tables: | Rule Engine Designer OR Rule Engine Runtime |
With a CSV-based decision table, you can maintain multiple versions of the decision table, and assign ranks to them. Also, expression sets read multiple results only from CSV-based decision tables that return multiple outputs.
-
From the App Launcher (
), find and select Business Rules Engine.
- Click the app navigation menu, and select Lookup Tables.
- Select the decision table that you created by using CSV as the source.
-
From the Table tab, click Upload CSV.
The Add Data to Decision Table dialog box appears.
-
Select the CSV file from your computer.
Note The first row in your CSV file must be column names or headers.
Note Empty cells in the CSV file are interpreted as empty strings. To represent a null value, enter NULL in uppercase. For more information, see How Null Values Work in Decision Tables.
Warning Due to some technical limitations with popular CSV editing tools, very large numeric values are converted into scientific notation. For example, if your file contains the value 619903629728, it's converted to 6.19904E+11 when the file is saved. When the file is then imported into Business Rules Engine, it causes formatting issues, resulting in failed lookups. To avoid this, follow safe editing best practices as outlined here.- Configure your CSV editor to treat numbers as text.
- If your editor has a setting to disable scientific notation conversion for very large numbers, use the setting.
- Consider using a specialized editor such as EmEditor, which is designed for avoiding such issues. This is especially useful for large edits.
- For minor edits, consider using simple apps such as Notepad, which saves your content as text.
-
To add the data from the CSV file to your decision table, click Add
Data.
To view the data rows in your decision table, refresh the page. You can verify the status of the CSV upload by checking the CSV Upload Status field in the Table tab.
Note Only Salesforce admins and users with the Rule Engine Designer permission set who own the associated decision matrix can edit the decision table. Users with general Read/Write access can't make edits unless they are the owner.
Did this article solve your issue?
Let us know so we can improve!

