Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
##fails
requests.post("https://api.fabric.microsoft.com/v1/workspaces/<ws_id>" + '/dataflows'+'/<df_id>'+"/jobs/instances", headers={"authorization": "Bearer " + token},params = {"jobType": "Refresh"} )
##fails
payload = {
"executionData":{
"DataflowName": "dfg2test",
"OwnerUserPrincipalName": "user@company.com",
"OwnerUserObjectId": "<df_id>"
}
}
token = get_token()
req = requests.post("https://api.fabric.microsoft.com/v1/workspaces/<ws_id>" + '/dataflows'+'/<df_id>'+"/jobs/instances", headers={"authorization": "Bearer " + token},params = {"jobType": "Refresh"}, data=payload )
I am not being able to refresh dfgen2 programmatically, I follwed https://learn.microsoft.com/en-us/fabric/data-factory/dataflow-gen2-public-apis#get-dataflow and https://learn.microsoft.com/en-us/rest/api/fabric/core/job-scheduler/run-on-demand-item-job?tabs=HTT...
I am getting this. I can manually refesh it as well as through scheduled jobs
There was a problem refreshing the dataflow: 'Something went wrong, please try again later. If the error persists, please contact support.'. Error code: UnknowErrorCode. (Request ID: 37753040-f20b-49d9-a04e-bc589ab12eaf).
Using the same SPN, I am able to execute List Dataflows
The more contradictory part of the documentation is Run On Demand Item Job (says SPN can consume endpoint) vs Run On Demand Execute (says SPN can't consume endpoint)
My question is -
Solved! Go to Solution.
The on demand execute endpoint documentation is correct. SPN is not supported just yet.
You can request this through the ideas site for prioritization:
The on demand execute endpoint documentation is correct. SPN is not supported just yet.
You can request this through the ideas site for prioritization:
User | Count |
---|---|
20 | |
18 | |
6 | |
2 | |
2 |
User | Count |
---|---|
49 | |
43 | |
18 | |
7 | |
6 |