Skip to main content

I tried reducing the flow steps by combining few clean steps together, but that doesn't solve the issue. Also I find no answer available online for this issue. can someone help guiding me here to resolve this issue?

6 answers
  1. Feb 12, 2024, 6:18 AM

    Hi @GARVIT PANT​ ,

    I found the solution to this problem.

    It turns out that a pivot in my Prep flow was generating 600 fields. MongoDB operates a two-stage combination of "$unionWith + $project" for the pivot operation, effectively doubling the number of stages to 1200. This exceeds MongoDB's pipeline stage limit of 1000, resulting in the error.

     

    Solution:

    1. Tried splitting the 501 fields into two (300+300) - Excluded and included the respective fields at the column level.
    2. Pivoted them separately
    3. UNION'ed them at the later stage.
0/9000