40011: Pagination sequence no longer valid

pagination_sequence_no_longer_valid

An enumeration query could not continue because the underlying set of results shifted between pages, so the pagination sequence was no longer valid.

What you should do

Restart the enumeration query from the beginning to obtain a complete result set. This is a transient condition rather than a fault in your request, so restarting from the first page is the correct response. Single-page enumerations that complete in one response are unaffected.

Why it happens

Channel enumeration is paginated, and the set of channels can change between page requests as the cluster's state shifts. When that happens partway through, the pagination cursor can no longer guarantee a complete, consistent result, so the sequence is invalidated rather than returning partial or duplicated data.

What you'll see

The error is reported with code 40011 and HTTP status 400. The message is typically Unable to continue enumeration query; pagination sequence is no longer valid due to cluster shift. Please restart your query.