Solved

Mutating error on Custom event

  • 24 November 2022
  • 1 reply
  • 470 views

Userlevel 4
Badge +9

I get the below error when the below custom even gets executed. Any idea why this is happening ?

 

Mutating Error

 

 

Custom event Code

 

icon

Best answer by dsj 24 November 2022, 07:20

View original

1 reply

Userlevel 7
Badge +20

Hi @geminirajesh ,

Solution for table mutating error can be different based on the event setup and your requirement.

 

If your event is based on PART_CATALOG_CFT table, then you can’t modify the table like this. In that case, you may use a workaround to send the update in a background job.

See below topic for more information

How to create a defered job to execute .modify__() ? | IFS Community

 

This blog post will also give you more details on this topic: Tips to avoid mutating table error in IFS event actions

 

Hope it helps!

Damith

 

 

 

Reply