Exception Rule: Execute on existing data functionality is not working

sath
Tera Expert

Hi,

We have configured an exception rule as shown below and checked "Execute on existing data".

Screenshot 2024-03-28 at 7.13.55 PM.png

But the VIs which were created before 3/28 were not deferred and the VIs created after 3/28 are getting deferred.

 

The scheduled job 'Associate existing VIs with Auto Exception Rule' is configured to run everyday at 12.30pm and I see under syslog_transactions that this job is running at 12.30pm, but when I click on 'Execute now' button, I don't see anything on logs, it looks like manual execution of this scheduled job is not working at all.

 

If we need to defer all the VIs that were created(which matches the condition defined on exception rule), do we need to set 'valid from' date to the date when VI ingestion was started on the instance? Please advise.

6 REPLIES 6

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @sath 

Copy the script from Schedule Job and run it from background script once.

 

Please mark the answer as helpful and correct if helped.

Kind Regards,

Ravi Chandra.

Hi @Ravi Chandra_K , After I ran the scheduled job script from background script, looks like the VIs that matched with condition in exception rule were set to Deferred.

Is there any reason why it isn't working when I run the scheduled job manually, but working from the background script?

Also, we need to do this on our prod instance, should i run the job from background script there as well?

Hello @sath 

Check if your scheduled job is running or not. May be an issue with "Run as" account. I think by default, the job is using "VR.System" account. Check if this account is active or it has proper permissions.

 

Hope this helps.

Hello Madhav,

I have changed 'Run as' from VR.system to mine since I have admin rights and I still don't see existing VIs getting deferred. 

Also, I ran the scheduled job script in background job on our dev instance and that updated the old VIs and the same is not working on Test instance.

When I checked the documentation on exception rules, it says if 'Execute on existing data' is checked, it will defer the VIs that were created from 'Valid from' date. If we need to defer old VIs, do we need to set 'valid from' date to the past date?