Expression error when using a having('key').between(1, 10)
See original GitHub issueI using the library and working good. In this point I found this error. I resolved this error using the native aws-sdk and works well.
##Error
{
"message": "Value provided in ExpressionAttributeValues unused in expressions: keys: {:create_at_2_v1, :create_at_1_v1}",
"code": "ValidationException",
"time": "2016-11-23T18:06:22.315Z",
"requestId": "CVAO4IP0SKPNVCULVHTTS7DC8RVV4KQNSO5AEMVJF66Q9ASUAAJG",
"statusCode": 400,
"retryable": false,
"retryDelay": 0
}
##Example
//...
function (init, end) {
const def = new Defer();
const initDate = new Date(init);
const endDate = new Date(end);
console.log(+initDate, +endDate); // log for test
dynamodb
.table('table')
.having('key1').null()
.having('create_at').between(+initDate, +endDate)
.scan(function(err, data) {
if (err) return def.reject(err);
def.resolve(data);
});
return def.promise;
}
//...
Issue Analytics
- State:
- Created 7 years ago
- Comments:10 (6 by maintainers)
Top Results From Across the Web
Expression Error.: The key didn't match any rows in the table
For me this error was caused by bad login credentials. I cannot get past this error. It is when trying to update a...
Read more >Expression.Error: The key did not match any rows in the table
Solved: I have a data set that has refreshed successfully in the past. It was built 3 days ago and refreshed fine for...
Read more >Understanding The “The key didn't match any rows in the table ...
One of the most common errors you'll see when working with Power Query in Power BI or Excel is this: Expression.Error: The key...
Read more >SQLSTATE values and common error codes - IBM
SQLSTATE values are comprised of a two-character class code value, ... 10, XQuery Error, Table 12 ... 01540, A limit key has been...
Read more >Scheme - Expressions
Primitive expression types include variables and procedure calls. ... it is an error to alter a constant (i.e. the value of a literal...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I see the problem, I’ll try to reproduce
released version 0.1.60,
with minimum changes this fixed my local replication of your described issue.
I still can not recommend using
there are no tests to confirm that is ready for this change.
I’m closing the issue for now, please re-open it if you still see the issue.
Thanks
</adrian>