Index was out of the bounds of array: comes when I replace extraction results

@sharon.palawandram ,

Checking it out from our end we do get value when the index and the value is present :
image

When the Values for the field are missing, then we do not have any values to index to.

image

Also, Maybe a check with the below post :

Additionally on handling of missing values :

io_ExtractionResults.ResultsDocument.Fields.FirstOrDefault(Function(i As ResultsDataPoint) i.FieldName = "Field Name" AndAlso Not(i.IsMissing)) is Nothing

image

We can then access the Value after the Above condition is resulted false :

io_ExtractionResults.ResultsDocument.Fields.FirstOrDefault(Function(i As ResultsDataPoint) i.FieldName = "Field Name" AndAlso Not(i.IsMissing)).Values(0).Value

image

2 Likes