Forum Discussion
Data source does not update in web Power BI
I have a problem with Web, JSON data source (Pipedrive CRM API).
I have updated the URL used to get the data and it works flawless. But when I publish to web Power BI the URL stays the same, and I automated data update does not run. I tried to remove the data from cloud and publishing again, but it dodes not help. Any suggestions?
Data source defined in Power BI Desktop:
Data source defined in Power BI DesktopData Source in cloud Power BI, auto refresh error shows old value of "filter_id"
The error message above in English:
"Failed to update data source credentials: Web.Contents failed to get contents from 'https://api.pipedrive.com/v1/deals?filter_id=29&start=0&limit=500&api_token=XXXXXXXX' (400): Bad Request"
It is because "filter_id=29" does not exist anymore in Pipedrive CRM. "filter_id=39" exists but the URL does not update from PBI Desktop.
> Did you solved this issue using pipedrive api ?
Yes, I did. Clearing all permissions in "Data Source Settings" in Power Query Editor in Power BI Desktop app and then setting them again and publishing to the cloud refreshed requests done by Power BI Cloud.
9 Replies
- AnonymousNot applicable
mzrkwcz,
Could you please post the above error message in English?
Regards,- mzrkwczHelper I
Yes, I have added in my post:
The error message above in English:
"Failed to update data source credentials: Web.Contents failed to get contents from 'https://api.pipedrive.com/v1/deals?filter_id=29&start=0&limit=500&api_token=XXXXXXXX' (400): Bad Request"
It is because "filter_id=29" does not exist anymore in Pipedrive CRM. "filter_id=39" exists but the URL does not update from PBI Desktop.
Even worse - for any call for data to https://api.pipedrive.com/v1/deals PBI clud attaches the same old set of URL parameters I do not use anymore (filter_id=29&start=0&limit=500&api_token=XXXXXXXX), even in new PBIX files!
- AnonymousNot applicable
mzrkwcz,
Change your code in Advanced Editor following the instructions in the similar blog and thread below, then check if you can refresh successfully.
https://www.powerpivotblog.com/getting-data-into-power-query-with-the-twitter-search-api-how-to-hack-pq-to-use-oauth/
https://community.powerbi.com/t5/Service/Refreshing-a-Restful-Data-Source-with-API-Key/td-p/131298
Regards,
Lydia Zhang