Maximum number of deluge statements that can be executed in one custom function is 5000. Now if you have a loop that has 10 statements inside it, and the loop runs 500 times, that means all of the 5000 statements will be exhausted. So your custom function may not run properly if you have more code in it. You will need to optimize the code or break it into multiple functions to overcome this limitation.
Webner Solutions is a Software Development company focused on developing CRM apps (Salesforce, Zoho), LMS Apps (Moodle/Totara), Websites and Mobile apps. If you need Zoho customization, App development or any other software development assistance please contact us at email@example.com