Hi Gordon,
Thanks for this. The extra info from the trace is revealing but only so much.
It starts with:
... keit_daemon 3088 TRACE keit_daemon.c 416 Keit_Daemon - Issue method: export
... keit_daemon 3088 TRACE api_misc.c 495 In procs() and in_pattern is NULL
... keit_daemon 3088 TRACE ktuser.c 169 Creating CKTUser 03315020 (AlanEt@datacom.co.nz) for BPObject top
... keit_daemon 3088 WARNING bpobject.c 2396 Sending refcount message to unregistered process domsrvr:02|KmeAAA
... keit_daemon 3088 WARNING bpobject.c 2396 Sending refcount message to unregistered process domsrvr:02|SmeAAA
... keit_daemon 3088 TRACE keit_daemon.c 416 Keit_Daemon - Issue method: got_session
... keit_daemon 3088 TRACE export.c 55 Started class Export_Main_Obj
... keit_daemon 3088 SEVERE_ERROR bpobject.c 5350 Attempt to cast type NIL BPData to long
... keit_daemon 3088 TRACE FileMng.c 432 IsPathExist() - Unable to find path C:/PROGRA~2/CA/SERVIC~1/site/keit/export/package_DEZWTAP02_2018-08-30_01-59-43_0 (No such file or directory (2))
And it looks to me like we have already gone off the rails because the folder name it uses has a suffix of "_0" rather than the id of the Export/Import Template record (which is what it looks like from successful runs in the distant past).
The most conspicuous thing in the rest of the output data is the following:
... keit_daemon 3088 TRACE export.c 1030 build_where() - (ACTIVE_STATE >= 0 AND ACTIVE_STATE <= 99 AND DOC_TYPE_ID = 1 AND REWORK_VER = 0) AND (tenant IS NULL)
I have applied that criteria via pdm_extract commands and our records qualify for everything except the very noticeable "(tenant IS NULL)". We have multi-tenancy enabled, and the Export/Import Template has been created within the same Tenant as the Knowledge Document but we are getting this incorrect result.
By the way I have tried running the export from both within the GUI and via the Command-Line, and get the same results in each case.
Any ideas what is upsetting it?