Forum Discussion

sun-sboyanapall's avatar
sun-sboyanapall
Icon for Advocate I rankAdvocate I
2 years ago
Solved

Lakehouse tables not showing up in SQL Endpoint

Hey, I have taken 60day trail for the fabric, 

 

created the table using spark notebook here is the code I have used. 

df.write.mode("overwrite").format("delta").saveAsTable("Salesforce_lead_full")

it shows up in the lakehouse

but refuses to show up in the sql end point or in the model so that i can use this  dataset in powerbi to make something out of it. 


other interesting thing is when i click on properties of the table I see blank value in the Format field

and i can see the table files in the one lake file explorer. waited for 2 days now and its been killing me. we are doing a POC of fabric so far its been super buggy. 

 

please help

 

7 Replies

  • AndyDDC's avatar
    AndyDDC
    Icon for Most Valuable Professional rankMost Valuable Professional

    hi sun-sboyanapall @can you try writing using:


    df.write.mode("overwrite").format("delta").save("Tables/Salesforce_lead_full")

     

    • jflo08's avatar
      jflo08
      Frequent Visitor

      This was my issue - I have a custom function which writes dataframes to delta tables, and it was working, showing up as a table in my lakehouse and as a file in my lakehouse - what it wasn't doing was actually creating a table in my SQL endpoint "warehouse", writing it like this ,made it visible in my lakehouse sql endpoint schema.

    • sun-sboyanapall's avatar
      sun-sboyanapall
      Icon for Advocate I rankAdvocate I

      Thanks a ton, that worked. I have been banging my head for 2 days now. 

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi sun-sboyanapall ,

    Thanks for AndyDDC 's prompt reply, you can try his suggestion first.

    I have some suggestions for your problem as well. The issue you are experiencing could be due to a number of reasons, the SQL Analytics Endpoint cache may not be updated in a timely manner. Try refreshing or reconnecting to see the newly added tables. And data synchronisation may take some time. Wait for a few minutes and check again.

     

     

    If the above methods still didn't help you solve the problem, you can consider clearing the cache and re-adding the new table, then refresh it to see if the new table is loaded in SQL Analytics Endpoint.

     

    Best Regards,

    Ada Wang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

    • sun-sboyanapall's avatar
      sun-sboyanapall
      Icon for Advocate I rankAdvocate I

      I have actually tried all of this from other posts but it was that checkmark that was the issue in my case.

  • What if your lakehouse is already created and you can't create a new lakehouse?  Is there a property that can be reset?