Got this run-time error during a full run of inventory settlement data - "Error executing Code: Overflow in internal run stack.

Troubleshooting Steps:

After some investigation, found out that this was being caused due to circular reference in one of the settlement transaction due to which the container fills up thereby resulting in run-time stack overflow.