You need to sign in to do that
Don't have an account?
Michele Toscano
Execute Anonymous Error
I'm receiving an error on Line: 1, Column 1
System.StringException: Unexpected end of expression.
System.schedule('IMSync_At00Minutes', '0 0***?',new IncidentManagerSync());
System.schedule('IMSync_At15Minutes', '0 15***?',new IncidentManagerSync());
System.schedule('IMSync_At30Minutes', '0 30***?',new IncidentManagerSync());
System.schedule('IMSync_At45Minutes', '0 45***?',new IncidentManagerSync());
Can someone tell me what I'm doing wrong? I'm trying to execute a process every 15 minutes. Did I get the syntax wrong somewhere?
System.StringException: Unexpected end of expression.
System.schedule('IMSync_At00Minutes', '0 0***?',new IncidentManagerSync());
System.schedule('IMSync_At15Minutes', '0 15***?',new IncidentManagerSync());
System.schedule('IMSync_At30Minutes', '0 30***?',new IncidentManagerSync());
System.schedule('IMSync_At45Minutes', '0 45***?',new IncidentManagerSync());
Can someone tell me what I'm doing wrong? I'm trying to execute a process every 15 minutes. Did I get the syntax wrong somewhere?
Hi Michele,
Please execute your code as below format.
System.schedule('IMSync_At00Minutes', '0 0 * * * ?',new IncidentManagerSync());
System.schedule('IMSync_At15Minutes', '0 15 * * * ?',new IncidentManagerSync());
System.schedule('IMSync_At30Minutes', '0 30 * * * ?',new IncidentManagerSync());
System.schedule('IMSync_At45Minutes', '0 45 * * * ?',new IncidentManagerSync());
Thanks,
Benazir.
All Answers
Can you please check if the second argument is formatted correctly?
Here is a sample code.
Also, you may have to receive the job ID into a string, even if you are not gonna use it.
Hi Michele,
Please execute your code as below format.
System.schedule('IMSync_At00Minutes', '0 0 * * * ?',new IncidentManagerSync());
System.schedule('IMSync_At15Minutes', '0 15 * * * ?',new IncidentManagerSync());
System.schedule('IMSync_At30Minutes', '0 30 * * * ?',new IncidentManagerSync());
System.schedule('IMSync_At45Minutes', '0 45 * * * ?',new IncidentManagerSync());
Thanks,
Benazir.