05-22-2022 12:21 AM
Hi, I have a a field trigger script assigned to a status field. When it changes, the script stops an SLA and starts another and these are Time To Assignment and Response SLA respectively. I have one tenant that refuses to keep the changes meaning that it sets the SLAs and then within a second all is reverted. I can clearly see it on the incident page that Response
SLA changes for less then second and goes back to its previous state like it wasn't run in the first place.
When the script is run manually from CLI, everything is fine.
This is how I am setting the SLAs
```
demisto.executeCommand("stopTimer", {"timerField": "timetoassignment"})
demisto.executeCommand('startTimer', {'timerField':'responsesla'})
```
I am not sure if it helps but this tenant is created after the server is upgraded from 6.2.0 to 6.6.0
first state
Response SLA is running for a seconds
changes are reverted
05-23-2022 06:30 PM
Hi @EnesOzdemir, I was able to locate the ticket and I think I understand the issue better now.
Yes, this is limitation of the platform. To prevent a know issue with DB version synchronisation since 2 different versions of the incident are sent to DB at the same time. The limitation was document here - https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-2/cortex-xsoar-admin/incidents/incident-mana....
You will need to de-select the "Run triggered script after incident is modified" option.
05-22-2022 10:23 PM
Hi @EnesOzdemir, Can you see the same results in the warroom? Meaning for each screenshot above there should be corresponding "Incident info and changes" entries.
I've not seen this behaviour before. It might be that another fieldTrigger script is running. You can check by enabling debug logs. If you still cannot find the root cause, I would suggest raising a support request since this might require investigation of the logs. Could you also confirm that the script in ending as a success? Failed fieldTrigger scripts prevent field changes.
05-22-2022 11:19 PM
Hi, thank you for helping me. yes I can see the results in the warroom. I believe the script isn't failing because I don't see any errors. The support told me that this issue is related to product implementation so they sent me here.
05-23-2022 03:16 AM
I think I found the root cause of the problem. It's related to this part of the field. When I uncheck this all the SLAs are working properly.
I had no problem with this feature on version 6.2. As I have said before I am running only the following commands to make sure it isn't my script that's causing the problem.
```
demisto.executeCommand("stopTimer", {"timerField": "timetoassignment"})
demisto.executeCommand('startTimer', {'timerField':'responsesla'})
```
05-23-2022 06:30 PM
Hi @EnesOzdemir, I was able to locate the ticket and I think I understand the issue better now.
Yes, this is limitation of the platform. To prevent a know issue with DB version synchronisation since 2 different versions of the incident are sent to DB at the same time. The limitation was document here - https://docs.paloaltonetworks.com/cortex/cortex-xsoar/6-2/cortex-xsoar-admin/incidents/incident-mana....
You will need to de-select the "Run triggered script after incident is modified" option.
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!