Knowledge Document: CM SDK program error "...HP.HPTRIM.SDK.dll-Unable to load tsjApi.dll"

0 Likes

When running a batch job or a custom program that involves using CM SDK, an error pops up: "Information,EDRMS Content Manager Connection : HP.HPTRIM.SDK.dll - Unable to load tsjApi.dll..."

Situation

A program using CM SDK methods to talk to a Content Manager Workgroup server doesn't only require HP.HPTRIM.SDK.dll; it also requires other Content Manager dll's, like all the tsj*.dll files (from a CM Client setup directory).

When running the CM SDK program in the absence ot the tsj*.dll files,  the following error will be thrown and the program will fail to run:

Content Manager Connection : HP.HPTRIM.SDK.dll - Unable to load tsjApi.dll. Additional information follows.
TrimApplication.TrimBinariesLoadPath: <not set>
Trying assembly directory. Search path: D:\XXXXX\tsjApi.dll . Error: The specified module could not be found
Trying parent directories of assembly directory. Search path: D:\TXXXXX\tsjApi.dll . Error: The specified module could not be found
Trying parent directories of assembly directory. Search path: D:\XXXXX\tsjApi.dll . Error: The specified module could not be found
Trying parent directories of assembly directory. Search path: D:\XXXXX\tsjApi.dll . Error: The specified module could not be found
Trying parent directories of assembly directory. Search path: D:\XXXXX\tsjApi.dll . Error: The specified module could not be found
Trying parent directories of assembly directory. Search path: D:\tsjApi.dll . File does not exist.
Trying PATH entries. Search path: C:\WINDOWS\tsjApi.dll . Error: The specified module could not be found.

Cause

The CM Dll's (tsj*.dll files and HP.HPTRIM.SDK.DLL) needs to appear together under the same directory. When initializing the application, the SDK will attempt to load the required native code libraries. If the library files are not present the above error will be thrown.

Find resolution on support portal here


Caroline Oest

Micro Focus Customer Experience Marketing

If you find this post useful, give it a ‘Like’ or use ‘Verify Answer’

Labels:

Knowledge Docs
Comment List
Anonymous
Related Discussions
Recommended