Forum Discussion

RicardoFW's avatar
RicardoFW
Frequent Visitor
1 year ago
Solved

“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 sam...
  • RicardoFW's avatar
    1 year ago

    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.