For Each Loop Issue

LogBlueprintUserMessages: [LevelGenerator_2] 0
LogBlueprintUserMessages: [LevelGenerator_2] ConnectorPiece_2_C_0.Capsule3
LogBlueprintUserMessages: [LevelGenerator_2] X=0.000 Y=10.000 Z=0.000
LogBlueprintUserMessages: [LevelGenerator_2] 1
LogScript: Warning: Script Msg: Attempted to access random index from empty array!
LogBlueprintUserMessages: [LevelGenerator_2]
LogScript: Warning: Script Msg: Attempted to access random index from empty array!
LogBlueprintUserMessages: [LevelGenerator_2] 2
LogBlueprintUserMessages: [LevelGenerator_2] ConnectorPiece_2_C_1.Capsule
LogBlueprintUserMessages: [LevelGenerator_2] X=420.000 Y=0.000 Z=0.000

The error occurs when a placement of an actor is failed. I do not know what is causing this issue. Here are the random parts which I have tested and the names are printed out correctly even if the error occurs for that iteration. As can be seen above
(loop count,
random element name,
final vector location)

I did check the first random too, that takes a random elemnt from the predefined array.

I do not know how to paste the whole Blueprint here and I couldn’t find amethod so here is a few sections.

EDIT: Oh I understand what you mean now. It returned a -1 yeah. I removed the other debugs again, so here it is:

LogBlueprintUserMessages: [LevelGenerator_2] 0
LogScript: Warning: Script Msg: Attempted to access random index from empty array!
LogBlueprintUserMessages: [LevelGenerator_2] -1
LogScript: Warning: Script Msg: Attempted to access random index from empty array!
LogBlueprintUserMessages: [LevelGenerator_2] 1
LogBlueprintUserMessages: [LevelGenerator_2] 1
LogBlueprintUserMessages: [LevelGenerator_2] X=-210.000 Y=200.000 Z=0.000
LogBlueprintUserMessages: [LevelGenerator_2] 2
LogScript: Warning: Script Msg: Attempted to access random index from empty array!
LogBlueprintUserMessages: [LevelGenerator_2] -1
LogScript: Warning: Script Msg: Attempted to access random index from empty array!