Skip to content

While importing notebooks, it's unable to create directories #88

Open
@thirurg

Description

@thirurg

When importing the notebooks using the Import-DatabricksEnvironment command, it's not creating a Directory and getting below error. Looks like the $x = Add-DatabricksWorkspaceDirectory -Path $dbPath -ErrorAction SilentlyContinue, is not working or even though it failed, it's Silently continuing. so, we don't know what is the issue here to create the Directory? How do we overcome this issue?

Invoke-RestMethod : {"error_code":"RESOURCE_DOES_NOT_EXIST","message":"The
parent folder (/Views) does not exist."}
At C:\Users\ContainerAdministrator\Documents\WindowsPowerShell\Modules\Databric
ksPS\1.12.0.1\Public\General.ps1:96 char:13

  • ... $result = Invoke-RestMethod -Uri $apiUrl -Method $Method -Headers $ ...
  • CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:Htt
    pWebRequest) [Invoke-RestMethod], WebException
  • FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShe
    ll.Commands.InvokeRestMethodCommand

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions