Updating Attributes once AddDocument adds document successfully
The following error is occuring when I'm updating the attributes for a document:Message: Error setting the category or attributes for this nodeError Message: Version number must match the existing category version number being updated- How do I get the category ID for a document?- How do I get the latest version of the category?Any help in this regard will be greatly appreciated.Thanks,David DrostFujitsu Consulting Fredericton, NB, CanadaSee Code Below:ConvLL_ValueSetList lCategories ConvLL_ValueAlloc lDocInfo lDocID = ConvLL_AssocGetInteger(lAddDocInfo_IN, "ID") lDocInfo = GetDocInfo(lDocID) 'lStatus = LL_ListObjectCategoryIDs(lSession_IN, lDocInfo, lCategories) lCatVersion = CategoryVersionGet(lSession_IN, 4394) ConvLL_ValueSetList lAttrValues ConvLL_ValueSetLength lAttrValues, 1 ConvLL_ListSetInteger lAttrValues, 0, CLng(sSIN_IN) ConvLL_AttrSetValues lSession_IN, lCatVersion, "SIN", LL_ATTR_DATAVALUES, 0, lAttrValues 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "SIN", sSIN_IN) 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "PIBA ID", sPIBAId_IN) 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "Last Name", sLastName_IN) 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "First Name", sFirstName_IN) 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "Document Year", sDocumentYear_IN) 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "Related PDF Annotation File", sRelatedPDFFIle_IN) 'lStatus = LL_ValueSetFieldValue(lAttributeInfo, "Scan Station", sScanStation_IN) 'lType = ConvLL_AssocGetInteger(lVersionInfo_IN, "Type") lStatus = LL_SetObjectAttributesEx(lSession_IN, lDocInfo, lCatVersion)