Skip to main content
This guide explains common issues like “invalid byte sequence in UTF-8” and errors related to missing quantities when uploading files via SFTP.

Common causes and fixes

1

Check file encoding

If you see an “invalid byte sequence in UTF-8” error, your file may not be saved with the correct encoding. It should be saved as UTF-8.
2

Identify white space

White space is the most common cause of SFTP upload failures and can lead to errors such as “Quantity is missing: order_reference”. This includes extra spaces after information, spaces between commas, or accidental extra lines.
3

Open file in Notepad

To inspect your file for white space, right-click on the import file, select Open with, then choose Notepad. In Notepad, you will see the import laid out in text form with comma-separated values.
4

Remove white space and extra lines

Look for and remove:
  • Spaces after information
  • Spaces between commas
  • Extra lines at the bottom of the file (appearing as a bunch of empty commas)
Removing these will eliminate the white space and should allow the file to upload successfully.
Even though white space might not be visible in a spreadsheet application, it can interfere with how the system processes the file. Always double-check your file in a plain text editor before uploading.

Frequently asked questions

This error usually means the file you are trying to upload is not saved using the correct encoding, which should be UTF-8.
White space refers to invisible characters like spaces or extra lines in your file. It includes spaces after data, between commas, or entirely empty lines at the end of the file.
Always double-check your file in a plain text editor like Notepad before uploading. Pay close attention to any extra spaces and ensure there are no unintended empty lines at the end.