Questions tagged [validationexception]
19 questions
6
votes
1 answer
ValidationException : Supplied AttributeValue is empty, must contain exactly one of the supported datatypes
I am trying to insert a new record in a DynamoDB table named Users. I am getting data from the table. But whenever I try to insert a new record, I get the following error -
AWSiOSSDKv2 [Verbose] AWSURLResponseSerialization.m line:86 |…

0xC0DED00D
- 19,522
- 20
- 117
- 184
4
votes
4 answers
c# HttpRequestValidationException
I have a c# asp.net app running on an Amazon EC2 however I am getting a validation error:
Exception type: HttpRequestValidationException
Exception message: A potentially dangerous Request.RawUrl value was detected from the client…

SSED
- 475
- 3
- 9
- 22
2
votes
1 answer
DynamoDb documentClient.update or delete StringSet throws ValidationException
I successfully update and delete an item from a StringSet in a dynamoDb table when called from my test app running on localhost.
I then upload the app to LightSail but now when I call the same function to update or delete an item it throws a…

Clive Sargeant
- 622
- 11
- 24
2
votes
1 answer
ServiceStack InProcessServiceGateway throws ValidationException
I am trying to implement service gateway pattern according to Service Gateway tutorial to support in-process handing via InProcessServiceGateway and external calling via JsonServiceClient in case ServiceStack service is deployed standalone. I use…

Bruce Jing
- 21
- 3
1
vote
2 answers
How to overwrite custom exception over ValidationException?
I have written some logic and custom validation in Validator initialize method.
But when exception occurs , custom exception was thrown but override by ValidationException
eg. HV000032: Unable to initialize ........
public class CustomValidator…

Jack jdeoel
- 4,554
- 5
- 26
- 52
1
vote
0 answers
PynamoDB TransactWrite update is throwing ValidationException
I have a model that looks like this:
class Task(BaseModel):
Meta = pynamodb_table_meta("my-task")
creator_id = UnicodeAttribute(null=False)
metadata = JSONAttribute(default={}, null=False)
status = UnicodeAttribute(default="new",…

Rupsha Chaudhuri
- 11
- 1
1
vote
1 answer
How to handle validation exceptions in asp.net core webapi
I have an api controller which handles http post request like below
//controller
[Route("api/[controller]")]
[ApiController]
public class SomeController : ControllerBase
{
//constructor here//
[HttpPost]
public async Task…

Amrit
- 13
- 3
1
vote
2 answers
Validation Exception - the right way to handle
I am trying to validate the postal code in my but the approach i am thinking of is not working out and I can't understand why.
I created a Validator, that hast to throw a ValidationException if it's not valid.
@Service
public class…

Diana
- 935
- 10
- 31
1
vote
2 answers
Update item in dynamoDB
I am trying to update items in DynamoDB table. The code that I have written is updating the item but when I add a column with the header "source/target", it is giving a "ValidationException" Exception.
Code used to update -
dynamodb =…

TeeKay
- 1,025
- 2
- 22
- 60
1
vote
1 answer
DynamoDb "Query key condition not supported"
i have a table and have set up a GSI to do a query. the attribute that i am setting the condition for is of type number. i set the attribute value for the comparison like this: AttributeValue value = new AttributeValue();…

Clive Sargeant
- 622
- 11
- 24
1
vote
1 answer
Updating a reference to a FK
I've searched for quite a while trying to figure this out. I am using JPA with EclipseLink (Oracle DB). I have a lookup table full of values. I have another table that has a FK relationship to that table. I can insert data fine, but when I try to…

Larry T
- 11
- 3
1
vote
2 answers
Loading records for secondary index
I am trying to implement user registration and login using DynamoDB. There's three ways a user can login. They can use username, phone Number or Email Id to login.
My DynamoDB table has Phone Number as hash in primary index and thus I am able to…

0xC0DED00D
- 19,522
- 20
- 117
- 184
0
votes
1 answer
Terraform Cloud apply lambda function fails with ValidationException, AWS CLI lambda create-function with same parameters succeeds
When trying to run a Terraform apply in Terraform Cloud which attempts to create an AWS Lambda function resource, the apply fails with a nondescript ValidationException. No other error is returned. There is an issue in terraform-provider-aws…

Draon con Color
- 13
- 3
0
votes
1 answer
"message": "Query key condition not supported", in node js using begins_with()
I am getting the following error while using the following snippet of code. Appreciate your early response.
Error:
"message": "Query key condition not supported",
"code": "ValidationException",
Code Snippet:
var params ={…

Mehdi Hussain
- 1
- 1
0
votes
1 answer
Catching multiple exceptions at the same time and for each, call a get method to retrieve a validation error message
I’m using Slim PHP to try and generate and display multiple validation messages at the same time when a user inputs incorrect or no data into a sign up form on my Angular front-end application.
For example if a user leaves the username and password…

SneakyShrike
- 723
- 1
- 10
- 31