What is the largest Invoke Code activity you have ever made? Is there a limit to how many lines of code you can slip into this activity before it starts breaking Studio?
Thanks
What is the largest Invoke Code activity you have ever made? Is there a limit to how many lines of code you can slip into this activity before it starts breaking Studio?
Thanks
Hi @edevries
To answer your question, you can technically paste hundreds or even thousands of lines into an Invoke Code block, there is no strict limit. However, once you get into the few-hundred-lines range (~300–500+), you may start seeing:
So the issue isn’t a strict system limit — it’s maintainability and stability.
Instead of growing a massive Invoke Code:
Invoke Workflow File insteadThe largest one I ever made had 150 lines of code. But I soon optimized it have 3 separate “Invoke Code” activities that achieved the same goal.
Hope this helps. Happy coding ![]()
I appreciate the input. Stability, however, is not a part of the solution I have planned.
Its a strange question to me, but as I say often. Don’t use Invoke Code anymore, there are coded workflows and coded source files.
You can build everything you need in classes and call the function, or use a coded workflow and call it as a workflow. Invoke Code is really not needed.
I have stuff with tens of thousands of lines using coded source files.
Agreed @Jon_Smith
So what exactly do you have planned?
@edevries
Nothing stable apparently
![]()
were you able to test this out and max out the number of lines