Replies: 2 comments 6 replies
-
Hi @sb000003, sorry you're encountering an error. Your data class definitions look fine to me...I can't see anything that I would expect to cause problems. Can you provide any repro code to help debug? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yes I'm calling the get method built in this class
And calling it from this class
Could it be something to do with the GSI on fixtures table? It doesn't seem to mind when i run a queryPaginated for one item. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
as title suggests, I'm currently getting an error that may be related to this but I'm not sure of the cause.
The error is "The provided starting key is invalid: The provided key element does not match the schema". The error only seems to happen on
scanPaginated
.My data class is as follows:
@DynamoDbItem data class Fixture( @DynamoDbPartitionKey var id: String, var club1: String? = null, var club1score: String? = null, var club2: String? = null, var club2score: String? = null, var competition: String? = null, var dateTime: String? = null, var finalScore: String? = null, var goals: List<Goal>? = null, var gW: String? = null, var isFuture: Boolean? = false, var isLive: Boolean? = false, @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) var providerId: String? = null, var season: String? = null, var winner: String? = null, )
And Goal is:
@DynamoDbItem data class Goal ( @DynamoDbPartitionKey val id: String, val playerName: String, val teamId: String, val clockTime: String? )
This works when using a
queryPaginated
query but not when doing ascanPaginated
and i receive the error above.I have checked I've got the data class properties the exact same name and types as the attribute names in my table.
I have one secondary index on my table, do i need to reflect this in my data class somehow?
Beta Was this translation helpful? Give feedback.
All reactions