ADF: Unable to load json file >100 MB into a database column

Pashikanti Ranadheer 21 Reputation points
2022-01-17T12:02:54.65+00:00

Hi,

I have a requirement to load the json files (ADF Logs) into our database via Azure Data Factory (Copy Activity). The datatype of the column is "nvarchar". There will be around 20 files/day and the file at 21:00 hrs is having size more than 100 MB. Below is the folder structure.

165675-image.png

I am able to load files less than 100 MB. When the copy activity come across files > 100 MB it throws an error as below. If I delete the file which is greater than 100 MB, then the copy activity succeeds.

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,'

Below is the "source", "source dataset" and "sink" in the copy activity
165670-image.png
165549-image.png
165597-image.png

How to resolve this error? Can someone please help me.

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

Accepted answer
  1. svijay-MSFT 5,201 Reputation points Microsoft Employee
    2022-01-17T18:19:32.77+00:00

    Hello @Pashikanti Ranadheer ,

    Thanks for the question and using MS Q&A platform.

    For the source Dataset ( ScreenShot 2) , you could set the MaxRowSize and see whether this resolves your issue.

    You could click on the code view of the source dataset and add the property MaxRowSize and set it to a number greater 100 MB in bytes - for instance, to set 200 MB

    "MaxRowSize" :  209715200   
    

    165794-image.png

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators

0 additional answers

Sort by: Most helpful