Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Category Version number not maching 1

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
Hi All,

I encountered an error as shown below after making adding a new attribute in the category:

Status Code: 101103
Api Error:
Error Message: Version number must match the existing category version number being updated.
Status Message: Error Creating node

The above error is resolved as long as I clicked Upgrade button manually in the categories.

My question is can the upgrade be done automatically with LAPI?

many thanks in advance =)

smallredville
 
yes the command to upgrade the node category is available
public int UpgradeObjectCategory(
LLValue objID,
LLValue catID,
LLValue catVersion,
LLValue upgradeInfo)

Since I have done this the psuedo code should be done like almost this

Got an error.
Should get the current version of the category object
Is anything in the new category the designers made mandatory?
If yes we have to provide a value

Sorry cannot share the code because i wrote it in oscript.
I think your problem is stemming from probably this

There is a folder id 25000 with a category objid=1234 with version 9.Somebody in your or decides to change 1234 and probably now it is in its 11 th version.They should either upgrade objects from the category menu or from the folder.Thease are standard livelink sysadmin chores.

Your code may not be explicitly setting categories but are forced to inherit .So the actio does not complete.
else let's populate whatever the creation command gave us.


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
 
Thanks Appnair for the clear reply.

Appreciate that very much =)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top