ERROR: Maximum Time reached of 15000 secs

ERROR: Maximum Time reached of 15000 secs

Hi 

When executing a custom function in zoho books. For sometimes it fails to execute and shows the error  ERROR: Maximum Time reached of 15000 secs

What is the reason and how can I handle this? Because while automating it causes a inconsistent state. Need help asap.