[英]Getting error exceeded the maximum length of 128 while copying some text files from azure blob to synapse
I am getting the following error upon trying to copy text files from Azure Blob to Synapse:尝试将文本文件从 Azure Blob 复制到 Synapse 时出现以下错误:
*{
"errorCode": "2200",
"message": "Failure happened on 'Source' side. 'Type=System.Data.SqlClient.SqlException,Message=Parse Error: Identifier 'ARCHIVED_AT,ID,DISPENSATION_ID,ETL_RUN_TIMESTAMP' exceeded the maximum length of 128.,Source=.Net SqlClient Data Provider,SqlErrorNumber=104307,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=104307,State=1,Message=Parse Error: Identifier 'ARCHIVED_AT,ID,DISPENSATION_ID,ETL_RUN_TIMESTAMP' exceeded the maximum length of 128.,},],'",
"failureType": "UserError",
"target": "Copy Blob to Synapse",
"details": []
}*
While I have been able to successfully copy most text files from Azure blob to Azure Synapse using ADF pipeline, I am not sure what is going wrong with this one.虽然我已经能够使用 ADF 管道成功地将大多数文本文件从 Azure blob 复制到 Azure Synapse,但我不确定这个文件出了什么问题。
Can anyone help me figure what I need to do to resolve this?谁能帮我弄清楚我需要做些什么来解决这个问题?
I was using a txt file with pipe delimiter and not a csv file.我使用的是带有 pipe 分隔符的 txt 文件,而不是 csv 文件。 There were double quotes in multiple columns of my table as well as hidden characters which was causing the issue.
我的表格的多列中有双引号以及导致问题的隐藏字符。 It got resolved after I got them replaced at source.
在我从源头更换它们后,它得到了解决。
I agree with @Joel Cochran.我同意@Joel Cochran 的观点。 It seams that the header
ARCHIVED_AT,ID,DISPENSATION_ID,ETL_RUN_TIMESTAMP
is recognized as one column.似乎 header
ARCHIVED_AT,ID,DISPENSATION_ID,ETL_RUN_TIMESTAMP
被识别为一列。
I guess your txt file should has four columns like bellow format:我猜你的 txt 文件应该有四列,如下所示:
ARCHIVED_AT, ID, DISPENSATION_ID, ETL_RUN_TIMESTAMP
data1,1,100,2020-07-02 05:51:32.910
data2,2,102,2020-07-03 05:51:32.910
···
···
Please check the row delimiter of you source txt file that if it is comma(,)
:请检查源 txt 文件的行分隔符,如果它是
comma(,)
:
Hope this helps.希望这可以帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.