Skip to content
Discussion options

You must be logged in to vote

Hi @9alecj, this error happens when List-based converter is used on a field that is stored in DynamoDB as StringSet. It's hard to pinpoint an exact location without seeing your code but I can suggest looking at these cases:

  • During migration you've changed HashSet<T> to array-based type such as List<T> or T[], etc. So under the hood the list based converter is used now.
  • You had a custom converter applied to some field that was serializing value as a StringSet. And during migration you didn't apply the converter or migrated converter uses List as an underlying DynamoDB type.
  • Wild guess: you used SdkEnumHashSetConverter on HashSet<TEnum> that was in fact serialized as StringSet.

If nothing…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@9alecj
Comment options

Answer selected by 9alecj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants