05-09-2023 02:23 PM
We have an API that uses the OnBase SDK to perform various document-related functions. It was written using the SDK from OnBase 16. Client recently upgraded to EP5 and we recompiled our API with the libraries from EP5. Not 100% certain of timing but since the upgrade we have encountered a situation where intermittently an error will be thrown when trying to add/update keywords in a MIKG assigned to a doc type. The MIKG *is* correctly assigned to this doc type and we know this because the code works most of the time. However when it stops working the only way to get it to work again is to stop the app pool for our API and restart it. The error that gets thrown is that the MIKG is not assigned to this doc type (when in fact we know that it is). I opened a support case and the response was that this behavior has been seen if UpdateKeyword() is used instead of UpdateMultiInstanceKeywordRecord().
I am wondering if UpdateMultiInstanceKeywordRecord() was added after OnBase 16.
Also when looking at the OnBase SDK site it does mention UpdateMultiInstanceKeywordRecord() but the example code provided on how to add/update/remove keywords does not reference these methods. When I search Community for UpdateMultiInstanceKeywordRecord I get zero results.
A colleague of mine who has completed API certification much more recently than me is looking through his course materials to see if it is mentioned. I no longer have my course materials but I am 95% sure the code provided is the same code used as an example on the OnBase SDK site and does not use UpdateMultiInstanceKeywordRecord().
That was a lot of typing to ask what what method you use to add/update keywords in a MIKG. Thanks!
05-10-2023 04:34 AM
Looking at the SDK it looks like there is a misprint in the article. If you look at the KeywordModifier class
https://sdk.onbase.com/unitySDK/html/3015f1b6-39ed-74d0-e729-90e38a6b21d0.htm
you will see that the methods to add, remove, and update are...
AddKeywordRecord()
https://sdk.onbase.com/unitySDK/html/94a701c7-2cf8-9925-5ff9-c28bbd1b7641.htm
RemoveKeywordRecord()
https://sdk.onbase.com/unitySDK/html/fb3717e2-095f-5c3e-c201-13cb4f7f537d.htm
UpdateKeywordRecord()
https://sdk.onbase.com/unitySDK/html/4fa97968-f823-09f7-54f3-d1ac67c9ee12.htm
05-10-2023 04:51 AM
Thank you for the quick response. Are you saying that UpdateMultiInstanceKeywordRecord() doesn't exist and would not be used?
05-10-2023 05:09 AM
That is correct. The UpdateMultiInstanceKeywordRecord() method is not avaialble. It would seem that the documentation is outdated and the actual method is UpdateKeywordRecord().
05-10-2023 05:15 AM
Would you be able to look at a support case I have open? I can provide the number.
Also do you have any comments on why we are experiencing this intermittent issue I described in my original post?
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.