Hi @TarekEzz,
Okay, you're trying to pick second object in an array that contains one or less using index, that way to do is not safe. Consider using first(skip( outputs('split_array'),1)) to pick the second team if exists. It will either return the object if exists or null. It won't throwing any error.
skip(array, 1) ignore the first object and fist() take only the first one. That'll ensure you'll get the second object in an array that may contain more than 2 objects and will return null if it contains less than 2 objects.
however, you should have a look at you input data, there is no second team in this apply to each loop, Your array has at best 1 element.
______________________________________________________________
If I have answered your question, please Accept the post as solution.
If you like my response, please Thumbs Up.