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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
jj44
Advocate I
Advocate I

Copy Job source internal error

Hi All,

 

I've suddenly started getting an error when setting up new Copy Job. In recent days, I've used them to get data from files uploaded into our Lakehouses. But yesterday, after selecting the Lakehouse as a source, I get internal error 

jj44_0-1761122220598.png

If you switch to Files, No files are discovered. 
I've created a brand new Lakehouse this morning, uploaded a file and attempted to use the Copy Job to retrieve the file data, same outcome!

Anyone got any hints as to how to proceed/debug this?

 

Thanks,

Jeff

 

1 ACCEPTED SOLUTION
KautukG
Advocate I
Advocate I

I was getting the exact same error since yesterday for any warehouse I wanted to use as the source for the Copy Job. I  tried connecting to different warehouses with data in it but I got the same internal error.

Later I found that I needed to re-authenticate my warehouse connection that was being used to connect to the source. I went to the 'Manage Connections and Gateways screen', in the Conenctions tab located my connection for the warehouse, saw that it was offline, reauthenticated the connection from the 'settings' option of the connection, and then I was able to resolve the error.

Hope that helps!

View solution in original post

4 REPLIES 4
KautukG
Advocate I
Advocate I

I was getting the exact same error since yesterday for any warehouse I wanted to use as the source for the Copy Job. I  tried connecting to different warehouses with data in it but I got the same internal error.

Later I found that I needed to re-authenticate my warehouse connection that was being used to connect to the source. I went to the 'Manage Connections and Gateways screen', in the Conenctions tab located my connection for the warehouse, saw that it was offline, reauthenticated the connection from the 'settings' option of the connection, and then I was able to resolve the error.

Hope that helps!

Yes, that was it. When I checked my connection it was showing as 'Offline' - why did it need reauthenticating is a topic for another discussion, could get interesting with pipelines suddenly failing with vague error messages!

 

Thanks

Jeff

AntoineW
Solution Sage
Solution Sage

Hi @jj44,

 

When you create a Copy Job (or a pipeline Copy activity) using a Lakehouse as the source or destination, Fabric needs to read the schema of the table to generate the mapping automatically.

If the source or destination Lakehouse table is empty (it contains schema metadata but no rows), the Copy Data activity fails because:

  • The engine cannot infer the schema from the data,

  • Fabric throws an internal error such as
    MissingSchemaForAutoCreateTable or a generic “Internal error”,

  • And in the Copy Job wizard, you see no files or tables discovered.

That’s exactly the behavior you described — even in a brand-new Lakehouse, the Copy Job fails when no data rows exist.

 

In the Microsoft Fabric Known Issues, there is an known bug on that pipeline can't copy an empty table to lakehouse :    

“Currently, copy has a limitation when handling the empty lakehouse table."

 

To work around this issue, edit the mapping page. Select + New Mapping to add the columns individually.”

 

Reference : https://support.fabric.microsoft.com/known-issues/?product=Data%2520Factory

AntoineW_0-1761136111748.png

 

If the problem persists, you could use a notebook : 

df = spark.read.csv("Files/source.csv", header=True)
df.write.format("delta").mode("overwrite").saveAsTable("DestinationTable")

 

Hope it can help you ! 

Best regards,

Antoine

Hi Antoine,

 

Not quite the same scenario. Whilst trying get to the bottom of the problem, I created a brand new Lakehouse with no tables, just a single file uploaded. But it still failed. But worth knowing about as I create empty tables during development al the time.

 

Cheers,

Jeff

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Fabric Update Carousel

Fabric Monthly Update - October 2025

Check out the October 2025 Fabric update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.