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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Anonymous
Not applicable

Post Query is not working in PowerBI Service at schedule refresh

Hello Everyone,

 

I have a Dataset which fetch the data via Rest api (POST request) from the IBM TM1 DataSource in Power Bi Desktop. It works perfectly in Power BI Desktop. After publishing the Report into Power BI Service, I would like to Schedule the Refresh for the Report.  

 

when I Schedule for refresh, the request always consider as GET and it fails.(checked in Fiddler)

 

Find the screechot below: 

 

Power BIService-PostQueryError.png

 

How to pass the query as POST in Power BI Service? Thanks in advance

 

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

Hi @Anonymous ,

 

If you are using the complete url as the first parameter of Web.Contens such as following:

 

 

let
  Source = Web.Contents("http://XXXXXXXX/api/v1/Cubes('zPBI_SalesCube')/Views('Sample')/tm1.Execute?$expand=Axes($expand=Hierarchies($select=Name),Tuples($expand=Members($select=Attributes/L01))),Cells(select=Value)", [Content=XXXX]),
  .....,
  .....,
  FinalStep = XXX
in
  FinalStep

 

 

We can try to use RelativePath to solve it, such as following query:

 

 

let
  Source = Web.Contents("http://XXXXXXXX/api/v1/", [Content=XXXX, RelativePath = "Cubes('zPBI_SalesCube')/Views('Sample')/tm1.Execute?$expand=Axes($expand=Hierarchies($select=Name),Tuples($expand=Members($select=Attributes/L01))),Cells(select=Value)"]),
  .....,
  .....,
  FinalStep = XXX
in
  FinalStep

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-lid-msft
Community Support
Community Support

Hi @Anonymous ,

 

If you are using the complete url as the first parameter of Web.Contens such as following:

 

 

let
  Source = Web.Contents("http://XXXXXXXX/api/v1/Cubes('zPBI_SalesCube')/Views('Sample')/tm1.Execute?$expand=Axes($expand=Hierarchies($select=Name),Tuples($expand=Members($select=Attributes/L01))),Cells(select=Value)", [Content=XXXX]),
  .....,
  .....,
  FinalStep = XXX
in
  FinalStep

 

 

We can try to use RelativePath to solve it, such as following query:

 

 

let
  Source = Web.Contents("http://XXXXXXXX/api/v1/", [Content=XXXX, RelativePath = "Cubes('zPBI_SalesCube')/Views('Sample')/tm1.Execute?$expand=Axes($expand=Hierarchies($select=Name),Tuples($expand=Members($select=Attributes/L01))),Cells(select=Value)"]),
  .....,
  .....,
  FinalStep = XXX
in
  FinalStep

 


Best regards,

 

Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Hi @v-lid-msft ,

 

Wow. Perfect:) Post Query works in Power BI Service with the RelativePath as you suggesed. 

 

Thnaks a lot.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors