# Why has my data import failed?

A **data import** in Breww may fail if there are errors in the import file.

If this happens:

1. Go to **Settings** -> **Data imports & updates**, and you will find the failed import under **Recent data imports.**
2. If the import has failed, you will usually see an error message explaining why.
3. If no error message is displayed, check to see if there are 'invalid' rows in the **Recent data imports** section; it will display the rows as 'Valid' or 'Invalid' here. If the rows are valid, but this is still failing without a given reason, please **contact the support team** by raising a support ticket and attaching the original import file. Our team will then investigate and help resolve the issue.

## Failing imports where rows are valid

Once you have submitted your data import, the fields may be 'valid'; however, if there is an error in the data in the file, a notification will appear on-screen indicating that the import has failed.

This notification will provide an overview of the error, helping you identify what needs to be corrected.

![](https://storage.googleapis.com/breww-user-uploads/markdown-external/4f57782b563b6dd299d5dacdad66ae4a61fbcd2928f7cc3b5abf7e85acd0cc99.jpg)

If you scroll further down, you’ll see a message explaining the reason for the failure, and you’ll also be able to download the file.

In the example shown, the rows are marked as **‘valid’**, meaning that all required fields have been filled in. However, the issue here is that the **same batch number has been used against different beers**.

Batch numbers must be unique identifiers that trace back to a specific batch of beer that has been brewed, so it isn’t possible for different beers to share the same batch number.

![](https://storage.googleapis.com/breww-user-uploads/markdown-external/81a3fa51e4ef14e12a434902864afa35f3c5422ec0f590a6502f96ca1618f79c.jpg)

This example would be resolved by ensuring the batch number isn't associated with two different beers. Once corrected, you can reattempt the upload.

![](https://storage.googleapis.com/breww-user-uploads/markdown-external/192f983021a7528b0a0ebd20602a45377f05436c98237a5079aca0f941a3f14b.jpg)

## Invalid rows

Rows may display as **'Invalid'** if there are mistakes in your import file where invalid data has been entered or data has been missed.

For example, when importing **Drink batches in vessel**, a row could be marked as invalid if:

* The **batch number** is missing, or

* The required fields have not been used.

  For instance, if the drink **Floral Haze IPA** is listed in Breww but your import file includes it as **FH IPA**, Breww will not recognise the Drink, and the row will be invalid, and this will fail.

  ![](https://storage.googleapis.com/breww-user-uploads/markdown-external/a5dcec4e9f2dee544bebb48777910fa4795c0b6d89ef52b0a369ed5e63850137.jpg)

## Successful import with invalid rows

If you complete an import and the import file has both valid and invalid rows, it will still display as a successful completion.

For this reason, we recommend always reviewing the **Recent data imports** section to check for any rows that may be invalid.

![](https://storage.googleapis.com/breww-user-uploads/markdown-external/b2c23bb3269159d789273689164f88d4ee3ebf2612520deaca08c098e011156d.jpg)

This will indicate that your import contains both **Valid** and **Invalid** rows.

### Checking which rows were invalid

By selecting the button highlighted below on the **Recent data imports** section, you can **download the invalid rows**, amend them, and re-import the corrected data.

![](https://storage.googleapis.com/breww-user-uploads/markdown-external/d76a8208349ea0f0e34b9776a454e3d66a6579bf6bcc9d2119cca8f1abee1c86.jpg)
