Forum Discussion
Fabrick - write to lakehouse - get error 24596 when accesssing table using sql afterwards
Hi,
We have the same problem. We copy files from a datalake to our lakehouse and save them as parquet every night by using a pipeline with the copy command. A few hours later we start refreshing a dataset which uses the SQL endpoint of that lakehouse as a source. Allmost every night one of the many tables in the lakehouse are not accessible using the endpoint. When I open the lakehouse in powerbi service and click the table (not using the enspoint but directly in the lakehouse) I do see the data. When I query the endpoint at that moment, I get error :
Msg 24596, Level 16, State 2, Line 1
Failed to complete the command because the underlying location does not exist. Underlying data description: table 'dbo.raw_PurchTable', file 'https://onelake.dfs.fabric.microsoft.com/6806fca9-b8fb-4155-a875-30803927ff8c/849c807e-96b6-43a8-a128-9af6f623f336/Tables/raw_PurchTable/99cf2c7a-f549-4495-8dce-5265b17696ad.parquet'.
I discovered that the name of the parquet file mentioned was the old name (from the night before). So something in updating the sql endpoint is going wrong. Sometimes even after a few hours it is still not updated. Only remedy is running the pipeline again. But sometimes it fixes itself after some time.
Please help!
Kind regard,
Ruben
We'd like to check if it's our issue or hit the error by design.
You can send us the information through email to AzCommunity[at]Microsoft[dot]com with the below details :
- Workspace id
- Workspace name
- Artifact id
It will be great if you can also share the code snippet along with it. We would like to understand why there is an issue?
Subject of the email: ATTN: PRADEEP - Thread title
Thanks.
- Anonymous2 years agoNot applicable
Hi rubenstolk ,
Thanks for sharing the details over an email. We are reaching out to the internal team to get more information related to your query and will get back to you as soon as we have an update.
- Anonymous2 years agoNot applicable
Hi rubenstolk ,
Glad that your query got resolved. Please continue using Fabric Community for any help regarding your queries.- rubenstolk2 years agoRegular Visitor
I'm wondering where you read that my issue got resolved. Issue still persists and this week it hapens allmost every night.
Fout in de gegevensbron: [ValidateMarkupTags][ccon]DataSource.Error: Microsoft SQL: [ccon]Failed to complete the command because the underlying location does not exist. Underlying data description: table 'dbo.raw_AR_Projbudgetline', file 'https://onelake.dfs.fabric.microsoft.com/6806fca9-b8fb-4155-a875-30803927ff8c/849c807e-96b6-43a8-a128-9af6f623f336/Tables/raw_AR_Projbudgetline/daf65fd3-68df-4f33-8163-9b07f6f6258c.parquet'. Statement ID: {38224CEF-930E-4591-983F-44870FC23D73} | Query hash: 0x7296E3FF80C7D54D | Distributed request ID: {5A857015-E6BC-4263-B26E-188730FF957F}[/ccon]. DataSourceKind = [ccon]SQL[/ccon]. DataSourcePath = [ccon]i6atfso675fepdqlwntpicilx4-vh6am2h3xbkudkdvgcadsj77rq.datawarehouse.pbidedicated.windows.net;ec28af42-919a-4fdc-9e99-7fc0c94d7502[/ccon]. Message = [ccon]Failed to complete the command because the underlying location does not exist. Underlying data description: table 'dbo.raw_AR_Projbudgetline', file 'https://onelake.dfs.fabric.microsoft.com/6806fca9-b8fb-4155-a875-30803927ff8c/849c807e-96b6-43a8-a128-9af6f623f336/Tables/raw_AR_Projbudgetline/daf65fd3-68df-4f33-8163-9b07f6f6258c.parquet'. Statement ID: {38224CEF-930E-4591-983F-44870FC23D73} | Query hash: 0x7296E3FF80C7D54D | Distributed request ID: {5A857015-E6BC-4263-B26E-188730FF957F}[/ccon]. ErrorCode = [ccon]-2146232060[/ccon]. Number = [ccon]24596[/ccon]. Class = [ccon]16[/ccon]. State = [ccon]2[/ccon]. [/ccon]. The exception was raised by the IDataReader interface. Please review the error message and provider documentation for further information and corrective action. Table: Projectbudgetregels.
On different tables. Problem is still that the SQL endpoint doesn't know about the new filenames with new (by fabric generated) GUID's.
- ashafaa2 years agoFrequent Visitor
I also sent an email beacuse I have the same problem. Please help, thank you