Function not in the command autocomplete

I have made a datapack that uses some commands to refill loot boxes.

This worked fine with one data modify command for each chest.

However, when I add more chests, the function becomes unknown to the game.

What did I do wrong?

Continue to help post