cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Translate the entire conversation x

Facing issue with Checkout webject InfoEngine task

SM_10840693
4-Participant

Facing issue with Checkout webject InfoEngine task

Hi Team,

 

I am trying to checkout Part using below taks I have created 

<%@page language="java"%>
<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>

<ie:webject name="Get-Properties" type="MGT">
    <ie:param name="ATTRIBUTE" data="wt.federation.ie.VMName"/>
    <ie:param name="GROUP_OUT" data="properties"/>
</ie:webject>

<ie:webject name="Query-Objects" type="OBJ">
    <ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])" />
    <ie:param name="ATTRIBUTE" data="name"/>
    <ie:param name="ATTRIBUTE" data="number"/>
    <ie:param name="GROUP_OUT" data="parts"/>
    <ie:param name="TYPE" data="$(@FORM[]typeOfObj1[])"/>
    <ie:param name="WHERE" data="number='$(@FORM[]number1[])'"/>
</ie:webject>

<ie:webject name="Query-Objects" type="OBJ">
    <ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])" />
    <ie:param name="ATTRIBUTE" data="name"/>
    <ie:param name="ATTRIBUTE" data="number"/>
    <ie:param name="GROUP_OUT" data="document"/>
    <ie:param name="TYPE" data="$(@FORM[]typeOfObj2[])"/>
    <ie:param name="WHERE" data="number='$(@FORM[]number2[])'"/>
</ie:webject>

<ie:webject name="CheckOut-Objects" type="ACT">
    <ie:param name="INSTANCE" data="$(properties[0]wt.federation.ie.VMName[0])" />
    <ie:param name="GROUP_OUT" data="checkedOutParts"/>
    <ie:param name="OBJECT_REF" data="$(parts[]obid[]) "/>
    <ie:param name="TYPE" data="wt.part.WTPart"/>
</ie:webject>

 

When Query object blocks are working I am able to fetch part and document, as I add Checkout part webject it throws below error can you please help

<?xml version="1.0" encoding="UTF-8"?>
<wc:COLLECTION xmlns:wc="http://www.ptc.com/infoengine/1.0">
<Exception NAME="Exception" TYPE="Exception" STATUS="-1">
<wc:MESSAGE>wt.ufid.UfidException: Malformed Windchill Remote Object Identifier
Nested exception is: java.lang.ClassNotFoundException: VR
Nested exception is: wt.ufid.UfidException: Malformed Windchill Remote Object Identifier
Nested exception is: java.lang.ClassNotFoundException: VR; nested exception is:  wt.ufid.UfidException: wt.ufid.UfidException: Malformed Windchill Remote Object Identifier
Nested exception is: java.lang.ClassNotFoundException: VR
Nested exception is: wt.ufid.UfidException: Malformed Windchill Remote Object Identifier
Nested exception is: java.lang.ClassNotFoundException: VR</wc:MESSAGE>
  <wc:INSTANCE>
    <hierarchy>com.infoengine.util.IEException</hierarchy>
    <hierarchy>javax.servlet.jsp.JspException</hierarchy>
    <hierarchy>java.lang.Exception</hierarchy>
    <hierarchy>java.lang.Throwable</hierarchy>
    <hierarchy>java.lang.Object</hierarchy>
  </wc:INSTANCE>
</Exception>
</wc:COLLECTION>

  

3 REPLIES 3
MTH
12-Amethyst
12-Amethyst
(To:SM_10840693)

Hi SM_10840693,

 

The parsing of the info*engine seems to be wrong as it s interpreting the version reference of the part as the object class. The resulting class should be wt.part.WTPart.

Hi @SM_10840693,

 

I wanted to see if you got the help you needed.

If so, please mark the appropriate reply as the Accepted Solution. It will help other members who may have the same question.
Of course, if you have more to share on your issue, please pursue the conversation. 

 

Thanks,
Anurag

I don't know if you have gotten past your issue posted here yet, but the reason you are getting this error is that there is more than one result in your group "parts", therefore $(parts[]obid[]) does not apply for checkout, for you can only use this notation successfully is when there is only one item in your group.

 

I would estimate that you need to first provide proper searching to only give you the one you are interested in, or sort (not included in my reply) the data accordingly and only use the first one in the group with the syntax of $(parts[]obid[0]).

 

If you are interested in the latest part, then a sort for that can be done, if you allow check-out of non-latest or older revisions, you will need to provide a way to get to the correct part iteration.

Announcements
Top Tags