Scheduled task to export all objects out of Ebase

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

neilnewman
Ebase User
Posts: 201
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Scheduled task to export all objects out of Ebase

#1

Postby neilnewman » Fri Mar 14, 2014 3:40 pm

I am trying to setup a scheduled task to auto export everything from my Ebase installation, but keep hitting a permission error.
Has anyone else seen this type of issue and found a way around it, I have set the Export directory in the task to be the same as the value in my UFSSetup.properties file for the Ufs.export.location variable.

The program being called within the scheduled task is: com.ebasetech.ufs.migration.ExportTask

Log from when the scheduled task job is run:
14/03/2014 16:06:09 Execution started for scheduled task id 1001
14/03/2014 16:06:09 Export all forms on a Friday, program com.ebasetech.ufs.migration.ExportTask
14/03/2014 16:06:09 Export directory: D:\Ebase\dbc-ebase-live\UfsServer\transport_files
14/03/2014 16:06:09 Exclude security : false
14/03/2014 16:06:09 Ignore All errors : true
14/03/2014 16:06:09 Exporting into location that has previous export: D:\Ebase\dbc-ebase-live\UfsServer\transport_files
14/03/2014 16:06:09 Exporting 2 Elements..
14/03/2014 16:06:09 Export access to designer_sysadmin Designer Parameters denied
14/03/2014 16:06:09 Error occurred during scheduled task execution:
14/03/2014 16:06:09 Export access to designer_sysadmin Designer Parameters denied
14/03/2014 16:06:09 com.ebasetech.ufs.batch.ScheduledTaskAbortException
14/03/2014 16:06:09 com.ebasetech.ufs.migration.ExportTask.execute(ExportTask.java:95)
14/03/2014 16:06:09 com.ebasetech.ufs.batch.ExecutableTask.run(ExecutableTask.java:163)
14/03/2014 16:06:09 java.lang.Thread.run(Unknown Source)
14/03/2014 16:06:09 Execution completed with return code 8
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Fri Mar 14, 2014 4:16 pm

Which version of Ebase are you using? This sounds very like a problem that was fixed in V4.3.4.
0 x

neilnewman
Ebase User
Posts: 201
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

Scheduled task to export all objects out of Ebase

#3

Postby neilnewman » Mon Mar 17, 2014 8:24 am

We are running with version 4.5.1 Build 20131115
0 x

Hovik
Moderator
Moderator
Posts: 184
Joined: Tue Sep 11, 2007 8:58 am

#4

Postby Hovik » Mon Mar 17, 2014 11:12 am

A scheduled task may be run in one of 2 ways:
1. At a pre-defined date/time, possibly recurring. In this mode, there is no user involved.
2. By the ebasetrigger command. In this mode, userid/password can be provided.

The scheduled task export only works when it is triggered and therefore has a userid.
The userid must have access to all elements, for example by having the SUPER_USER role assigned to it.

"Ebase Scheduler" part of the online documentation covers this in detail.

If your task is being executed as a date/time scheduled job. please start it using the trigger instead.
0 x

neilnewman
Ebase User
Posts: 201
Joined: Fri Dec 20, 2013 1:29 pm
Location: Dartford Borough Council
Contact:

#5

Postby neilnewman » Tue Mar 18, 2014 9:05 am

thanks for the help, it was not how I imagined it to work:
A scheduled task within Ebase being called from a Windows scheduled task, however it all appears to work.
Thanks again
0 x


Who is online

Users browsing this forum: No registered users and 24 guests