Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error using Import-PBIFile #34

Open
ed-on-data opened this issue Apr 9, 2018 · 1 comment
Open

Error using Import-PBIFile #34

ed-on-data opened this issue Apr 9, 2018 · 1 comment

Comments

@ed-on-data
Copy link

Very useful module, I'm using a number of the functions successfully, however I'm encountering a problem with the Import-PBIFile function. Specifically when I run this...

$Groups = Get-PBIGroup
$GroupId = $Groups[1].id.ToString()
$SourceFile = "T:\IT reporting\Power BI\DataModel.pbix"

Import-PBIFile -filePath $SourceFile -nameConflict Overwrite -groupId $GroupId -authToken $authToken -dataSetName "test" 

I get the following error

Invoke-RestMethod : The remote server returned an error: (404) Not Found.
At C:\Program Files\WindowsPowerShell\Modules\PowerBIPS\1.3.4.0\PowerBIPS.psm1:1244 char:12
+ ...   $result = Invoke-RestMethod -Uri $url -Headers $headers -Method Pos ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-RestMethod], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeRestMethodCommand

The file exists, the file path is correct, I am an owner of the group

Any ideas where I'm going wrong? Thanks!

@RuiRomano
Copy link
Contributor

Hi Edward, does this problem still persists? I launched a new version that should address the issue you reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants