Back

Importing the Bill of Quantities into a Cost Sheet from an Excel or CSV File

The Import button lets you fill the BoQ of a cost sheet from an XLSX or CSV file instead of entering items one line at a time. The system maps the file columns to the BoQ fields automatically, reads the hierarchy from the Number column (1, then 1.1, then 1.1.1), reviews the rows, and applies only the valid rows. Imported items are not stored until you save the cost sheet.

Required permissionsThe button appears for users who can add or edit cost sheets (Add Cost Sheets, Edit & Delete All Cost Sheets or Edit & Delete His Own (Created) Cost Sheets), and the Construction app must be active. There is no separate permission for import.
Where to find itConstruction → Cost Sheets → Create Cost Sheet or edit an existing cost sheet → BoQ → Import

Before you start

  • Activate the Construction app, and make sure you have permission to add or edit cost sheets.
  • The cost sheet must not be linked to a contract; import is not available for contracted cost sheets.
  • Define in the system beforehand the work items, materials, services, units and taxes that the file refers to.
  • Download the template file from the Import menu and fill it in; it contains all the cost sheet columns.

Accepted file and template file

  • Formats: XLSX or CSV.
  • Maximum size: 50 MB.
  • The system reads only the first worksheet of an Excel file.
  • When you click Import, a menu opens with Upload File and Download Template (file: Cost Sheet BoQ Import Sample).
  • Template file columns: Number, Level, Item, Quantity, Unit, Cons./Unit, Unit Cost, Cost, Profit %, Sale Rate, Total Profit, Subtotal, Tax 1, Tax 2, Total.

Import steps

  1. Open the create or edit form of the cost sheet, and click Import in the header of the BoQ.
  2. Choose Upload File, then select an XLSX or CSV file no larger than 50 MB, and click Continue.
  3. Review the column mapping screen: the system maps the columns automatically and shows, for each field, the levels it applies to and the first value found for it in the file.
  4. Map any fields that were not matched automatically, then click Apply Mapping.
  5. If some rows have errors, the “Rows with Errors (n)” step appears: click Skip & Continue to import only the valid rows, or Upload another file after you fix the file.
  6. If some rows have a number that already exists in the BoQ, the Conflict Handling step appears: choose Replace, Add or Ignore, then click Import.
  7. After the rows are applied, a success message appears asking you to save the cost sheet. Save it to keep the imported items.
🛈

Note: Warning: if you close the form without saving the cost sheet, the imported items are not saved.

Fields read from the file

  • Number, Level and Item are required in every row.
  • The calculated fields (Cost, Total Profit, Subtotal, Total) are recalculated by the system and are not read from the file, even if they are in it.
Field Required Applies To Effect
Number Yes All levels Sets the hierarchy (1, 1.1, 1.1.1) and must be unique within the file
Level Yes All levels Sets the row type; accepted in Arabic or English
Item Yes All levels The title of the main tender or sub-tender, or the name or code of the work item or item
Quantity Depends on level Work items and items The quantity of a work item must be at least 1
Unit Depends on level Work items and items Must be in the item’s unit template
Consumption per Unit No Items Replaces the quantity if no quantity is entered for the item
Unit Cost No Items Read for items only; the cost of a work item is calculated from its items
Profit % No Work items Used to calculate the sale rate and the total profit
Sale Rate No Work items Read for work items
Tax 1 and Tax 2 No Work items Must be an existing, active tax, and Tax 2 must not be the same as Tax 1

Accepted levels

  • Main Tender: must be the first row (depth 0).
  • Sub-Tender L1 to L3: sub-tenders can be nested up to 3 levels, and the level must match the depth of the number.
  • Work Item: an item that has a quantity and a cost. It must already exist in the system.
  • Item: a material or service inside a work item.
  • A single main tender or sub-tender cannot contain both sub-tenders and work items.
  • Enter the work item or item in the Item column by name or in the format “Name #Code”; use the code if the name is repeated.

Conflict Handling step

  • This step appears when the file has numbers that already exist in the BoQ. You choose once what applies to all conflicts.
  • The default option is Replace.
Option What happens
Replace (default) The existing rows are replaced with the rows from the file
Add The existing rows are kept and the rows from the file are added as new rows. The system numbers them after the existing rows
Ignore The existing rows are kept and the conflicting rows are skipped. The rest of the file is imported

