The file is not read as a certificate

Batch checks says Not read, or the report says the file isn’t a laboratory certificate the app can read. What causes it and what to check in the file.

Batch checks lists the file as Not read, and the report under it gives one of these messages.

“isn’t a laboratory certificate the app can read. It reads SIF certificates, comma-separated or fixed width, and OnLIMS report exports.”

Cause: the app looks for the certificate number on the first line and the header rows under it, such as CLIENT and # of SAMPLES, or for REPORT No. at the top of an OnLIMS export. It did not find either layout. The message ends with how the file starts.

What to check:

  1. Open the file in a text editor, not Excel. The first line should be the certificate number, with Finalized or Preliminary beside it. If the file starts with column headings, it is an export, not a certificate. Ask the lab for the SIF file.
  2. If the file was opened and saved in Excel, ask the lab for the original. Excel changes dates and quotes.
  3. If it is a PDF or an Excel workbook, the app cannot read it. The lab’s SIF export is the file to use.

“is separated by commas, but no row is named UNITS, DESCRIPTION or DETECTION”

Cause: the file is comma-separated, but no row names each column’s unit or detection limit. Without one the app can’t tell which rows name the results, so it stops instead of guessing.

What to check:

  1. Open the file in a text editor. If it starts with REPORT No., it is an OnLIMS report export: choose OnLIMS report export (CSV) under Format.
  2. If it starts with column headings, it is a table export, not a certificate. Ask the laboratory for the SIF certificate or the OnLIMS report export.

“doesn’t look like an … That layout has …”

Cause: a format is chosen under Format, and the file doesn’t match it. The message says what that layout looks like, how the file starts, and which layout it looks like instead.

What to check: choose the format the message names, or Find it from the file. If the laboratory changed its export, ask it which layout it now sends.

“writes some results with a decimal point and some with a decimal comma”

Cause: in an OnLIMS export, some results read 1.25 and others 1,25. A laboratory’s regional settings set the decimal separator. With both in one file the app can’t be sure what each result means.

What to check: ask the laboratory to export the report again. A file with only decimal commas is read, and the report notes it.

A result such as 10,000 next to results with a decimal point is read as 10000, and the report notes the thousands separator. A result such as 1,250,000 can only have thousands separators, so next to decimal commas the file is stopped with “some with a thousands separator and some with a decimal comma”.

“writes results such as 1,250, and no result shows which decimal separator it uses”

Cause: in an OnLIMS export, a comma comes before exactly three digits, as in 1,250, and no other result has a decimal point or a decimal comma. The comma could mean 1.25 or 1250, a thousand times apart, so the app doesn’t guess.

What to check: ask the laboratory to export the report again without thousands separators.

“is empty or too short to be a laboratory certificate.”

Cause: the file has fewer than three lines. It is empty, or it was cut short on the way.

What to check: the file’s size. Download it from the lab again.

“has no method and element rows above its results.”

Cause: the app found the header rows but not the blank line that ends them, or the method and element rows under it.

What to check: open the file in a text editor. After the header rows there should be a blank line, then rows with each column’s method, element, unit and detection limit. A certificate without them cannot be checked, because the app would not know what each column holds.

“has no result columns, because its element row is empty.”

Cause: the element row is there but holds nothing.

What to check: ask the lab for the certificate again. If every certificate from this lab reads this way, send one to us from the Feedback tab and we add the layout.

If the file is inside a zip

A zip is read file by file. One that is not a certificate is listed as Not read and the rest are checked.