Palm Beach County cannot require its municipalities to help fund its Office of Inspector General, an appellate court ruled Wednesday in a reversal of the trial court’s decision.

The county’s requirement that all 38 municipalities pay for the voter-mandated program violated their sovereign immunity, a doctrine that protects governmental entities from being sued without their consent, the Fourth District Court of Appeal found.