Skip to content

Databricks app with Genie access #1073

@ssa3-me

Description

@ssa3-me

Description
I have created an databricks app with Genie access. When running the example at https://docs.databricks.com/aws/en/dev-tools/databricks-apps/genie it throws following error:

ResourceDoesNotExist: Unable to get space [01f0a7a327cd11978f2951f81a61bfdd]. Caused by Node with resource name Some(datarooms/01f0a7a327cd11978f2951f81a61bfdd) does not exist.
Traceback:
File "/app/python/source_code/.venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 88, in exec_func_with_error_handling
    result = func()
             ^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 590, in code_to_exec
    exec(code, module.__dict__)
File "/app/python/source_code/app.py", line 322, in <module>
    submit_prompt(prompt, chat_container)
File "/app/python/source_code/app.py", line 150, in submit_prompt
    response = w.genie.start_conversation_and_wait(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/service/dashboards.py", line 1299, in start_conversation_and_wait
    return self.start_conversation(content=content, space_id=space_id).result(timeout=timeout)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/service/dashboards.py", line 1287, in start_conversation
    op_response = self._api.do('POST',
                  ^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/core.py", line 157, in do
    response = retryable(self._perform)(method,
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/retries.py", line 54, in wrapper
    raise err
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/retries.py", line 33, in wrapper
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
File "/app/python/source_code/.venv/lib/python3.11/site-packages/databricks/sdk/core.py", line 247, in _perform
    raise error from None

Reproduction
Code shared in above link.

Expected behavior
Conversation should be created

Is it a regression?
databricks-0.2

Debug Logs
The SDK logs helpful debugging information when debug logging is enabled. Set the log level to debug by adding logging.basicConfig(level=logging.DEBUG) to your program, and include the logs here.

Other Information

  • OS: [e.g. macOS]
  • Version: [e.g. 0.1.0]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions