Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Get 107404 error when try to update an attribute
Cecilia_Qian
In order to update the attribute value of a folder (I know the attribute name), I called the following functions in Java.1. Call GetObjectAttributesEx to get the category version;2. Update the value of an existing attribute:status = attr.AttrSetValues(catVersion, name.toString(), LAPI_ATTRSERVER.ATTR_DATAVALUES, null, newAttrValues);3. update the object:theObjID.add("ID", objectID);status = doc.SetObjectAttributesEx(theObjID, catVersion);But I got 107404 error ("The data type is not compatible." ) for step 3.My questions:(1) Is this the right way to update the value of an attribute?(2) Why did I get the 107404? Please help. Thank you in advance.Regards,Cecilia
Find more posts tagged with
Comments
Cecilia_Qian
I've figured it out myself. To make it work, I wrote a condtional statement to check the input data type before it is passed to the function.Cecilia