Short answer: The app id in your call does not exist on this network (never created, deleted, or an id from a different network).
Pattern:
transaction <TXID>: only ClearState is supported for an application (<APP_ID>) that does not exist
Captured verbatim from a testnet node on 2026-12-03:
transaction DKOMMG5ZUBZLB7RJHIKW4JQICN6PSUOHNQZ53ZCTZTDXTXQV7PGQ: only ClearState is supported for an application (99999999999) that does not exist
Two captures returned this exact message: a NoOp call and an OptIn call to application 99999999999, which does not exist. The wording is odd (it mentions ClearState) because a ClearState call is the only call allowed against a missing app. In practice it almost always means a wrong app id or a mainnet id used on TestNet.
GET /v2/applications/{id} returns 404 if it does not exist.await algod.getApplicationByID(appId).do(); // throws if the app does not exist on this network
Method: this message was produced on purpose against a live testnet node (https://testnet-api.algonode.cloud) on 2026-12-03. Message wording can change between node versions. All errors: index · errors.json.