sails-dynamodb icon indicating copy to clipboard operation
sails-dynamodb copied to clipboard

Getting ResourceNotFoundException when using Local Secondary Index

Open kidsil opened this issue 7 years ago • 1 comments

I'm trying to use Local Secondary Indexes by adding: index: 'secondary'

To one of my fields (type 'integer'), unfortunately I'm getting the following error:

Error creating tables: { [ResourceNotFoundException: Requested resource not found: Table: test_table not found]

Without the index, the table is created, with it - the aforementioned error appears.

kidsil avatar Jun 09 '17 14:06 kidsil

I recommend creating all your tables beforehand and not relying on the library to create your tables for you.

ferrants avatar Jun 09 '17 15:06 ferrants