Skip to main content
13-Aquamarine
February 22, 2023
Question

I am getting this error while creating wtpart.

  • February 22, 2023
  • 2 replies
  • 1757 views

Vipul_0-1677067223597.png

 

I have also attached oir file. Please provide me with the solution.

 

Thanks in advance 

Vipul gaikwad

 

2 replies

avillanueva
23-Emerald I
23-Emerald I
February 22, 2023

Ok looks like you are making a new WTPart by a composite attribute correct? The addition of "<!--<Arg>{GEN:wt.enterprise.SequenceGenerator:WTPARTID_seq:3:0}</Arg> -->" should make a unique number but you might be limiting yourself. And Type, Subcategory and Object type make up the "3028A" portion? So does that WTPart by that number exist? Check the settings for that sequence to make sure its advancing properly. Be prepared for skips since it will keep moving regardless if there is a successful WTPart created or deleted. If you are ok with that, should work. 

Vipul13-AquamarineAuthor
13-Aquamarine
February 22, 2023

Thanks for the reply.

 

The wtpart by that number does not exists.

 

where can i check for the setting for sequence to make sure its advancing properly?

 

and one more thing in wcadmin i am able to create the wtpart .

 

 

 

 

avillanueva
23-Emerald I
23-Emerald I
February 22, 2023

Here is some information on sequences:

https://blog.toadworld.com/oracle-create-sequence-explained-with-examples#:~:text=An%20Oracle%20Sequence%20is%20a,can%20be%20ascending%20or%20descending.

The one you are using is setup by the install for WTParts. 

Based on the error message, it looks like its pulling a number 0000001501 first which would be the default OOTB OIR rule then trying to renumber it. Can you post the composite rule which merges all OIRs from the different levels. Strange that admin is able to do this but not users.

HelesicPetr
22-Sapphire II
22-Sapphire II
February 22, 2023

Hi @Vipul 

btw IBA parameters are global attributes. 

Do you have own global attributes defined as Type, ObjectType and Subcategory?

 

I usually use  system attributes and the definition example is <Attr id="genericType"/> 

also I use them directly in the number definition I do not use varDeinition.

 

Your attributes does not seem as the global or am I wrong?

 

and another point

your sequence is commented out from xml so the row with unique generated number is ignored.

 

PetrH