362
Views
4
Comments
Solved
Index was outside the bounds of the array
Application Type
Traditional Web

Report_Data is  type of structure. And .TD_Target is it's attribute

What does below error mean?

Could not assign '' to 'Report_Data.TD_Target'... Index was outside the bounds of the array.

UserImage.jpg
Tanaya Nimonkar
Solution

I got this resolved. The values returned  by query and values of structure did not match

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

Could you share the structure definition? Most likely it is used as a data type for a list. And lists are indexed zero-based.

Regards,

Daniel.

UserImage.jpg
Tanaya Nimonkar

Sir, it is already in list format 

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi,

You can assign values to a list entry either by using a foreach and then assign a value to current values of the list the or you need to index the left side of your assignment using [<indexvalue>].


UserImage.jpg
Tanaya Nimonkar
Solution

I got this resolved. The values returned  by query and values of structure did not match

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.