executeNow() function is not working in installed scoped application, version Madrid

amitsrivastava
Mega Expert

Hi,

Instance version- Madrid.

We have developed a Scoped application in Dev instance and have used "gs.executeNow()" function in a script to execute the schedule job and it's working fine there, however when we installed this scoped application to aTest instance the same function is not working.

Please help me out to fix this issue.

 

Thanks,

Amit Srivastava

1 ACCEPTED SOLUTION

amitsrivastava
Mega Expert

Hi All,

Thanks for your time.

 

We have rectified this issue, The root cause of this issue was missing records in “Application Cross-Scope Access (sys_scope_privilege)” table for “scheduled_import_set” table, we allowed the read access from our scoped application to Global and it worked.

 

 

Thanks,

Amit Srivastava

 

View solution in original post

8 REPLIES 8

asifnoor
Kilo Patron

Call like below

gs.executeNow(gliderecord job);

Ensure that this job and the script which is calling both presents in the same application scope. 

And can you let me know what is the error you are facing?

Thanks asifnoor for the reply!

Yes,I'm gliding the schedule import set table and calling like you mentioned, it's working fine on the dev instance where we have developed our scoped application.

It's not working on test instance where we have moved(installed) this application.

 

 

Thanks,

Amit Srivastava

Hi,

When you say, its not working, are you getting any error or is the scheduled job itself not executing?

Can you click on Execute Now and check once if its working or not. Check the system logs as well and check.

Also, check if there are any conditions with the time that might be not meeting the criteria.

reginabautista
Kilo Sage
Hi can you check if the scheduled job is existing in test? Scheduled jobs are not captured in an update set so you would need to export from dev then import into test.