# RandomSubjectTooLong (/docs/errors/chain/RandomSubjectTooLong)

The subject buffer given to the deprecated `seal_random` API exceeds the schedule's `subject_len` limit. Shorten the randomness subject the contract passes or check the schedule's limits section.

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 RandomSubjectTooLong`.
