<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Whitespace in source column name rejected by copy activity in Pipelines</title>
    <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4214023#M5663</link>
    <description>&lt;P&gt;Hi - were you able to resolve this?&amp;nbsp; I'm encountering the same issue...&lt;/P&gt;</description>
    <pubDate>Thu, 03 Oct 2024 06:01:03 GMT</pubDate>
    <dc:creator>chrichards</dc:creator>
    <dc:date>2024-10-03T06:01:03Z</dc:date>
    <item>
      <title>Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4122661#M5169</link>
      <description>&lt;P&gt;I am using a pipeline with a copy activity to get data from a SQL server. Since I loop through a list of tables, I get the mapping from a meta table that I prepare beforehand. However, if the source column name contains a space, I get the following error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Failure happened on 'destination' side. ErrorCode=DeltaInvalidCharacterInColumnName,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Column name Location Code contains invalid characters. ",;{}()\n\t=" are not supported.,Source=Microsoft.DataTransfer.ClientLibrary,'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the failure is certainly NOT happening on the 'destination' side. The schema looks like this (it works neither with the encompassing backticks nor without them):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
	"type": "TabularTranslator",
	"mappings": [
		{
			"source": { "name": "`timestamp`" },
			"sink": { "name": "timestamp" }
		},
		{
			"source": { "name": "`Location Code`" },
			"sink": { "name": "Location_Code" }
		},
	]
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the space is in the name of the source column, I can't change it. So what do I do?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2024 11:32:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4122661#M5169</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-28T11:32:49Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4123736#M5174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can try using square brackets as the source column name instead of backquotes. For example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "type": "TabularTranslator",
    "mappings": [
        {
            "source": { "name": "[timestamp]" },
            "sink": { "name": "timestamp" }
        },
        {
            "source": { "name": "[Location Code]" },
            "sink": { "name": "Location_Code" }
        }
    ]
}
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nono Chen&lt;/P&gt;
&lt;P&gt;If this &lt;STRONG&gt;&lt;EM&gt;post&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;helps, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;Accept it as the solution&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Aug 2024 01:09:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4123736#M5174</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-29T01:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4124318#M5178</link>
      <description>&lt;P&gt;Nice try, but it doesn't work, yielding the same error message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just in case, the input for the copy activity really looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
    "source": {
        "type": "SqlServerSource",
        "queryTimeout": "02:00:00",
        "partitionOption": "None",
        "datasetSettings": {
            "annotations": [],
            "type": "SqlServerTable",
            "schema": [],
            "typeProperties": {
                "schema": "dbo",
                "table": "ABCDEFG",
                "database": "HIJKLMNOP"
            },
            "externalReferences": {
                "connection": "684354684651687654657684"
            }
        }
    },
    "sink": {
        "type": "LakehouseTableSink",
        "tableActionOption": "OverwriteSchema",
        "partitionOption": "None",
        "datasetSettings": {
            "annotations": [],
            "linkedService": {
                "name": "Sandbox",
                "properties": {
                    "annotations": [],
                    "type": "Lakehouse",
                    "typeProperties": {
                        "workspaceId": "XXX",
                        "artifactId": "XXX",
                        "rootFolder": "Tables"
                    }
                }
            },
            "type": "LakehouseTable",
            "schema": [],
            "typeProperties": {
                "table": "XXX"
            }
        }
    },
    "enableStaging": false,
    "translator": "{\n\t\"type\": \"TabularTranslator\",\n\t\"mappings\": [\n\t\t{\n\t\t\t\"source\": { \"name\": \"[timestamp]\" },\n\t\t\t\"sink\": { \"name\": \"timestamp\" }\n\t\t},\n\t\t{\n\t\t\t\"source\": { \"name\": \"[Location Code]\" },\n\t\t\t\"sink\": { \"name\": \"Location_Code\" },  *[here I removed the other columns]* 
 \n\t]\n}"
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 29 Aug 2024 06:58:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4124318#M5178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-08-29T06:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4214023#M5663</link>
      <description>&lt;P&gt;Hi - were you able to resolve this?&amp;nbsp; I'm encountering the same issue...&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2024 06:01:03 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4214023#M5663</guid>
      <dc:creator>chrichards</dc:creator>
      <dc:date>2024-10-03T06:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4230400#M5785</link>
      <description>&lt;P&gt;I was facing the same issue in a similar situation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only workaround I could do is to use a notebook and get the data in a dataframe then write it into a delta table as below:&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;df.write.option(&lt;/SPAN&gt;&lt;SPAN&gt;'delta.columnMapping.mode'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;'name'&lt;/SPAN&gt;&lt;SPAN&gt;).save(&lt;/SPAN&gt;&lt;SPAN&gt;path&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'Tables/schemaname/tablename'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;format&lt;/SPAN&gt;&lt;SPAN&gt;= &lt;/SPAN&gt;&lt;SPAN&gt;'delta'&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;mode&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;'overwrite'&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 06 Oct 2024 03:11:49 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4230400#M5785</guid>
      <dc:creator>tarektm7</dc:creator>
      <dc:date>2024-10-06T03:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4285749#M6363</link>
      <description>&lt;P&gt;Alright, I got it and it was trivial in hindsight: The translator above is a literal string. In order to pass it correctly as a parameter, you have to put "@json(mapping_string)" instead of what I did, which was simply "@mapping_string".&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 09:14:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4285749#M6363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-15T09:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Whitespace in source column name rejected by copy activity</title>
      <link>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4618754#M7319</link>
      <description>&lt;P&gt;Isn't there a way or setting like we do in notebooks so that it can read columns with Spaces and save with _ instead od space&lt;/P&gt;</description>
      <pubDate>Thu, 20 Mar 2025 18:59:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Pipelines/Whitespace-in-source-column-name-rejected-by-copy-activity/m-p/4618754#M7319</guid>
      <dc:creator>priyankabis</dc:creator>
      <dc:date>2025-03-20T18:59:16Z</dc:date>
    </item>
  </channel>
</rss>

