Overview
The following error may occur when trying to use a CSV file that is generated by the M-Files Importer.
User interface background worker exception. Failed to process the data file.: Index was out of range. Must be non-negative and less than the size of the collection Parameter name: index
The issue in this case is because there was a double quotes often seen when using inches (") in the name of one of the imported items such as:
Widget A 12" mockup
The double quotes were not properly escaped in the CSV.
Solution
The easiest solution here is to open the CSV with Excel and then save the document as a CSV file from the Save As menu back on top of the original. This should properly escape all unescaped special characters and the CSV should work.
