action-bi-toolkit / toolkit

MIT License
13 stars 1 forks source link

External Tool fails when launched with no PBIX file open #2

Open mthierba opened 2 years ago

mthierba commented 2 years ago
Test-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:240 char:21
+     if (!(Test-Path $LocalPbixFilePath)) {
+                     ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Test
   PathCommand

Split-Path : Cannot bind argument to parameter 'Path' because it is an empty string.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:244 char:45
+     $LocalPbixRootFolder = Split-Path -Path $LocalPbixFilePath
+                                             ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Split-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorEmptyStringNotAllowed,Microsoft.PowerShell.Commands.Spli
   tPathCommand

Action BI Toolkit:
Powershell Version: 5.1.19041.1237

Model name:  Untitled
File Path:
File type:   Thick Report: Model embedded within Local PBIXServer:      localhost:1050
Database:    4fc7a76d-f0a5-47e3-8118-d567a213f33c
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:266 char:32
+     $toolkitFolder = Join-Path $LocalPbixRootFolder $toolkitSubFolder
+                                ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:267 char:35
+     $deploymentFolder = Join-Path $LocalPbixRootFolder $deploymentSub ...
+                                   ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:268 char:41
+     $LocalthinReportsFolder = Join-Path $LocalPbixRootFolder $thinRep ...
+                                         ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:273 char:112
+ ... -Name dependenciesOutFolder -Value ( Join-Path $toolkitFolder $depend ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:274 char:111
+ ...  -Name performanceDataFolder -Value (Join-Path $toolkitFolder $perfor ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:275 char:112
+ ... -Name exportDaxQueriesFolder -Value (Join-Path $toolkitFolder $export ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:276 char:111
+ ...  -Name PbixQuickBackupFolder -Value (Join-Path $toolkitFolder $pbixQu ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:277 char:109
+ ... ty -Name PbixBIMDeployFolder -Value (Join-Path $toolkitFolder $pbixBI ...
+                                                    ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

New-Item : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:284 char:51
+         New-Item -ItemType Directory -Force -Path $directory | Out-Nu ...
+                                                   ~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-Item], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.NewItemComm
   and

New-Item : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:284 char:51
+         New-Item -ItemType Directory -Force -Path $directory | Out-Nu ...
+                                                   ~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-Item], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.NewItemComm
   and

New-Item : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:284 char:51
+         New-Item -ItemType Directory -Force -Path $directory | Out-Nu ...
+                                                   ~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [New-Item], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.NewItemComm
   and

Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:291 char:44
+ ...       $LocalPBIXExportFolder = Join-Path $LocalPbixRootFolder $LocalP ...
+                                              ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Get-PbixProjSettings : Cannot bind argument to parameter 'LocalPbixProjFolder' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:295 char:51
+ ...  $LocalPbixProjSettings = Get-PbixProjSettings $LocalPBIXExportFolder
+                                                    ~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Get-PbixProjSettings], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Get-PbixProjSettings

 (Report with embedded model)
Join-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:416 char:32
+     $GitIgnorePath = Join-Path $ls.PbixRootFolder ".gitignore"
+                                ~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Join-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.JoinPathCom
   mand

Test-Path : Cannot bind argument to parameter 'Path' because it is null.
At C:\Program Files\Action BI Toolkit\Action-BI-Toolkit.ps1:418 char:19
+     if (Test-Path $GitIgnorePath) {
+                   ~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidData: (:) [Test-Path], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationErrorNullNotAllowed,Microsoft.PowerShell.Commands.TestPathCom
   mand

Execution options:
 1) Export PBIX for source control
 2) Run page tests
 3) Save backup of PBIX
 4) Execute DAX Queries and export to csv
 5) Open in VS Code
 6) Compile Thick Report .pbit from Source Control
 7) Compile Thin Report(s) .pbix from Source Control
 8) Deploy to Power BI environment
         (NB: default = 1)

Choose option: