The Array Element output from the For Each Loop node does not provide the values of all the elements present in my scene.

What happens when you take the Out Actors output pin of the Get All Actors of Class node, and instead of plugging it into your array, you plug it into the Array input pin of the For Each Loop node?