Greetings @Ahnenreich,
You might have encountered a pokemon with Unnerve ability for example, which prevent the opponent to consume berries!
I talked with Testers, who assured me that all restorative berries are coded though, and also Gluttony!
The only thing you could do, if you want, is trying again to be sure, because you don't have all the details.
I hope that answers your questions!
Kind regards
RockyRaccoon