繁体   English   中英

将一些文本文件从 azure blob 复制到突触时出现错误超过 128 的最大长度

[英]Getting error exceeded the maximum length of 128 while copying some 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": []
}*

虽然我已经能够使用 ADF 管道成功地将大多数文本文件从 Azure blob 复制到 Azure Synapse,但我不确定这个文件出了什么问题。

谁能帮我弄清楚我需要做些什么来解决这个问题?

我使用的是带有 pipe 分隔符的 txt 文件,而不是 csv 文件。 我的表格的多列中有双引号以及导致问题的隐藏字符。 在我从源头更换它们后,它得到了解决。

我同意@Joel Cochran 的观点。 似乎 header ARCHIVED_AT,ID,DISPENSATION_ID,ETL_RUN_TIMESTAMP被识别为一列。

我猜你的 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
···
···

请检查源 txt 文件的行分隔符,如果它是comma(,) 在此处输入图像描述

希望这可以帮助。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM