PROBLEM
In some instances, after publishing a CSV file as a hosted feature layer in ArcGIS Online via My Content, the following error message displays in the Item Details page:
Error: Index was outside the bounds of the array.
The error occurs when the final entry of the CSV is blank and there is no carriage return 'R' at the end, usually caused when the CSV ends with a comma. For example:
.../missionbaymarsh/marsh_closing_picture_thumbnail.jpg,
Note: This is a known issue in some versions of Excel on Mac OS, which does not include the carriage return when saving CSV files.
Note: When using a Windows operating system, skip Steps 1 to 3 by opening and saving the CSV in Excel. The carriage return is added when saving the CSV in Excel for Windows.
.../missionbaymarsh/marsh_closing_picture_thumbnail.jpg,R
Get help from ArcGIS experts
Download the Esri Support App