03-18-2019 09:09 AM
I have a dummy job created that I can insert into today's schedule and watch run with no issues. When I try to do the same using the sample form in the API Docs area for method JobRun.Insert, I get back a large java exception the only clear information I can derive from which is this:
Caused by exception:java.lang.reflect.InvocationTargetException reason: description:Job(s) start date is not part of compiled schedule.
The values I'm passing in the form are these, just the same as when I add the job in the web interface:
id 872280 startdate 03012019 fromtime 12:00 AM untiltime 11:45 PM params -lrt vars deps usejobtz N
Any thoughts on this would be appreciated--my team sees a lot of potential in the API provided but getting it working is proving to be challenging.
Solved! Go to Solution.
03-19-2019 06:41 AM - edited 03-19-2019 06:53 AM
Update -- It would appear that this is because the API expects the datestamp to be in the form of yyyymmdd and fromtime and untiltime fields expect a timestamp in the form of hhmm in 24h style, rather than the hh:mm AM/PM used in the gui
03-19-2019 06:41 AM - edited 03-19-2019 06:53 AM
Update -- It would appear that this is because the API expects the datestamp to be in the form of yyyymmdd and fromtime and untiltime fields expect a timestamp in the form of hhmm in 24h style, rather than the hh:mm AM/PM used in the gui
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide