Trying to create an index data type