Azure Data Factory - Cannot detect a row after parse 100 MB data.,Source=Microsoft.DataTransfer.Common,'

Venkat Balla 11 Reputation points
2021-03-25T17:03:04.92+00:00

I am running a Data Factory process to load Delimited File (1.2 GB) into Azure SQL server and it's failing after the Data read reached to 100 mb.

Error:

Error
Operation on target ForEach1 failed: Activity failed because an inner activity failed; Inner activity name: Copy data1, Error: ErrorCode=DelimitedTextIncorrectRowDelimiter,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The specified row delimiter
is incorrect. Cannot detect a row after parse 100 MB data.,Source=Microsoft.DataTransfer.Common,'

And the failure point is not consisted first time it failed around 17 million records, second time around 19 million records so it's not consistent to validate the file.

Any help is appreciated.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. HimanshuSinha 19,527 Reputation points Microsoft Employee Moderator
    2021-03-25T20:56:55.937+00:00

    Hello @Venkat Balla ,
    Thanks for the ask and using the Microsoft Q&A platform .

    There is a possiblity that the row size is bigger then 100MB ( default) and so you are hitting this error . Can you please introduce the property "MaxRowSize" in the dataset and see if that helps.
    "MaxRowSize": 2000000
    The below animation should help in setting this property .

    81703-rowsize-issu.gif

    Please do let me know how it goes .
    Thanks
    Himanshu
    Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members

    1 person found this answer helpful.
    0 comments No comments

  2. Venkat Balla 11 Reputation points
    2021-03-26T01:52:09.033+00:00

    Thank you. I tried that but it still failed but with a slightly different error. 1 MB instead of 100 MB.

    Updated Property:

            "columnDelimiter": ",",
            "escapeChar": "\\",
            "firstRowAsHeader": true,
            "quoteChar": "\"",
            "MaxRowSize": 2000000
    

    Error:

    ErrorCode=DelimitedTextIncorrectRowDelimiter,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The specified row delimiter is incorrect. Cannot detect a row after parse 1 MB data.,Source=Microsoft.DataTransfer.Common,


  3. Venkat Balla 11 Reputation points
    2021-07-07T17:05:40.077+00:00

    Sorry for delayed response. In my case issue is with file format once we corrected the file format we were able to resolve this issue.

    0 comments No comments

  4. Kirtesh Jain 1 Reputation point
    2022-01-20T17:24:43.7+00:00

    Hi Were you able to find any resolution for this error to load a file greater than 100mb

    thanks

    0 comments No comments

  5. Shruti S 0 Reputation points
    2023-06-26T15:31:08.43+00:00

    My file size is 3gb, I have a similar issue. I tried changing the "MaxRowSize": 900000000, I get an error message

    ErrorCode=DelimitedTextIncorrectRowDelimiter,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=The specified row delimiter  is incorrect. Cannot detect a row after parse 858 MB data.,Source=Microsoft.DataTransfer.Common,'
    

    Can someone please help?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.