An error occurred while calling o243.pyWriteDynamicFrame. DAY_OF_MONTH

0

Hi, we have a problem with this error.. in one job of Glue with one table. In the job be just read the RDS MySQL information of table and write in S3 bucket, we didn't make any changes and the job run successfully, but recently the job failed with this error: "An error occurred while calling o243.pyWriteDynamicFrame. DAY_OF_MONTH". We check the logs and we just see the table of this problem, We suppose than it is about of some bad format of one of the dates columns.. but we consulting some dates directly on the database and to identify the invalid value on a date column.. but we don't see anything yet

¿Any suggestion about the problem?

  • More likely that's a partition column and you have an empty value on it. Check the stack trace for hints/causes

Mayra
asked 3 months ago89 views
1 Answer
0

Hello,

It seems data related issue only. I would suggest before writing the data verify if you are getting correct data without null values and valid format. You can update your script and add following lines to verify the data.

  1. Comment your write method in code
  2. Use printSchema and show() method to verify the data before write method might be possible some transformation in between creating the issue(like null and incompatible)

dyf.printSchema()

dyf.toDF().show(5)

Also i would suggest to check the complete logs specially caused by to understand the exeact reason. Also using above method you will be able to find if there is any issue with data.

AWS
answered 2 months ago
profile picture
EXPERT
reviewed a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions