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

Announcements

News and Announcements icon
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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 481

#2
11manish Profile Picture

11manish 278

#3
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

Last 30 days Overall leaderboard