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.

Solution

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

mvp_badge
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.

Sir, it is already in list format 

mvp_badge
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>].


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.