Bugfix: Return error on PutRecord