Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Category Upgrade using Content Webservices

Category Upgrade using Content Webservices

Category Upgrade using Content Webservices


We are trying to upgrade the categories in XECM for the old categories and it is not upgrading to the old categories using webservices.Using content server browser can able to upgrade for the old categories also.

When we try to upgrade new categories using webservices and it is upgrading successfully.

Version :16.2.3

I have nt seen any Rest API function call for the category upgrade.

Here is my C# code.Any suggestions or ideas for the category upgrade ?

public void UpgradeCategory(long nodeId, string categoryName)
var node = DocManClient.GetNode(ref DocManAuthen, nodeId);
if (node == null)

if (node.Metadata.AttributeGroups == null)

var categoryInher = DocManClient.GetCategoryInheritance(ref DocManAuthen, nodeId);

if(categoryInher == null)

var lstCategoryInher = categoryInher.ToList<CategoryInheritance>();

foreach (var cat in categoryInher)
var attrGrpDef = DocManClient.GetCategoryDefinition(ref DocManAuthen, cat.CategoryID);

if (attrGrpDef == null)

if (attrGrpDef.DisplayName != categoryName)

var chunOper = DocManClient.UpgradeCategoryItemsContext(ref DocManAuthen, cat.CategoryID,
8, true);

var upgradeInfo = DocManClient.UpgradeCategoryItems(ref DocManAuthen, chunOper);
string msg = string.Format("Upgrade Category,{0},Node Name,{1},Upgraded Count,{2},Skipped,{3}",
categoryName, node.Name, upgradeInfo.UpgradedCount, upgradeInfo.SkippedCount);
catch (Exception e)

Thank you in advance

RE: Category Upgrade using Content Webservices

Are you saying that when you do the Context Things are you seeing any DataID's returned? if you would put Debug on you should be able to see the returned data ids and if they are what that is participating in the XECM containers .Sometimes OT code and modules are written by different teams so if the XECM developers does not allow their containers traversable then it wouldn't work.so check if each of the dataids that are needing upgrade is passing through and what kind of errors you get and report

alternatively you can use a WR and try to upgrade it and see if you have a faster mechanism.

Well, if I called the wrong number, why did you answer the phone?
James Thurber, New Yorker cartoon caption, June 5, 1937
Certified OT Developer,Livelink ECM Champion 2008,Livelink ECM Champion 2010

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close