Skip to main content
Use this page to look up an error shown on a file import. For import setup and file requirements, see Setting Up a File Import.

File Errors

If an event data upload from Amazon S3 fails with a timeout error, see Why Are Event Data Uploads From S3 Failing Due to a Timeout Error? File import status showing the file not found at the location error

Fix UTF-8 Encoding Errors

Import error asking to save the file as UTF-8 and re-upload Import error showing that the utf-8 codec can't decode a byte UTF-8 is a character encoding standard that can represent almost any character in any language. MoEngage requires data files in UTF-8 so that all user properties are processed and stored correctly, regardless of language or special characters. Files saved in other encodings, such as ASCII or ISO-8859-1, support a smaller set of characters. Using the wrong encoding can corrupt data, so that characters appear as strange symbols (for example, “é”).

Check the File’s Encoding

  • Identify the current encoding: Open the file in a text editor such as Visual Studio Code or Notepad++. The current encoding usually appears in the status bar at the bottom-right corner of the window.
  • Find characters that aren’t valid UTF-8: Open the file in a text editor set to UTF-8. Invalid characters often appear as a black diamond with a question mark or other garbled symbols. You can also paste the file contents into an online ASCII or UTF-8 checker, which highlights the characters that aren’t compliant.

Save the File With UTF-8 Encoding

Save as CSV UTF-8 (newer Microsoft Excel versions)
  1. Open your file in Microsoft Excel.
  2. Go to File > Save As.
  3. In the Save as type list, select CSV UTF-8 (Comma delimited) (*.csv).
  4. Click Save.
Use the Text Import Wizard (older Microsoft Excel versions)If your version of Microsoft Excel doesn’t have the CSV UTF-8 option:
  1. Open a new, blank workbook in Microsoft Excel.
  2. On the Data tab, click From Text/CSV.
  3. Select your CSV file and click Import.
  4. In the preview, select a File Origin encoding that makes your text appear correctly (for example, 1252: Western European (Windows)).
  5. Click Load to import the data into the blank sheet.
  6. Go to File > Save As.
  7. In the Tools list next to the Save button, select Web Options.
  8. On the Encoding tab, under Save this document as, select Unicode (UTF-8).
  9. Click OK, and then click Save.

Supported and Unsupported Characters

With a correctly encoded UTF-8 file, MoEngage supports:
  • Standard alphanumeric characters: a-z, A-Z, 0-9.
  • Common symbols: @, ., _, -, +, !, and others typically found in names, emails, and addresses.
  • International characters and accents: ñ, é, ü, ç.
  • Symbols and emojis: for example, currency symbols such as € and ₹, and emoji characters.
The following can cause import errors even when the file is UTF-8 encoded:
  • Complex attribute types: You can’t import complex data such as JSON objects, dictionaries, or lists directly into a single CSV field.
  • Incorrect newline characters: The only supported newline character is \n (Line Feed). Files created on Windows sometimes use \r\n (Carriage Return + Line Feed), which can cause parsing issues. Saving the file through Google Sheets or a text editor often fixes this.
  • Hidden control characters: Non-printable characters, such as null characters, can corrupt the file and cause the import to fail. These are often introduced when you export data from certain systems.
  • Very small files: A file with fewer than five rows of data may cause an error. If this happens, add dummy rows to meet the minimum.