简体   繁体   English

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

[英]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.

相关问题 将 csv 文件从 blob 容器复制到 Azure SQL DB 时出现 null 和空字符串错误 - Getting error on null and empty string while copying a csv file from blob container to Azure SQL DB 通过 Polybase 将数据从 Azure blob 复制到 Azure DW 时出现“将数据类型 VARCHAR 转换为 DATETIM 时出错”E - Getting "Error converting data type VARCHAR to DATETIM"E while copying data from Azure blob to Azure DW through Polybase 将文件从 sharepoint 复制到 ADF 中的 blob 存储时出错 - Getting error while copying the file from sharepoint to blob storage in ADF 如何使用 azuredatafactory 将多个文件从 azure blob 加载到 azure synapse(Dw)? - How to load multiple files from azure blob to azure synapse(Dw) by using azuredatafactory? 在 adf 中使用复制活动 (polybase) 将 ADLS gen2 中的镶木地板文件复制到 Azure 突触表时出错 - Getting an error while using copy activity (polybase) in adf to copy parquet files in ADLS gen2 to Azure synapse table 使用 ADF 将 azure blob 文件复制到 azure 突触 - copy azure blob files to azure synapse using ADF 将数据从 ADLS Gen2 加载到 Azure Synapse 时出错 - Error while loading data from ADLS Gen2 to Azure Synapse 如何使用参数文件将多个文件从 BLOB 导出为 Azure Synapse Analytics 中的 Data Lake Parquet 格式? - How to Export Multiple files from BLOB to Data lake Parquet format in Azure Synapse Analytics using a parameter file? 使用Azure Data Factory V2将数据从Azure Blob存储复制到SQL Server时出错 - Error when copying data from Azure Blob Storage to SQL Server using Azure Data Factory V2 通过 Synapse 管道执行 Azure Synapse Notebook 时访问 Key Vault 时出错 - Error accessing Key Vault while executing Azure Synapse Notebook via Synapse Pipelines
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM