Question
I'm getting an error that says 'too many new instances created: 503". I'm doing a lot of lookups in this logic element so I think this has something to do with it.
Answer
503 is the number of instances created. The number comes from the application XML config file:
<formulaEngine> <script> <maxInstances>500</maxInstances> <timeoutInSec>5</timeoutInSec> <findMaxResults>200</findMaxResults> </script> </formulaEngine>
In a shared instance we need to limit the resource usage in a formula. The limit is per script, i.e. formula element, so as a workaround, try to spread out the logic between more elements.
See also:
Change in the “too many new instances” behavior introduced in Hurricane 9.1.0 (and reverted in 9.1.3)