Forum Discussion

msprog's avatar
msprog
Icon for Advocate III rankAdvocate III
1 year ago
Solved

Copy Data failure to lakehouse: sql server column names with spaces

we have an onprem sql server, In Fabric, a gateway connection is configured to the server.  Now I have a pipeline with a Copy Data configured with source as this sql server and target  as the fabric...
  • Anonymous's avatar
    Anonymous
    1 year ago

    Hi msprog  ,
    Thank you for reaching out to the Forum community.This error occurs because Fabric Lakehouse (Delta tables) does not permit spaces or special characters in column names. To fix it try In the Copy Data activity, navigate to the Mapping tab. Map the source columns to target columns using valid names (replace spaces with underscores or remove special characters).
    Example: Default Create Configuration Code to -> Default_Create_Configuration_Code

    Alternatively, you can use a SQL query or view to rename the columns before copying.