Maximum recursion depth exceeded

Hi, when save data multiple records insert in database so that how can control it please give me sugession ,Thank in Advance

@srinu

This Type of Error getting on Production Setup, not on local Setup
So Before using of Recursion method in development import following methods in your python file
import sys
and call the following method before calling the recursion method
sys.setrecursionlimit(100000)
Note :- This is not a proper solution to increase the recursion limit but if you’re stuck on it, use this way out

Thank you for your response ,but i am used server side script ,to add new documents,for payroll entry it has been add so many times ,it was come ,so that how can resolve it,i think script call multiple time ,i can not find where it is control. please give me suggesions