Does your tool apply the unique identifiers to the donuts?
Because when you create a Donut from scratch in PKHeX, it doesn't and without that it won't show up in your bag. If you choose a random string, it changes the sprites to potions, for a lot of stuff in your bag. It can happen when...