Table buffer for alias "name" contains uncommitted changes (Error 1545)

The named cursor has a modified table buffer, so changes must be explicitly committed using TABLEUPDATE( ) or discarded using TABLEREVERT( ) before either closing the cursor or changing the buffering mode.