Have you tried creating a battle in the battle editor rather than through a custom battle? I have no idea if it would work, but it's another possibility.
.