I found a strange bug that occurs in one of my scripts. When I load the form normally, FileServices.getWebAppRootFilePath() returns the correct path of my eBase installation (which I verify by printing to the eBase console). When I run the form using ebasetrigger to trigger a scheduled task, FileServices.getWebAppRootFilePath() returns a null value. Whats even stranger is that another schedule task that calls the same function does work correctly.
I restarted the eBase server and this problem still persists.
Update: I found the source of the problem which I don't see documented anywhere. In the scheduler, Synchronous execution was not checked for this scheduled task but is for the other task that is working correctly. I can verify that when Synchronous execution is not checked, FileServices.getWebAppRootFilePath() will return null. When you check it again, it does correctly return the full file path.
It might be a good idea to reflect this in the documentation on this page:
ufs/doc/scheduler.htm#_Synchronous_and_asynchronous
FileServices.getWebAppRootFilePath() returns null
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 649
- Joined: Mon Dec 09, 2013 6:37 pm
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
Who is online
Users browsing this forum: No registered users and 25 guests