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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
sirisha224
New Member

The Web.Page function didn't finish within timeout of 100 seconds

Hi,

 

I am trying to combine the data in 3 similarly structured tables using 'Append query' option and getting the 'Timeout within 100 seconds' error. The 3 similarly structured tables have data retrived from Web. I read in other blogs to add "Timeout=#duration(0,0,30,0)," code to solve the issue but it is not working in this scenario. Below is the code for the 3 tables I am trying to append.

 

Table 1

let
    Source = Web.Page(Web.Contents("http://www.xyz.com/p1")),
    Data1 = Source{1}[Data],
    Timeout=#duration(0,0,30,0),
    #"Changed Type" = Table.TransformColumnTypes(Data1,{{"Title", type text}, {"Updated", type text}, {"Last By", type text}, {"Comments", Int64.Type}}),
    #"Removed Errors" = Table.RemoveRowsWithErrors(#"Changed Type"),
 

in
   #"Removed Errors"

 

Table 2

let
    Source = Web.Page(Web.Contents("http://www.xyz.com/p2")),
    Data0 = Source{0}[Data],
    Timeout=#duration(0,0,30,0),
    #"Changed Type" = Table.TransformColumnTypes(Data0,{{"Title", type text}, {"Updated", type text}, {"Last By", type text}, {"Comments", Int64.Type}}),
    #"Removed Errors" = Table.RemoveRowsWithErrors(#"Changed Type")
in
    #"Removed Errors"

Table 3

let
    Source = Web.Page(Web.Contents("http://www.xyz.com/p3")),
    Data0 = Source{0}[Data],
    Timeout=#duration(0,0,30,0),
    #"Changed Type" = Table.TransformColumnTypes(Data0,{{"Title", type text}, {"Updated", type text}, {"Last By", type text}, {"Comments", Int64.Type}}),
    #"Removed Errors" = Table.RemoveRowsWithErrors(#"Changed Type")
in
    #"Removed Errors"

 

Thank you for your help.

Sirisha

1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

Hi @sirisha224,

 

I think you not add optional parameter to right place, it should add into web.contents function and use '[]' to package.

Web.Contents

 

Sample:

Web.Contents("web url", [Timeout=#duration(0, 0, 0, 30)])

#duration

#duration(days as number, hours as number, minutes as number, seconds as number) as duration

 

Modified query sample:

let
    Source = Web.Page(Web.Contents("http://www.xyz.com/p1",[Timeout=#duration(0, 0,0, 30)])),
    Data1 = Source{1}[Data],
    Timeout=#duration(0,0,30,0),
    #"Changed Type" = Table.TransformColumnTypes(Data1,{{"Title", type text}, {"Updated", type text}, {"Last By", type text}, {"Comments", Int64.Type}}),
    #"Removed Errors" = Table.RemoveRowsWithErrors(#"Changed Type"),

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @sirisha224,

 

I think you not add optional parameter to right place, it should add into web.contents function and use '[]' to package.

Web.Contents

 

Sample:

Web.Contents("web url", [Timeout=#duration(0, 0, 0, 30)])

#duration

#duration(days as number, hours as number, minutes as number, seconds as number) as duration

 

Modified query sample:

let
    Source = Web.Page(Web.Contents("http://www.xyz.com/p1",[Timeout=#duration(0, 0,0, 30)])),
    Data1 = Source{1}[Data],
    Timeout=#duration(0,0,30,0),
    #"Changed Type" = Table.TransformColumnTypes(Data1,{{"Title", type text}, {"Updated", type text}, {"Last By", type text}, {"Comments", Int64.Type}}),
    #"Removed Errors" = Table.RemoveRowsWithErrors(#"Changed Type"),

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Thank you. It worked.

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors