Prevent execution of logic hooks of related module when we create record from subpanel.

Hello,

I have a module "Work Product" in which I have subpanels of 'Work Product Deliverable','Errors','Work Product Enrollment' and some other module. I have linked 1351 records of Error in Work Product and 6485 recors of Work Product Enrollment. As you can see in the screenshot.


Now when i am creating the record of Work Product Deliverable from subpanel plus button, All the logic hook of Errors and WPE module triggered for all the 6485 and 1351 record, because of this I am getting this error

 

I am getting this error because logic hook is taking some time and because of lots of records it cannot save the record and showing this timeout error. 

Parents
  • Hello Prakash,

    Do you have any calculated fields on these modules with a related() function feeding from 'Work Product Deliverable' module? 

    If yes, that would explain this behavior as all the related records will be re-saved triggering your logic hooks. 

    You can prevent the related calculations to be triggered with this setting, but please make sure if this would make sense for your instance as it will affect all modules

  • I also would suggest to ensure the logichook does not run twice. 

    Rodrigo Manara

    Sr. Developer

Reply Children
No Data