Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
RicardoFW
Frequent Visitor

“The parameter is incorrect” error when adding Amazon Athena ODBC DSN to Enterprise Gateway

Hello everyone,

I’m trying to connect Power BI Service (app.powerbi.com) to Amazon Athena via our on‑premises enterprise gateway. My setup works perfectly in Power BI Desktop, but when I add the same DSN under Manage Gateways → Data Sources in Enterprise mode, I get:

Unable to create connection for the following reason: There was an error in the data gateway.
Details:
Data Science: The parameter is incorrect.
Status code: 400

RicardoFW_0-1746467945333.png

 

When I click “Create” on the new data source, I immediately get “The parameter is incorrect.” Desktop refresh works; gateway status is Online and passes all network tests.

Has anyone seen this error adding an Athena ODBC DSN to an enterprise gateway? What specific parameter might be invalid, or what else should I check? Any guidance or troubleshooting steps would be greatly appreciated!

Thank you in advance,

Ricardo Fajardo

1 ACCEPTED SOLUTION
RicardoFW
Frequent Visitor

I finally resolved this error by re‑creating my Athena data source after changing the gateway service to run under the Local System account so it could decrypt the stored credentials. Steps:

  1. On the gateway machine, open services.msc.

  2. Find On‑premises data gateway service (usually PBIEgwService).

  3. In Properties → Log On, switch from NT SERVICE\PBIEgwService to Local System account.

  4. Restart the gateway service.

  5. In Power BI Service → Manage gateways → [Your gateway], remove the broken Athena data source.

  6. Click + New data source, choose Amazon Athena, enter:

    • DSN = your System DSN name (e.g. AmazonAthena)

    • Authentication method = Anonymous

  7. Click Create, then Test – you should see “Connection successful.”

  8. Finally, in your workspace dataset Settings → Gateway connection, re‑map to the new Athena source and test again.

After these steps, scheduled refresh works without the “parameter is incorrect” error.

View solution in original post

5 REPLIES 5
RicardoFW
Frequent Visitor

I finally resolved this error by re‑creating my Athena data source after changing the gateway service to run under the Local System account so it could decrypt the stored credentials. Steps:

  1. On the gateway machine, open services.msc.

  2. Find On‑premises data gateway service (usually PBIEgwService).

  3. In Properties → Log On, switch from NT SERVICE\PBIEgwService to Local System account.

  4. Restart the gateway service.

  5. In Power BI Service → Manage gateways → [Your gateway], remove the broken Athena data source.

  6. Click + New data source, choose Amazon Athena, enter:

    • DSN = your System DSN name (e.g. AmazonAthena)

    • Authentication method = Anonymous

  7. Click Create, then Test – you should see “Connection successful.”

  8. Finally, in your workspace dataset Settings → Gateway connection, re‑map to the new Athena source and test again.

After these steps, scheduled refresh works without the “parameter is incorrect” error.

lbendlin
Super User
Super User

you need to use the 64 bit ODBC control panel, set up the exact same system DSN, and make sure it connects successfully - on each of the gateway cluster members.  

I’m already using the 64‑bit ODBC driver and the connection test succeeds. Additionally, I’m the sole member of the gateway cluster. As you see, I'm using the same system DSN 

RicardoFW_0-1746474306121.png

RicardoFW_1-1746474332994.png

 

Create a new connection, of type ODBC.  server is   

 

dsn=AmazonAthena

 

and then specify the credentials.

Tried but had the same error (using access key as username and secret key as password, also tried with Anonymous Auth):

RicardoFW_1-1746475446831.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.