cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Connect to Databricks from PowerApps

mickniz
Contributor

Hi All,

Currently I trying to connect databricks Unity Catalog from Powerapps Dataflow by using spark connector specifying http url and using databricks personal access token as specified in below screenshot: I am able to connect but the issue is when I expand thge connection it is not showing me list of tables . Am I missing anything . Couldn't find any relevant documentation. ALooking forward for comments or suggestion.

mickniz_0-1714487746554.png

mickniz_1-1714487891958.png

 

 

4 REPLIES 4

Kaniz_Fatma
Community Manager
Community Manager

Hi @mickniz, It sounds like you’re trying to connect PowerApps Dataflow to Databricks Unity Catalog using the Spark connector.

Let’s troubleshoot this issue step by step:

  1. Spark Connector Configuration:

  2. Databricks Personal Access Token:

    • Ensure that you’ve generated a valid Databricks personal access token. To create one:
      • In your Databricks workspace, click your Databricks username in the top bar.
      • Select “Settings” from the dropdown.
      • Click “Developer.”
      • Next to “Access tokens,” click “Manage.”
      • Click "Generate new token"2.
  3. Table Visibility Issue:

    • If you’re not seeing the list of tables after expanding the connection, consider the following:
      • Check the permissions associated with the token. Make sure it has appropriate access to the Unity Catalog.
      • Verify that the Databricks workspace you’re connecting to contains the expected tables.
      • Double-check the connection details, including the server URL and token.

Remember to validate each step carefully, and if you encounter any issues, feel free to ask for further assistance. Good luck! 😊123

 

mickniz
Contributor

thanks for replying @Kaniz_Fatma . I am using my user person token to connect and I have all access on catalog,schema and tables. I am able to view in Databricks Sql editor but not via Spark connector in power apps. It still shows me 

mickniz_0-1715074450673.png

Is there anything else missed or need to be set. Is it possible to connect to Databricks Sql API via powerapps spark dataflow connector

Hi @mickniz

  • Confirm that you’ve set up the Spark connector in PowerApps correctly:
    • Use the ‘Spark other’ connector.
    • Set the ‘Server’ as: https://SERVER_HOSTNAME:443/HTTP_PATH, where SERVER_HOSTNAME and HTTP_PATH should be replaced appropriately.
    • Choose ‘HTTP’ as the protocol.
    • Set ‘Username’ as ‘token’.
    • Use your Databricks personal access token as the ‘Password’.
  • If you’re still not seeing the list of tables after expanding the connection, consider the following:
    • Verify that the Databricks workspace you’re connecting to contains the expected tables.
    • Double-check the connection details, including the server URL and token.
    • Ensure that the token has the necessary permissions to access the Unity Catalog.
  • Unfortunately, the PowerApps Spark dataflow connector does not directly support connecting to the Databricks SQL API. It primarily focuses on connecting to data sources via Spark connectors.
  • If you specifically need to interact with the Databricks SQL API, you might need to explore other integration options or custom solutions.

Good luck! 😊

arunavbarooah
Visitor

I get an invalid credentials error on using this method. I have generated a token in databricks, any idea why?

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group