What happens after import

  • Rows that pass validation are applied; the whole import is not canceled because some rows fail.
  • When a row is rejected, the rows under it are skipped.
  • Every parent row must be in the same file; imported rows are not linked under items that already exist in the cost sheet.
  • The system recalculates Cost, Total Profit, Subtotal and Total.
  • The changes are kept only when you save the cost sheet.

Limitations, and why the button is missing or does not work

Case Cause Fix
The Import button is grayed out The cost sheet is linked to a contract. When you hover over the button you see: “Import is not available for contracted cost sheets.” You cannot import into a contracted cost sheet
The button does not appear You do not have permission to add or edit cost sheets, or the Construction app is not active Ask your administrator for the permission and activate the app
The whole import fails The first row is not a Main Tender Make the first row a main tender (Number 1)
The file is rejected The format is not XLSX or CSV, or the file is larger than 50 MB Save the file in a supported format and reduce its size

Error messages and fixes

Message Cause Fix
The file must start with a Main Tender row (e.g. Number 1). Row … is “…”. (in a “Failed” window) The first row in the file is not a main tender. This error stops the import and cannot be skipped. Make the first row a Main Tender and upload the file again.
Item "…" does not exist in the system. The work item or item is not defined in the system. Add it in the system, or correct its name or code in the file.
Level must be one of: … The value in the Level column is not accepted. Use one of the accepted level values, in Arabic or English.
Parent number … does not exist in the file. The parent row is not in the file. Add the parent row or correct the number.
Item name is required. The Item column is empty. Enter the item title.
Number must use dot notation (e.g. 1.1.1). / Number must be unique within the import file. The number is in the wrong format, or it is repeated in the file. Correct the Number column.
Item "…" is not a work item. / Item "…" is not a material or service. The type of the item in the system does not fit the level. Choose an item of the right type, or correct the Level column.
More than one item is named "…". Use the item code instead. The name matches more than one item. Enter “Name #Code” or the code.
Unit is required. / Unit "…" does not exist in the system. The Unit column is empty, or the unit is not in the item’s unit template. Enter a unit from the item’s unit template.
Quantity is required. / Quantity must be at least 1. / Quantity or Cons./Unit is required. The quantity is empty or less than 1, or there is neither a quantity nor a consumption per unit. Enter the quantity or the consumption per unit.
Tax "…" does not exist in the system. / Tax 2 must be different from Tax 1. The tax is not defined or not active, or the two taxes are the same. Enter the name of an active tax, and do not repeat the same tax.
Unsupported file format. Please upload an XLSX or CSV file. The file is not XLSX or CSV. Save the file in a supported format.
File size exceeds the maximum allowed limit of 50 MB. The file is larger than 50 MB. Split the file, or delete the columns that are not needed.
The file could not be read. Please upload a valid XLSX or CSV file. The file is damaged or cannot be opened. Open it in Excel and save it again.
The file does not contain any BoQ rows. The file is empty or has only the header row. Add the item rows under the header row.
Column "…" was not found in the file. / Column "…" appears more than once in the file. The mapped column is not in the file, or its header is repeated. Correct the column headers in the first row.
🛈

Note: If the cost sheet is linked to a contract, you cannot import into it; create a new cost sheet if needed.

FAQ

Can I import into an existing cost sheet?

Yes, from the edit form, as long as the cost sheet is not linked to a contract. When numbers are repeated, the Conflict Handling step appears so you can choose Replace, Add or Ignore.

What if some rows fail?

The whole import is not canceled. In the error review step, click Skip & Continue to import the valid rows, or Upload another file. Rows under a rejected row are not imported.

Why is the Import button grayed out?

Because the cost sheet is linked to a contract. When you hover over the button you see: “Import is not available for contracted cost sheets.”

Which formats and sizes are accepted?

XLSX or CSV, up to 50 MB. Only the first worksheet is read.

Are imported items saved right away?

No. You must save the cost sheet to keep them.

Does the system read the cost and total from the file?

No. Cost, Total Profit, Subtotal and Total are recalculated. Unit Cost and Consumption per Unit are read for items, and Profit %, Sale Rate and taxes are read for work items.

Do I need a special permission to import?

No. The button follows the add and edit permissions for cost sheets.