Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cristinaojer
Frequent Visitor

Can't load data from SQL Server into Lakehouse. Can't add a data destination.

I'm facing some issues when trying to get data from SQL Server database into Fabric Lakehouse. I'm using an on-premises data gateway updated up to it’s latest version.
  • We’ve tried to get this data through a Copy Activity. When running the pipeline, the process starts but never ends. We made a trial just o ingest 4 rows from the source table but the execution of the pipeline still never ends. Source data is read since we could preview it through ‘preview data’ button when configuring the activity. It seems the problem is when loading data into the lakehouse.
  • We’ve tried to get this data also through a Dataflow Gen2. In this case, we could query the source table and transform the data, but when trying to add a destination for the data, an unkwon error is reportedcristinaojer_0-1713803116955.png

Is this a common error? How could we troubleshoot it?

9 REPLIES 9
DerekCC
New Member

I am facing a very similar issue. On Prem SQL through an OPDG to a Lakehouse using CopyData. The table only has 7 rows, it previews, but it never writes any data; all I receive after it times out is a generic error: InternalServerError executing pipeline Fabric

I just updated my OPDG to the most recent version (3000.218.9 - April 2024) in hopes that this would help, but no difference.

amitchandak
Super User
Super User

@cristinaojer , For some customers it worked with the March 2024 gateway, but for some, it worked only with the April 2024 Gateway(Data Pipelines). But with April 2024 many of our dataflows are failing with false error.

Hi @cristinaojer 

 

Thanks for using Microsoft Fabric Community. @amitchandak thank you for sharing the details.

As we have two releases in the month of April.

April 2024 update (3000.218.8)

April 2024 update (3000.218.7)

 

Request you to install the latest version of on-prem gateway and try to establish the connection, this might help you.

If the issue still persists, please do let us know we will try to help.

 

Hope this helps.

 

Thank you.

Experiencing the sames issues. Dataflow Gen2 successfully loads onprem SQL tables to Fabric lakehouse tables, but a copy activity in a Fabric pipeline dosn't work. I also setup an ADF pipeline to copy to the lakehouse and get the same results.

 

The copy activity is creating the table in the lakehouse as expected. When looking at the underlying files of the table, a folder called '_delta_log' is there with files small json files within it. Looks like each of these files is being created after a timeout occurs? Here's the contents of the json:

 

{"protocol":{"minReaderVersion":1,"minWriterVersion":2,"readerFeatures":null,"writerFeatures":null}}
{"metaData":{"id":"8db4335b-4ae9-4b5e-8262-3e5096d44d39","name":"delta","description":"","format":{"provider":"parquet","options":{}},"schemaString":"{\"type\":\"struct\",\"fields\": <columns names removed>]}","partitionColumns":[],"createdTime":1714817850126,"configuration":{}}}
{"commitInfo":{"operation":"Write","engineInfo":"Microsoft.DI.Delta","additionalCommitInfo":null}}
 
No records are being inserted into the lakehouse. Data preview works in the pipeline.
 
I also tried landing the files as lakehouse files instead of tables, but still did not work. Seems like the issue is with writing data to the lakehouse from a pipeline copy activity (either Fabfic or ADF).

Hi @cristinaojer 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thanks.

Hi @cristinaojer 

 

When using Microsoft Fabric Dataflow Gen2 with an on-premises data gateway, you might encounter issues with the dataflow refresh process. The underlying problem occurs when the gateway is unable to connect to the dataflow staging Lakehouse in order to read the data before copying it to the desired data destination. This issue can occur regardless of the type of data destination being used.

The firewall rules on the gateway server and/or customer's proxy servers need to be updated to allow outbound traffic from the gateway server to the following:

  • Protocol: TCP
  • Endpoints: *.datawarehouse.pbidedicated.windows.net, *.datawarehouse.fabric.microsoft.com, *.dfs.fabric.microsoft.com
  • Port: 1433

Please refer to the documentation for more details : Set new firewall rules on server running the gateway

 

For similar issue please refer : Error when trying to create a dataflow gen 2. - Microsoft Fabric Community

 

I hope this information helps.

 

Thank you.

Hi @v-cboorla-msft,

 

Thank you very much for the response. Gateway admins opened firewall rules and data loading worked fine for DataFlow Gen2! But I'm still having the problem with Copy Activity... I'm waiting for my collegues to update the last version of the gateway and I'll write back to this post with the result

 

Thanks,

Hi @cristinaojer 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others.
Otherwise, will respond back with the more details and we will try to help.

 

Thanks.

Hi @cristinaojer 

 

We haven’t heard from you on the last response and was just checking back to see if you have a resolution yet. In case if you have any resolution please do share that same with the community as it can be helpful to others .
If you have any question relating to the current thread, please do let us know and we will try out best to help you.
In case if you have any other question on a different issue, we request you to open a new thread.

 

Thanks.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors