# Quicksight: error has been thrown from the AWS Athena client. Insufficient Lake Formation permissions

**URL:** <https://community.amazonquick.com/t/quicksight-error-has-been-thrown-from-the-aws-athena-client-insufficient-lake-formation-permissions/30557>\
**Category:** Q&A\
**Tags:** error, developer, quick-sight\
**Created:** [May 28, 2024, 7:35am UTC](https://community.amazonquick.com/t/quicksight-error-has-been-thrown-from-the-aws-athena-client-insufficient-lake-formation-permissions/30557 "2024-05-28T07:35:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rinku\_Chavan](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@Rinku\_Chavan](https://community.amazonquick.com/u/Rinku_Chavan)\
**Post date:** [May 28, 2024, 7:35am UTC](https://community.amazonquick.com/t/quicksight-error-has-been-thrown-from-the-aws-athena-client-insufficient-lake-formation-permissions/30557/1 "2024-05-28T07:35:36Z")

</div>

Quicksight is configured with a IAM role, which `Quicksight` assumes every time it refreshes Quicksight datasets. Those datasets are connected to an Athena Data Source.

 ![image (2)](https://d1wl4jav5dp96l.cloudfront.net/original/3X/0/e/0ea088a6bf16225434c04b4266c889a77d498b0a.png)

Before applying `LakeFormation` permissions all has been working as expected. The Quicksight role has then been granted all necessary permissions in Lake Formation.

---

<div class="post-metadata">

**Author:** ![WLS-D](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/wls-d/32/36109_2.png) [@WLS-D](https://community.amazonquick.com/u/WLS-D)\
**Post date:** [May 28, 2024, 7:14pm UTC](https://community.amazonquick.com/t/quicksight-error-has-been-thrown-from-the-aws-athena-client-insufficient-lake-formation-permissions/30557/2 "2024-05-28T19:14:55Z")

</div>

Hi @Rinku_Chavan,  
When we ran into something similar, we found this issue:

> <https://github.com/aws-solutions/aws-devops-monitoring-dashboard/issues/12>
>
> I deployed the solution on AWS Cloudformation, which turned out to be not as smo…oth as it seemed to be. Issues:
> 
> \- Creation of CodeBuildEventsCodeBuildKinesisFirehose and CodeCommitKinesisFirehoseToS3KinesisFirehose:
>  
> Since Datalake automatically adds a layer of protection on its databases and tables, one must be attentive to when the role is created to go to the Datalake console and grant it the access needed to the database created. Otherwise, on this step it will throw error: \`"Access was denied when calling Glue. Please ensure that the role specified in the data format conversion configuration has the necessary permissions. Insufficient Lake Formation permission(s) on aws\_codebuild\_metrics\_table\`. Additionally, the template creates so many roles that it's hard to be sure regarding which role should be assigned the permissions. 
> 
> \- The solution doesn't create the tables from which the dashboards feed themselves. 
> Yeap. Once the stack was successfully deployed, the dashboards throw error:
> 
> \`awsdatacatalog.aws\_devops\_metrics\_db\_so0143.code\_deployment\_detail\_view does not exist\`
> 
> Which makes sense, since when I go to the tables in databases, it shows the following two, missing aws\_devops\_metrics\_db\_so0143.code\_deployment\_detail\_view ws\_devops\_metrics\_db\_so0143.code\_build\_detail\_view. 
> 
> !\[image\](https://user-images.githubusercontent.com/70332427/147975942-e35618af-4c7f-413d-842f-c7c685734db8.png)
> 
> 
> \*\*To Reproduce\*\*
> Deploy your stack using the cloudformation template linked 
> 
> \*\*Expected behavior\*\*
> Tables should be created properly so dashboards can be fed.
> 
> \*\*Please complete the following information about the solution:\*\*

![unnamed](https://d1wl4jav5dp96l.cloudfront.net/original/3X/9/f/9f2a6c5232635a59d7c0c0e5d6dc68ae3c54a352.png)

Are the 2 checkboxes (shown above) checked off?

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [June 1, 2024, 1:35am UTC](https://community.amazonquick.com/t/quicksight-error-has-been-thrown-from-the-aws-athena-client-insufficient-lake-formation-permissions/30557/3 "2024-06-01T01:35:30Z")

</div>

Did this solution work for you? I am marking this reply as, “Solution,” but let us know if this is not resolved. Thanks for posting your questions on the Quick Sight Community!

---

<div class="post-metadata">

**Author:** ![Rinku\_Chavan](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@Rinku\_Chavan](https://community.amazonquick.com/u/Rinku_Chavan)\
**Post date:** [June 10, 2024, 9:09am UTC](https://community.amazonquick.com/t/quicksight-error-has-been-thrown-from-the-aws-athena-client-insufficient-lake-formation-permissions/30557/4 "2024-06-10T09:09:51Z")

</div>

Hi @WLS-D  
I have checked the same and I could see those 2 checkboxes are checked off as we are using not using IAM access for newly created databased and tables but lakeformation
