Home / How-to / Run and administer
Environments and variables
Change a server or a folder in one place for every element that uses it, and keep separate values for test and production.
The short version
- A variable is a named value, like a server name or a folder, that you keep once for the whole project. Fields bound to it read its value instead of their own.
- An environment is a set of values for those variables. Every project has Development. You can add others, such as Production, each with its own values.
- To bind a field, click the globe icon beside it. The field then shows Development's value, and editing the field edits that value.
- The tool always works in Development: processing, previews and reading a file's headers use its values. The other environments are kept for the services that will run them.
- How Development stores processed data, in memory or in SQL Server, and how many elements it runs at once, are on the Processor tab of Project settings.
In this guide
What it is
The same setting often turns up in many elements. The Orders, Products, Sites and Customers acquisitions all read Sales.xlsx. Every SQL Server Acquisition over SalesDB names the same server. When the file moves or the server changes, you would have to open each element and change it.
A variable saves you that. It is a named value, such as Sales Workbook, kept once in the project. A field bound to the variable reads the variable's value. Change the value and every bound field follows.
An environment is one set of values for the variables. Every project has an environment called Development, and it is the one the tool works in. You can add more, such as Test or Production, and give each its own values: the test copy of the workbook in Development, the real one in Production.
If you have used Power BI, a variable plays the part of a query parameter, and an environment the part of one stage of a deployment pipeline.
The environments and variables belong to the project. They are saved with it and go with it to everyone who opens it.
Before you start
You need:
- A project open in ConradTool, and to be signed in.
- Multiple Environments in your plan, if you want environments beyond Development. Variables work in every plan.
The examples use the Orders acquisition: an Excel Acquisition of the Orders sheet in Sales.xlsx. Any field with a globe icon beside it works the same way.
Your first variable
This takes about three minutes.
- Open Acquisitions, then
Orders. - Click the globe icon at the right of File path. Its tooltip reads "Bind to an environment variable".
- Click New Variable…. The New variable name box suggests
Orders - File path. TypeSales Workbookand click Create. - The globe turns blue: the field is bound. The box still shows the path to
Sales.xlsx, because binding copied it into the variable as Development's value. - Save the element: ProjectSave, or Ctrl+S. The new variable is saved with it.
- Open OptionsProject settings… and pick Environments in the list on the left.
Sales Workbookis under Variables, and Values in Development holds the path. - Beside the variable's name, change its type from Text to File Path. Its value now has a … button that opens a file picker.
- Click Close.
Read back, the binding says: "Orders reads the workbook named by Sales Workbook. In Development, that is this path."
Now bind the other acquisitions that read the workbook. Open Products, click the globe at File path, point to Variables and pick Sales Workbook. Do the same for Sites and Customers.
Tip: Binding a field copies the text it holds into Development's value. Bind a field that names the same file, or an empty one. A field with a different path would replace the value every other bound field reads.
Add an environment
- Open OptionsProject settings… and pick Environments.
- Click Add. A new environment called Environment1 is added and picked in the Environment list.
- In Name, type
Production. - In Values in Production, give
Sales Workbookthe path of the production copy of the workbook. The … button picks it. - Click Close. This tab saves your changes as you make them.
Back in Orders, hover over the blue globe at File path. A box lists the value of Sales Workbook in every environment, with Edit in Environments… to open the tab again.
The field itself always shows Development's value, and typing in it changes that value. To change another environment's value, use the Environments tab.
To remove an environment, pick it in Environment and click Remove. Development can't be removed, and its name is fixed.
Fields that take a variable
A field takes a variable when a globe icon shows at its right. The usual ones:
| Element | Fields |
|---|---|
| SQL Server Acquisition | Server, Database, Schema |
| Excel, PDF, Microsoft Access and File Acquisitions | File path, or Folder path and File filter |
| File Acquisition, after processing | Archive folder, Exception folder |
| Semi-Structured Acquisition | Source, File path, Folder path, File filter, Sample file |
| Website Acquisition | URL |
| Execution Acquisition | Program, Arguments, and the target's File path or Folder path |
| Charts and cards | The title's Text, and the font settings that show a globe |
A server name is the classic case. Bind Server on every SQL Server Acquisition over SalesDB to one variable, say Sales Server. Development names your test server and Production the live one.
The globe's menu has three commands:
- Variables lists the project's variables. Pick one to bind the field to it.
- New Variable… creates a variable and binds the field to it.
- Unbind Variable turns the field back into a plain field. It keeps the value it showed.
Variable types
Each variable has a type, picked beside its name under Variables. The value is always used as text. The type decides how you fill it in on the Environments tab:
| Type | You fill in the value with |
|---|---|
| Text, Number, Decimal | Typing |
| Date | A calendar |
| True or False | A tick |
| File Path | Typing, or … to choose a file |
| Folder Path | Typing, or … to choose a folder |
A new variable is Text. Add variable adds one named Variable1, then Variable2, and so on. Type over the name to rename it.
Renaming a variable renames it in every environment, but not in the fields bound to it. Bind those fields again, from Variables in the globe's menu.
The ✕ beside a variable removes it, with its value in every environment. Unbind the fields that use it first, so they keep their values.
Why the tool works in Development
ConradTool works in one environment, Development, and you can't switch it. Every bound field shows Development's value. Processing, previews and reading a file's headers use Development's values too.
The other environments' values are kept in the project, as the Environments tab puts it, "for the services that will run it". In 1.2.52 nothing in the tool runs them yet: a schedule saved from the tool takes Development's values as well.
So point Development at data you can process safely while you build: a copy of the workbook, a test database. Keep the live values in an environment of their own, such as Production.
Processing settings
The variables say where the data comes from. Two other tabs of Project settings say how Development processes it: Processor and Visualizer. They set ConradTool's own processor and visualizer, which run inside the tool, as they run in Development. Their settings are stored in the project and travel with it.
To set the processor:
- Open OptionsProject settings… and pick Processor.
- On the Config tab, pick the Storage Mode: In Memory or Sql Server.
- For Sql Server, type the server's name in SQL Server and click Connect. Then pick a Database and a Schema. The tool connects with your Windows account, so no password is asked for or stored.
- Set MaxDOP: how many elements are processed at the same time. It starts at 4, and the least is 1.
- Click Save to processor. The settings apply from the next run.
The badge beside Process all in the Services panel shows the mode in use, for example "Storage: Sql Server".
| Storage Mode | What happens |
|---|---|
| In Memory | Processed data is kept in the tool's memory while the project is open. After you close and open the project, you process again |
| Sql Server | Each element writes its own table to the database and schema you picked, and the tables stay there between sessions. When an element's sources are all in SQL Server, the server does the work where it can |
The Visualizer tab sets the visualizer, which loads each fact once and serves every visual from it. Its Storage Mode has one choice, In Memory. Its Loads tab lists the facts it holds.
Both tabs have a Logging group. Pick a Logging method: None, File (log files in a Folder, a new one as often as New file says) or Sql (a table in a database you Connect to). Retention keeps everything, or the number of days you type. Only a Sql log can be filtered and paged on the Log tab.
A processor service on another computer has one configuration of its own and ignores these tabs. See Processing and schedules.
When something goes wrong
| What you see | What to do |
|---|---|
| Add is greyed out: "Multiple Environments isn't included in your plan. See your account page at conradbi.com to add it." | Your plan has Development only. Variables still work. Add Multiple Environments on your account page for more environments |
| Remove and Name are greyed out | Development is picked. It can be neither removed nor renamed |
| A bound field is empty | The variable has no value in Development, or it was renamed or removed. Fill in the value on the Environments tab, or pick the variable again from the globe's Variables |
| Every acquisition bound to a variable now reads another file | Binding a field copied its text into Development's value. Put the right value back on the Environments tab |
| The tool processes the test data, not the live data | That is by design: the tool works in Development. Hover over a field's globe to see each environment's value |
| "Connection failed: …" after Connect | Check the name in SQL Server. Connect uses your Windows account, which needs access to that server |
| The storage badge still shows the old mode | Click Save to processor on the Processor tab |
| "This processor isn't logging. Choose a logging method on the Config tab." | Pick File or Sql under Logging, then click Save to processor |
| The Log tab says the processor writes its log to files | Only a Sql log can be read there. Click Open beside Folder to read the files, or switch to Sql |
Reference
The Environments tab
| Control | What it does |
|---|---|
| Environment | Picks the environment whose name and values the tab shows |
| Add | Adds an environment, with a blank value for every variable |
| Remove | Removes the picked environment. Not Development |
| Name | Renames the picked environment. Not Development |
| Variables | The project's variables, each with a name, a type and a ✕ |
| Add variable | Adds a variable to every environment |
| Values in … | The picked environment's value for each variable, under Variable, Type and Value |
The globe beside a field
| Command | What it does |
|---|---|
| Variables | Binds the field to the variable you pick. Text in the field becomes Development's value |
| New Variable… | Asks for a New variable name, creates the variable and binds the field |
| Unbind Variable | Makes the field plain again, keeping the value it showed |
| Edit in Environments… | In the box that shows when you hover: opens the Environments tab |
The Processor tab
| Setting | What it does |
|---|---|
| Storage Mode | In Memory or Sql Server, for every element |
| SQL Server, Connect, Database, Schema | Where Sql Server storage writes |
| MaxDOP | How many elements are processed at once. 4 to start with |
| Logging | Whether and where the processor logs, and for how long |
| Read from processor | Shows the saved settings again, dropping unsaved changes |
| Save to processor | Saves the settings. They apply from the next run |
Missing something?
Tell us what you were trying to do and what this guide didn't answer. We update it with every release.
Write to usWhat changed in this guide
- November 21, 2026: Reviewed against ConradBI 1.2.59.
- October 31, 2026: First edition, written for ConradBI 1.2.52.
