← Back to Wye
Theme: System
Wye Help

Import materials from a CSV file

For Owner, Admin · On the web

Use this to add many materials at once, or to update the costs and labor hours of materials you already have. The steps that every import shares are in Import from a CSV file.

To import, follow the steps in that article and set The file holds to Materials.

The columns

Column Needed for a new material What goes in it
partNumber Required The part number, up to 50 characters. It is the match key. Example: PVC-34-EL.
model Required Manufacturer model number, up to 100 characters. Example: PVC34EL.
name Required The material's name, up to 200 characters. Example: 3/4 in PVC 90 degree elbow.
unitCost Required Dollars as a plain number, such as 1.85. 0 to 10,000,000, up to 4 decimal places.
category Optional The name of a materials category that already exists.
laborHours Optional Install hours per unit, 0 to 100,000, up to 4 decimal places. A new material without one has 0.
active Optional yes or no (also true/false or 1/0). A new material without one is active. no retires a material.

How a row is matched

partNumber is the key. A row whose part number matches a material, ignoring letter case, updates it. Any other row adds a material. A material that isn't in the file is left alone, and nothing is ever deleted.

An empty cell on a new material uses the default above (an empty required cell refuses the row); on an update it keeps what is stored.

Categories

Unlike catalog items, a materials import never creates a category. The name in category must match, ignoring letter case, a category that already exists and is set up to hold materials. Add the category in the catalog first.

Common errors

  • partNumber: Required: it's the key that matches a material.
  • partNumber: PVC-34-EL is on 2 rows of the file. Keep one. All rows with that part number are refused.
  • partNumber: matches 2 materials. Give each material its own part number in the catalog first.
  • model, name, unitCost: Required for a new material.
  • unitCost (or laborHours): $1.85 isn't a plain number. Use digits and a point, with no thousands separators, currency or percent signs.
  • category: Fittngs isn't a category. Add it in the catalog first, as a materials category. The name doesn't exist.
  • category: Air conditioners isn't a materials category. Choose one that holds materials. The category exists but holds items.
  • No column: This row has more cells than the header row.

A refused row doesn't stop the others. See Fix refused rows and finish an import for the error file.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.