[Solved] an Error Occurred While Calling O86.getDynamicFrame. Exception Thrown in AwaitResult:

  • Home /
  • Blog Posts /
  • [Solved] An error occurred while calling o86.getDynamicFrame. Exception thrown in awaitResult:

If you are running a GlueJob in AWS and get the following error:

An error occurred while calling o86.getDynamicFrame. Exception thrown in awaitResult:

Then you need to view the CloudWatch logs to help you pinpoint where the problem is occuring.

How to solve the Exception thrown in awaitResult

It’s highly likely that the issue is in an expired IAM Role.

When a Role is created in IAM, the default maximum session duration is set to 1 hour.

If your GlueJob completes before this time, then you won’t see the above error.

So you can resolve this by setting your Role‘s maximum session duration to a larger number.

Click Edit in the Role’s specific console page and select a higher duration time.

The maximum value possible is 12 hours unless you set a custom duration.