Clarix
Formulas

Formula Import

How to bulk-import formula headers via CSV and how to import formula steps from Excel or CSV within a formula in Clarix.

Clarix provides two import paths for formulas: a formula header import that creates multiple formula records at once from a CSV file, and a formula steps import that populates the Steps tab of an individual formula from an Excel or CSV file. These tools are especially useful when migrating an existing formula library into Clarix or when building out a large number of formulas efficiently.

Formula import

Role required: Compounder, PIC, or QA Manager role is required to import formulas.


Formula header import (bulk CSV)

The formula header import creates new Draft formula records in Clarix. It does not import BOM lines or steps — those must be added separately after import, either manually or via the steps import tool.

When to use this

  • Migrating an existing formula library from a spreadsheet system
  • Creating a batch of new formula shells that a team will build out over time
  • Rapidly setting up formulas after a system implementation

Step-by-step: importing formula headers

  1. In the sidebar, click Formulas.
  2. Click the Import button in the top-right corner of the Formulas catalog page.
  3. Click Download CSV template to get the correct file format.
  4. Open the template in Excel or a CSV editor and fill in your formula data.
  5. Save the file as CSV (UTF-8 encoding recommended).
  6. Back in Clarix, click Upload CSV and select your file.
  7. Review the import preview — each row is shown with its parsed values and any validation errors.
  8. Resolve errors (see Validation errors) and re-upload if needed, or deselect individual rows to skip them.
  9. Click Confirm import to create the formulas.

CSV template columns

ColumnRequiredDescription
product_nameYesFull product name (e.g., "Famotidine 4 mg/mL Injectable")
product_codeNoInternal product code
strengthNoConcentration or potency (e.g., "4 mg/mL")
dosage_formYesMust match one of: Injectable Solution, Injectable Suspension, Ophthalmic, Otic, Oral Solution, Oral Suspension, Topical Cream, Topical Gel, Suppository, Capsule, Other
batch_sizeYesNumeric batch size (e.g., 2500)
batch_unitYesUnit: mL, L, g, kg, units, capsules, patches
product_typeYesSterile or Non-sterile
bud_categoryYesSterile: Cat1, Cat2, Cat3 / Non-sterile: NonAqueous, WaterOral, WaterTopical, Other
bud_daysYesNumber of days (e.g., 12 for Cat 1 sterile would be entered as 1; Cat 2 as days granted by your study)
storageYesRoomTemp, Refrigerate, Freeze, or DeepFreeze
protect_from_lightNoTRUE or FALSE
risk_levelYesLow, Medium, or High
special_instructionsNoFree text; use double-quotes if the text contains commas

After import

All successfully imported formulas are created with Draft status and receive auto-generated formula numbers (e.g., MF-2026-0001). They appear in the Formulas catalog filtered by Draft status.

Next steps for each imported formula:

  1. Open the formula and verify all imported attributes.
  2. Add BOM lines on the Bill of Materials tab (or use the BOM import on that tab).
  3. Add steps on the Steps tab (or use the Steps import described below).
  4. Submit for pharmacist review when complete.

Formula steps import (Excel or CSV)

You can import steps directly into a specific formula's Steps tab. This is useful when you have the manufacturing procedure documented in a structured spreadsheet.

Step-by-step: importing formula steps

  1. Open the target formula (must be in Draft status).
  2. Click the Steps tab.
  3. Click Import steps.
  4. Click Download template to get the steps template in Excel (.xlsx) format or CSV.
  5. Fill in the template (see columns below).
  6. Click Upload file and select your Excel or CSV file.
  7. Clarix parses the file and shows a step-by-step preview with the step type, label, and any field values parsed from the file.
  8. Review each step and its configuration. Rows with errors are highlighted in red with an explanation.
  9. Deselect any rows to skip, or fix the file and re-upload.
  10. Click Confirm import to add the steps to the formula.

Imported steps are appended to any existing steps. They can be reordered after import using the drag handles.

Steps template columns

ColumnRequiredDescription
step_orderYesInteger; determines the sequence (1, 2, 3…)
step_typeYesOne of: Instruction, Measurement, DataEntry, BarcodeScan, Checklist, Verification, Calculation, Timer, Signature, SupplyGathering, LabelVerification, PhotoCapture
labelYesThe step title or instruction text
target_valueConditionalFor Measurement and Calculation steps; can be a numeric value or expression
min_valueNoLower bound for Measurement steps
max_valueNoUpper bound for Measurement steps
unitNoUnit of measure for Measurement/Calculation steps
duration_minutesConditionalRequired for Timer steps
duration_secondsNoAdditional seconds for Timer steps
required_roleConditionalRequired for Signature steps: Pharmacist, PIC, QAManager
checklist_itemsConditionalFor Checklist steps; separate items with a pipe character (|)
help_textNoAdditional guidance text shown below the step
warning_levelNoNone, Caution, Warning, or Critical (for Instruction steps)

Supported file formats

  • Excel (.xlsx) — recommended; supports the full template with column headers and data validation dropdowns pre-configured in the template file
  • CSV (.csv) — UTF-8 encoding; use double-quotes around fields that contain commas or pipe characters

Validation errors

During import preview, Clarix checks each row and displays errors inline. Common errors include:

ErrorCauseFix
Unknown dosage formValue in dosage_form column doesn't match an allowed valueUse the exact values from the dropdown list
Invalid step typestep_type is misspelled or not in the allowed listCheck spelling; refer to the allowed values above
Missing required fieldA required column is blank for a rowFill in the required value
Expression syntax errorA calculation expression contains invalid syntaxTest the expression in the formula step editor before importing
Duplicate formula nameA formula with that name already exists in Draft or Approved statusRename the formula or skip the row

Errors are shown row-by-row in the preview table. You can:

  • Fix and re-upload — correct the CSV/Excel file and upload again
  • Skip invalid rows — uncheck the checkbox on error rows; only valid rows will be imported
  • Cancel — discard the import entirely

On this page