Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I deal with `No enum constant` error in AWS Glue

Tags:

I am creating a JOB in AWS Glue but it shows below error in the last step.

{"service":"AWSGlue","statusCode":400,"errorCode":"InvalidInputException","requestId":"ad9ee511-adb8-11e9-9bbf-9d08424a9846","errorMessage":"No enum constant com.amazonaws.services.glue.FileFormat.UNKNOWN","type":"AwsServiceError"}

The column mapping is shown correctly as below screenshot.

enter image description here

what I don't understand is which input field has an invalid data? Glue doesn't give me more detailed information about this error. How can I debug this issue?

like image 338
Joey Yi Zhao Avatar asked Jul 24 '19 02:07

Joey Yi Zhao


1 Answers

I faced the same issue, because accidentally I tried to write the data to my DynamoDB table (as my Target). When I changed to S3. It worked. You can learn more about it on AWS Documentation Here is the issue raised in amazon related to this.

like image 156
shubham singh Avatar answered Oct 13 '22 01:10

shubham singh