08-18-2015 06:03 AM
We are having an auto-foldering problem that I don't see any way to resolve. We are using the Java Unity API on OnBase 15, but we saw the same issue on version 13 as well.
We have a process that updates the trigger keyword for auto-foldering. If the folder exists for the new value, all is well and the document moves. But if the folder does not exist, the document is in the old folder unless we manually re-index.
The behavior is the same as what we see through the Unity Client. If we re-keyword, the document does not move, but re-indexing moves it. The problem is, re-indexing is a manual process that takes a long time to run since we have many multiple thousands of documents and are adding more daily.
I tried using the CreateReindexProperties() call to set this up. This was suggested by Justin Carlson and I showed Nevin my code at TechQuest. But the problem is, when I call CreateReindexProperties(), I get an exception because I am not changing the Document Type. I don't want to change the Document Type, I just want to jog OnBase to create the new folder and relocate the document.
Is there some other call I can make that would force the document into its correct folder location?
I know there are the new folder APIs that I can use to see what folder the document is in, but I am reluctant to write code to manually re-folder the document since our business people can change the foldering rules as they see fit and I don't want my code to break if/when they do so.
Please help us resolve this issue.
08-20-2015 01:37 PM
EDIT: Correction of Information
Hi Joe
Re-Indexing the Document will allow the Auto-Foldering of a Document. Since there is a check to ensure that the same DocumentType is not being Re-Indexed to, you will actually need to perform this action to a Temp DocumentType (Skipping Auto-Foldering), and then Re-Index a second time to the correct DocumentType. This is the major caveat of performing this update with the Re-Index method.
A second option would be much easier since only the Keyword Information is being modified. Through the KeywordModification Class, the keyword that triggers the Auto-Foldering can be modified. This will cause the folder structure to be modified within the same method. I have tested this scenario back to the latest version of OnBase 12. This would be from utilizing the UpdateKeyword Method. Examples of this method can be found throughout the SDK, as well as in the Unity API Sample Application.
08-18-2015 07:26 AM
08-20-2015 01:37 PM
EDIT: Correction of Information
Hi Joe
Re-Indexing the Document will allow the Auto-Foldering of a Document. Since there is a check to ensure that the same DocumentType is not being Re-Indexed to, you will actually need to perform this action to a Temp DocumentType (Skipping Auto-Foldering), and then Re-Index a second time to the correct DocumentType. This is the major caveat of performing this update with the Re-Index method.
A second option would be much easier since only the Keyword Information is being modified. Through the KeywordModification Class, the keyword that triggers the Auto-Foldering can be modified. This will cause the folder structure to be modified within the same method. I have tested this scenario back to the latest version of OnBase 12. This would be from utilizing the UpdateKeyword Method. Examples of this method can be found throughout the SDK, as well as in the Unity API Sample Application.
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.