nead help
3 TopicsUpload pbix with python
Hi! I have Power BI Report Server May 2022 and i try to upload pbix-file use api. I write this code: from asyncio.windows_events import NULL from requests import request import requests from requests_toolbelt.multipart.encoder import MultipartEncoder import json from requests_ntlm import HttpNtlmAuth from urllib3.exceptions import InsecureRequestWarning from urllib3 import disable_warnings disable_warnings(InsecureRequestWarning) urlpbirs = "https://pbirs.ontoso.com/reports/api/v2.0/PowerBIReports" file = open("testapi.pbix", "rb") file_location = "testapi.pbix" files = {'value': (None, open(file_location, 'rb'), 'multipart/form-data')} mp_encoder = MultipartEncoder(fields=files) headers = { 'accept': 'application/json', # Already added when you pass json= but not when you pass data= # 'Content-Type': 'application/json', } json_data = { 'Name': 'test', 'Description': 'test api with python', 'Type': 'PowerBIReport', 'Hidden': False, 'IsFavorite': False, 'ContentType': NULL, 'Content': '', 'HasDataSources': True, 'Path': '/BI Test' } r = requests.post(url=urlpbirs, data=mp_encoder, auth=HttpNtlmAuth( 'user', 'pass'), verify=False, headers=headers, json=json_data) But it doesn't work2KViews0likes2CommentsNot able to Upload csv file into Power BI to create Dataflow
In premium license I was trying to upload a csv file to create a dataflow to perform AutoML,when I click browse button and after choosing the csv file, I was not able to upload the CSV file.No errors were shown but a warning. Do I need to enable any option on the admin portal to upload the csv file?1.5KViews0likes2CommentsUpload button on web portal vs. 'saving as' on server option in Power BI Desktop for RS
Hi, I'm a bit confused, what are the differences between the two options of uploading reports on a server ? 1) Using the "upload" button directely in the webportal, and upload a .pbix file. 2) Use Power BI Desktop for RS with an user account that has credential for the server, and "save as" ? Is possible to upload the dataset as well with option 1 ? Thanks in advance for your helpSolved1.1KViews0likes2Comments