0

I am using dynamoose to scan a table. However one key (or more) seems to be corrupted. The scan fails with this error: Expected _modifiedAt to be of type number, instead found type object The Schema is expecting a Number but somewhere in the table there is a doc where the key is an object.

How do I find this? We have thousands of keys, so I guess a simple search won't cut it.

Thanks

Ben Bieler
  • 1,518
  • 1
  • 14
  • 22

1 Answers1

0

So, since I need to do this because of a schema migration, I decided to simply export all data as CSV (This tool is only needed if you have over 100 keys, before that you can export directly within dynamoDB). And then write a custom migration script which handles all the error handling etc.

Hope this might help someone ;)

Ben Bieler
  • 1,518
  • 1
  • 14
  • 22