Forum Discussion
Timout on Credentials
Hi Jannat,
My solution in the end was to build pagination into my calls.
Depending on the call weight the external server might be timing you out.
This can be done by converting your get data request into a function and then calling the results of this function into another query.
For example:
Our function would be something like:
(page as number) as table =>
let
Source = Json.Document(Web.Contents("https://DOMAIN/",[RelativePath="[API CALL PATH]?_page=" & Number.ToText(page) & ""]))
My initial step is to call a single page model the data how I want it (expand/rename and create any custom columns etc) then update the above.
Add a new custom query with the following:
let
AddFunctionCall=List.Generate(()=>[Page Number=0,Func=null], each (try _[Func])[HasError]=false, each [Page Number=_[Page Number]+1, Func=YOURFUNCTIONNAMEHERE([Page Number]+1)], each _[Func]),
ConvertToTable = Table.FromList(AddFunctionCall, Splitter.SplitByNothing(), null, null),
RemoveDemiRow = Table.Skip(ConvertToTable,1),What this will do is call the function for each page in the output avoiding the timeout.
Hi paulalmond91
I'm also getting the same error now. I'm extracting data via a SQL statement (ODBC connection). can you suggest a solution for this?
Thank you in advance!
Failed to update data source credentials: Timeout expired. The timeout period elapsed prior to completion of the operation.Hide details
| Activity ID: | df0639f7-acd1-d4ec-d98a-d1e0517f10d7 |
| Request ID: | 2fc28982-b533-d9da-bd16-cde92ffdd484 |
| Status code: | 400 |
| Time: | Mon May 14 2018 09:45:59 GMT+0530 (Sri Lanka Standard Time) |
| Version: | 13.0.5248.195 |
| Cluster URI: | https://wabi-south-east-asia-redirect.analysis.windows.net |
- paulalmond918 years agoHelper II
Sorry for late reply.
If you're still having issues i would suggest you contact PowerBI support as they can see more details on the error and hopefully point you in the right direction.