# CodeTooLarge (/docs/errors/chain/CodeTooLarge)

The code blob passed to `instantiate_with_code` or `upload_code` exceeds the maximum code length in the pallet's schedule. Compare the WASM binary size against the schedule's code length limit and shrink the contract.

Declared by the `Contracts` pallet; it classifies to the semantic code [`limit_exceeded`](/docs/errors/limit-exceeded).

## Remediation [#remediation]

A chain-side capacity limit was hit; reduce the size or count of the request

The same explanation is available in the terminal: `btcli explain CodeTooLarge`.
