FabricPS-PBIP.psm1 - Empty File Check (#257)
Handle empty files. For example, an empty DAX Query View file.
This commit is contained in:
Родитель
e87bb60cd8
Коммит
c332e748ab
|
@ -756,7 +756,7 @@ Function Import-FabricItems {
|
|||
|
||||
$partPath = $filePath.Replace($itemPathAbs, "").TrimStart("\").Replace("\", "/")
|
||||
|
||||
$fileEncodedContent = [Convert]::ToBase64String($fileContent)
|
||||
$fileEncodedContent = ($fileContent) ? [Convert]::ToBase64String($fileContent) : ""
|
||||
|
||||
Write-Output @{
|
||||
Path = $partPath
|
||||
|
@ -976,7 +976,7 @@ Function Import-FabricItem {
|
|||
|
||||
$partPath = $filePath.Replace($itemPathAbs, "").TrimStart("\").Replace("\", "/")
|
||||
|
||||
$fileEncodedContent = [Convert]::ToBase64String($fileContent)
|
||||
$fileEncodedContent = ($fileContent) ? [Convert]::ToBase64String($fileContent) : ""
|
||||
|
||||
Write-Output @{
|
||||
Path = $partPath
|
||||
|
@ -1181,4 +1181,4 @@ Function Set-SemanticModelParameters {
|
|||
[Microsoft.AnalysisServices.Tabular.TmdlSerializer]::SerializeDatabaseToFolder($database, $modelPath)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче