web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / When SQL receives data...
Power Automate
Unanswered

When SQL receives data, update my Power Bi report and Power Bi Data Set to see in real time the change reflected but l get a error code 202 cache, and 415, api can only be called on a model based dataset.

(0) ShareShare
ReportReport
Posted on by

Hi, l am using Insert Row (v2) then Refresh a data set connection.

 

Objective : When SQL receives data, POST update my Power Bi report and Power Bi Data Set to see in real time to see the change reflected. 

When l use the data import type, input, l get the error of 202, Pragma no-cache.

Error Code Below, for data import type.

 

 

{
 "statusCode": 202,
 "headers": {
 "Pragma": "no-cache",
 "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
 "X-Frame-Options": "deny",
 "X-Content-Type-Options": "nosniff",
 "RequestId": "954c7c4e-8db5-40ef-b69c-0e2db5da8125",
 "Access-Control-Expose-Headers": "RequestId",
 "Timing-Allow-Origin": "*",
 "x-ms-apihub-cached-response": "true",
 "x-ms-apihub-obo": "true",
 "Cache-Control": "no-store, must-revalidate, no-cache",
 "Date": "Mon, 26 Sep 2022 04:08:55 GMT",
 "Content-Length": "0"
 }
}

 

 

 

 

When l use direct query as the data import type l get a error of 415. For this variation l get a error in the header and body. 

 

 

 

{
 "statusCode": 415,
 "headers": {
 "Pragma": "no-cache",
 "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
 "X-Frame-Options": "deny",
 "X-Content-Type-Options": "nosniff",
 "RequestId": "13d99092-eb48-4ac6-9cef-1fee6ff6a9a4",
 "Access-Control-Expose-Headers": "RequestId",
 "Timing-Allow-Origin": "*",
 "x-ms-apihub-cached-response": "false",
 "x-ms-apihub-obo": "true",
 "Cache-Control": "no-store, must-revalidate, no-cache",
 "Date": "Mon, 26 Sep 2022 04:16:53 GMT",
 "Content-Length": "142",
 "Content-Type": "application/json"
 },
 "body": {
 "error": {
 "code": "InvalidRequest",
 "message": "Invalid dataset. This API can only be called on a Model-based dataset"
 }
 }
}

 

 

 

Which data import type should l use to fix this problem as neither works right now. And how do l fix those error codes.

Categories:
I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard