Is This Content Helpful?
We're glad to know this article was helpful.
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:
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.
Follow the steps below to resolve the issue:
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.