California Revenue & Taxation Code

Cal. Rev. & Tax. Code § 11572

No suit or proceeding shall be maintained in any court for the recovery of any amount alleged to have been erroneously or illegally assessed or collected unless a claim for refund or credit has been duly filed.

Source: official text