Stateside, we had unlawful orders called out and disobeyed quite a few times. Most of them were from sheer ignorance, a few from civilian involvement, and a few that were outright arrogance and pettiness.
We had one where the illegal order recipient was exonerated in a court martial and an O-6 that repeated the original unlawful order from the Lt. Col got caught up further in the aftermath didn't make general. (Not surprisingly, the Lt. Col didn't make O-6). It wasn't just that these clowns gave an unlawful order, it was that one quick consultation with the JAG (it wasn't time sensitive) would have confirmed that the even the "butter bar" lieutenants who warned them beforehand were right.