Select to view content in your preferred language

An error occurred when rendering by the report engine. Maximum call stack size exceeded

1522
7
07-12-2024 12:24 PM
DuncanC
Frequent Contributor

Anyone have any experience with this error message?

I have a survey with a couple repeats.  Everything is fine until there is a lot of items in the repeats and then I get this error and can't output a report.  The number of items allowed before a lot turns into too many seems to be surprisingly low. I have 40 some items in one repeat, and 100 in another, max call stack size exceeded.. If it only has the 40 items in the one repeat that's fine.  Or the 100 in the other.  But I can't output a report with both.

The survey can have the 'too many' items in the repeats, so long as the report template only deals with one repeat it will complete.

I'm working around it, but I'm wondering if anybody has any insight on what exactly upsets it so I can optimize things and avoid that error message as much as possible.

7 Replies
SusanPollard
Occasional Contributor

Was there a solution to this I have the same issue

0 Kudos
DuncanC
Frequent Contributor

No.  I didn't find any further information on this. I never did any better than the workaround I talked about in the original post.  My solution was to move away from trying to use the report templates.  Unless the request is incredibly simple I'd DIY the document generation in python.  That sounds like it should be less efficient but the report templates have wasted enough of my time fighting with them I'm convinced it's actually much faster.

0 Kudos
SusanPollard
Occasional Contributor

Thanks. That was the conclusion I came to too. I see portal Enterprise 11.4 has a report tool for surevy123 in experience builder now, but I am also reluctant to waste more time with it.

0 Kudos
Khanlalaafridi
New Contributor

PicsArt is an amazing tool for creative edits, but unlocking its full potential with premium features makes it even better. If you want access to exclusive filters, effects, and tools, check out  PicsArt Gold Unlocked for the ultimate editing experience!

0 Kudos
phppython
New Contributor

I'm working around it, but I'm wondering if anybody has any insight on what exactly upsets it so I can optimize things and avoid that error message as much as possible. Further check out PICSART FONTS to discover more

0 Kudos
davidson00999
New Contributor

It seems the "max call stack size exceeded" error occurs when there are too many items in the repeats of your survey. To fix this, try breaking up the items into smaller groups or optimizing the report template to handle fewer items at once.

For well-optimized digital platforms, check out Loja Pokémon Super, an online store offering authentic Pokémon TCG products with a seamless experience. Visit: https://lojapokemonsuper.com

0 Kudos
AristleJohn
Emerging Contributor

It sounds like you are hitting a JavaScript call stack limitation when rendering reports with multiple large repeats. This is a common issue when the report engine tries to process deeply nested or extensive data structures all at once. To optimize and avoid this error, you might consider:

  1. Splitting large repeats into smaller chunks within your report template.

  2. Generating separate reports for each repeat and then combining results if needed.

  3. Reducing unnecessary calculations or formatting in the report template that iterate over all items.

  4. Checking for template loops or recursive expressions that may exacerbate stack usage.

By implementing these strategies, you can enhance the performance and stability of video editor like available on www.alight-motion-apk.com , allowing for smoother editing experiences even with complex animations.

0 Kudos