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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

wt.folder.FolderException:Object "XXX" must be assigned to a folder while executing infoengine task

vuchekar
9-Granite

wt.folder.FolderException:Object "XXX" must be assigned to a folder while executing infoengine task

Hi All,

 

I am trying to create WTpart by using "Create-Object" webject.

 

When i try to execute this, getting below exception :

(wt.folder.folderResource/5) wt.folder.FolderException:
Object "TOP_PARENT" must be assigned to a folder.

 

Kindly help me to solve this.

 

Regards,

Vivek

 

Here is my task file,

=========================================

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

<%!
static final String[] PART_NAMES={"TOP_PARENT","PARENT_A","PARENT_B","PARENT_C","CHIELD_PARENT_A","CHIELD_PARENT_B","CHIELD_PARENT_C","CHIELD_PARENT_D"};
%>


<ie:webject name="Query-Objects" type="OBJ">
    <ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
    <ie:param name="GROUP_OUT" data="product"/>
    <ie:param name="TYPE" data="wt.pdmlink.PDMLinkProduct"/>
    <ie:param name="WHERE" data="name=PuneProduct"/>
</ie:webject>

<%
for(int i=0;i<PART_NAMES.length;i++){
%>

<ie:webject name="Create-Objects" type="ACT">
    <ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>
    <ie:param name="CONTAINER_REF" data="$(product[]obid[])"/>
    <ie:param name="FIELD" data="folder.id="/>
    <ie:param name="FIELD" data="name=<%=PART_NAMES[i]%>"/>
    <ie:param name="TYPE" data="wt.part.WTPart"/>
</ie:webject>

<%
}
%>

==========================

1 REPLY 1

Hi,

Have you got any solution for this?

Top Tags