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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Update some attribute with a XML Task

ptc-4715649
1-Visitor

Update some attribute with a XML Task

Hi everybody.

I'm trying to create a XML Task in Windchill to update an attribute in a Part.

This XML should receive the PLM code and the attribute, the ERP code, perform a check out, update the attribute, and do a check in.

I can do the check out / checkwithwebject, but the Update-Object webject keeps returning an error. The webject is as follows:



<ie:webject name="Update-Object" type="ACT">
<ie:param name="FIELD" data="&lt;a" href="mailto:codigo_erp=${@FORM[]CODERP[]}">codigo_erp=${@FORM[]CODERP[]}"/>
<ie:param name="GROUP_OUT" data="UpdtPart"/">
<ie:param name="INSTANCE" data="${properties[0]wt.federation.ie.VMName[0]}"/">
<ie:param name="MODIFICATION" data="REPLACE"/">
<ie:param name="OBJECT_REF" data="${checkout[0]obid[0]}"/">
</ie:webject>



The error I got is this:


<exception name="exception" type="Exception" status="-1">
<wc:message>java.lang.ClassNotFoundException: Nested exception is: java.lang.ClassNotFoundException; nested exception is: wt.util.WTException: java.lang.ClassNotFoundException: Nested exception is: java.lang.ClassNotFoundException</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>

TheObject Reference thatI'm passing is the obid of the Part I'm editing.


What's wrong with my webject?

Thanks in advance.



Renato Mádisson




Configuration Analyst at Mectron Odebrecht
2 REPLIES 2

I’ve discovered the problem. In the JNDI Adapter Guide the webject name is set as “Update-Object”, singular. The correct use is the plural: “Update-Object

Hello, Renato,


I will follow up on this and ensure that the documentation is updated.


Thankyou,


Jane


Jane Zupfer
VP, Enterprise Products Publications

T
E -

Announcements


Top Tags