Reading File size issue greater than 4 MB

Ramsekar Chandrasegara sastry 1 Reputation point
2021-06-14T13:45:20.133+00:00

When I use a lookup activity to read a csv file which is 6MB size file, the pipeline fails throwing error the size of lookup activity results exceeds the limitation 4194304. Could you please suggest how to overcome this issue.

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
10,564 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KranthiPakala-MSFT 46,462 Reputation points Microsoft Employee
    2021-06-14T19:01:40.147+00:00

    Hi @Ramsekar Chandrasegara sastry ,

    Welcome to Microsoft Q&A forum and thanks for the ask.

    The issue you are seeing is because of the limitation by design.
    Here are lookup activity limitations:

    • The Lookup activity can return up to 5000 rows; if the result set contains more records, the first 5000 rows will be returned.
    • The Lookup activity output supports up to 4 MB in size, activity will fail if the size exceeds the limit.
    • The longest duration for Lookup activity before timeout is 24 hours.
    • When you use query or stored procedure to lookup data, make sure to return one and exact one result set. Otherwise, Lookup activity fails.

    As a workaround you could try breaking the source file to smaller files (<4 MB) which would help avoid this issue.

    Hope this helps. Do let us know how it goes.

    ----------

    Please don’t forget to Accept Answer and Up-Vote wherever the information provided helps you, this can be beneficial to other community members.


Your answer

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