Forum Discussion

ihavequestionto's avatar
ihavequestionto
Frequent Visitor
1 year ago
Solved

Invalid Connection Credentials When Adding API to On‑premises Data Gateway

Hello, When adding the API https://api.mktzap.com.br/company/:company_id/historycontact  to my On‑premises Data Gateway, I received the following error: Cannot refresh connection credentials. Inval...
  • ihavequestionto's avatar
    ihavequestionto
    1 year ago

    Power BI Gateway Data Refresh Issue Resolution
    Troubleshooting Steps
    During a support call with Microsoft, assistance was provided and various tests were conducted to diagnose the issue.
    The solution involved creating a Generation 1 (Gen1) dataflow in Power BI. In this dataflow, a table was created to store the token generation link.
    The M code used in Power Query in Power BI Desktop was copied and pasted into the dataflow to enable data retrieval via the alternate link (this alternate link had been preventing the on-premises data gateway from refreshing data in the Power BI Service).
    Once the dataflow connection was added in the on-premises data gateway, the Power BI Service scheduled refresh was able to update the data successfully.