cancel
Showing results for 
Search instead for 
Did you mean: 

OnBase 18. Error when Unity script AddKeyword to the multi page document

Gregory_Moldavs
Champ on-the-rise
Champ on-the-rise

OnBase18 Task use Unity Project which add/update one Keyword.

keyModifier.AddKeyword(kName, kValue);

or

keyModifier.UpdateKeyword(addKeyword, newKeyword);

It is working when tif document has only one page.

Not working when tif document has several pages. 

Error: "Keywords can only be modified on an active document".

Old VBScript is working OK.

Any solution?

1 ACCEPTED ANSWER

Gregory_Moldavs
Champ on-the-rise
Champ on-the-rise

Problem solved.

It was on test environment. When I load new document for testing, it works.

 

View answer in original post

1 REPLY 1

Gregory_Moldavs
Champ on-the-rise
Champ on-the-rise

Problem solved.

It was on test environment. When I load new document for testing, it works.