What does Windows error code 771 (ERROR_CANTSCROLLBACKWARDS) mean?

 
Previous Next
ERROR_CANTFETCHBACKWARDS ERROR_ROWSNOTRELEASED

ERROR_CANTSCROLLBACKWARDS

the data provider cannot reposition its cursor to an earlier location.

ERROR_CANTSCROLLBACKWARDS identifies this condition: This status concerns cursor movement rather than the act of fetching rows. The provider cannot scroll to a prior position under the current rowset configuration.

Where the result appears

  • database rowsets with forward-only cursors.
  • stream readers exposed through cursor APIs.
  • applications implementing Back or Previous navigation.
  • bookmark operations on providers without backward scrolling.

What to collect

  • cursor type and supported properties.
  • current and requested positions.
  • bookmark validity.
  • transaction or result-set changes since the position was recorded.

Handling and recovery

Disable backward navigation for forward-only sources or recreate the rowset with scroll support. Keyset pagination is often safer than numeric offsets when rows can be inserted or deleted concurrently.

Common misinterpretation

Fetching cached prior rows in the application is different from asking the provider to scroll. The former can work even when this provider capability is absent.

References


Looking for a different code? Search another status or error code.