SAP Knowledge Base Article - Public

3807562 - Error "Data action exceeds the maximum amount of iterations while running on version" when running a data action with specific filters, SAP Analytics Cloud

Symptom

  • An error occurs when running a data action from a story after applying filters including a dimension with "# (Unassigned)" member assigned.
  • Error message: Data action exceeds the maximum amount of iterations while running on version.

Environment

  • SAP Analytics Cloud
  • Data Actions

Reproducing the Issue

  1. Open a story.
  2. Apply filters: for one of the dimension, assign the member "# (Unassigned)" and another member.
  3. Run the data action in the Story to do calculation.

Cause

  1. SAC has an internal parameter AF_MAX_NUMBER_OF_ITERATIONS with default value 10,000 assigned to control the iteration limit. This parameter is not visible to customers and can't be adjusted because increasing this safety limit might cause CPU/memory risk. 
  2. Execution on the selected version exceeds the internal iteration limit (AF_MAX_NUMBER_OF_ITERATIONS = 10,000) due to broad Advanced Formulas loop scope (FOR/FOREACH/Repeat) generating too many iterations/records; The causes can include: inclusion of # (Unassigned) in the filter, more booked combinations, or a larger planning area set for the version.

Resolution

  1. Narrow Advanced Formulas calculation scope:
  • Add explicit MEMBERSETs for FOREACH/FOR loops to reduce the iteration space.
  • Explicitly scope source dimensions in RESULTLOOKUP and target dimensions in DATA instead of relying on default scope.

     2.Reduce combinations that inflate iterations:

  • Exclude # (Unassigned) from the filter.
  • Reduce the planning area for the affected version before running the data action.

    3.Decompose the logic:

  • Split acquisition and depreciation into separate, tighter steps, and orchestrate via a Multi Action if needed.

      See Also

      refer to: KBA 3792303 - The execution of the data action on version generated too many records

      refer to: KBA 3772605 - Data action failing without any configuration changes

      refer to: KBA 3658925 - SAP Analytics Cloud Data Action Performance: Troubleshooting and Best Practices

      refer to: Estimated Function Scope help

      refer to: Calculation Scope help

      refer to: Upcoming change: Member limit enforcement for data action parameters

      refer to: SAC data action performance statistics and analysis

      Keywords

      data action exceeds maximum iterations, advanced formulas, foreach, for loop, repeat block, calculation scope, estimated function scope, resultlookup scoping, data scoping, too many records, safety belt, AF_MAX_NUMBER_OF_ITERATIONS, unassigned member, planning area, data action monitor , KBA , LOD-ANA-PL-DA , Data Actions , Problem

      Product

      SAP Analytics Cloud all versions