Home
About
Search
Welcome to M-Files Empower – our new support experience. We'd love to hear what you think!Give feedback
Home/Support and troubleshooting/Troubleshooting/Error resolution

M-Files Importer Tool Error - Index Must Be Greater Than or Equal to Zero

Last updated on 28 June 2024 · 2 min read

Admin
M-Files Importer

Overview

When using the Importer Tool, the error below is returned:
 

Mapping '1234' (ID 1234):
   Value = [Insert intended Value Here]

Error: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.
   at System.Text.StringBuilder.AppendFormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.FormatHelper(IFormatProvider provider, String format, ParamsArray args)
   at System.String.Format(String format, Object arg0)
   at MFilesImporter.String2PropertyValue.AddNewValueListItem(MetadataCache cache, Int32 valueListID, String newItemName)
   at MFilesImporter.String2PropertyValue.SearchValueListItemsByName(MetadataCache cache, Int32 propDefID, Int32 valueListID, String stringValue, ValueListItemMode mode, Boolean addNew, Boolean mustExist)
   at MFilesImporter.String2PropertyValue.GetVLIsByNameOrInternalID(MetadataCache cache, Int32 propDefID, Int32 valueListID, String[] stringValues, Boolean addNew, Boolean mustExist)
   at MFilesImporter.String2PropertyValue.ValueList(MetadataCache cache, Int32 propDefID, String[] stringValues, ValueListItemMode mode, Boolean addNew, Boolean mustExist)
   at MFilesImporter.String2PropertyValue.GetPropertyValue(MetadataCache cache, String stringValue, Int32 propDefID, Int32 mode, Boolean createNewValueListItems, Boolean mustExist, Char[] separatorCharacters)
   at MFilesImporter.Mapping.CreatePropertyValue(MetadataCache cache, String value, Char[] multiValueSeparatorChars)
   at MFilesImporter.ObjectBase.AddParsedValueToProperties(String parsedValue, Mapping mapping, PropertyValues propValues, PropertyValues duplicateValues, CollectedIDValues collectedIDValues)
   at MFilesImporter.CSV.CSVDataRow.CollectPropertyValuesAndIDs(PropertyValues propValues, PropertyValues duplicateValues, CollectedIDValues collectedIDValues)
   at MFilesImporter.ObjectBase.GetImportPropertyValues()
   at MFilesImporter.ObjectCreator.CreateMFilesObjects(ObjectBase objectBase, PropertyValue transmittalPV)
   at MFilesImporter.ObjectSourceBase.CreateMFilesObjects(String parentDirectory, ObjectVersion transmittalOV)

Solution

When a property is associated in the Importer with a value list item that references an Object Type and the 'Create New' checkbox is enabled, a specific issue arises. To resolve this, uncheck the 'Create New' checkbox. It's essential to note that the Importer cannot generate new instances of object types using this checkbox; it's exclusively meant for single-value value list items.

Still need help?

On this page