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!

Physical Item - pouniqueID

Status
Not open for further replies.

smallredville

Programmer
Aug 18, 2008
115
SG
Hi All,

Recently I created a batch program to create multiple copies of physical item successfully (For example : with => request.add("pouniqueID","");).

Now, there is a requirement that the uniqueID needs to be manually created - based on what the user specifies (For example : with => request.add("pouniqueID","test1001").

With the manually specified uniqueID and number of copies greater than 1 (request.add("poNumCopies",2);), LAPI gave me the following error:

Status Code: 101103
Api Error: Unique ID already in use
Error Message: Unique ID already in use
Status Message: Error Creating node

Only when I changed the request.add("poNumCopies",2); to request.add("poNumCopies",1); --> then it worked fine.

May I know is there any way for me to define my own uniqueID for multiple copies?

Any trick in LAPI to achieve that?

Hope anyone who knows about it, can share with me about it =)


Many thanks in advance,
smallredville





 
I may be wrong but uniqueid is what it means it is a unique thing in the livelink database.Physitems cannot work completely on dataid .When I wrote a program to specify my uniqueid,using OI,at every failed attempt we would correct and run the unique id(after being assured that the string I was putting in uniqueid was unique in that sytem database).Uniqueid is a concept in PO where let's say they are storing stuff in IronMountain you want some co-relation with the livelink dataid that looks like 12345 in a really descriptive way that librarian prefer with thir nomenclature.
Ask David Caughell at the OT KB whether or not their implementation will allow re-use of a uniqueid as I said I do not completely know about this and there may be a flag that they built to allow not making it unique in the table.

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
 
Many thanks Appnair for the reply and share of knowledge =)

Appreciate that
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top