Runtime Error - Select list item And Dynamic components

I think Here problem with

var global lasthori2id

var global lastnameid

Make it so simple to understand btwer by the platform. It seems too hard to diggest the error. But overall the dynamic component finds no data so it failed to create components. Make aure what are you geeting in responsecontent.

The first block itself might have throws this error.

First understand struture of your data then accordingly try to build up dynaCom.

As the error say, you are “selecting an element on an empty list”.

Also the green boxed expression doesn’t seem correct to me.

I mean you are using the “item” variable as an index, while it is already one of the elements of the list ( the first, the second… ), so ( I thing ) you should replace it with the “get item” block

Shate us the sample of your response content

How I get data from this structure

<<<< I changed my structure