Skip to main content
8-Gravel
April 16, 2024
Question

OIR CREATE, MODIFY ERROR

  • April 16, 2024
  • 1 reply
  • 1395 views

hello. I want to modify EPMDocument OIR. However, an error occurs when creating or editing something.


INFO: wt.system.err wcadmin - MPInputStream object body top boundary mismatch
INFO: wt.system.err wcadmin - expecting ------WebKitFormBoundaryE1m4lu5jFp1z5kHW
INFO: wt.system.err wcadmin - found
ERROR: com.ptc.jca.mvc.controllers.ActionController wcadmin - java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

---- Omitted below ----


Is there a solution??

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
April 16, 2024

Hi @YJ_10068754 

Yes, you need to correct your modified XML. 

I guess that something is wrong in your XML file. 

 

Try to export the OOTB OIR and load it back. 

If it does not fail, your modification is bad formatted. 

 

PS> share your OIR xml definition

PetrrH

8-Gravel
April 16, 2024

After checking many things, it doesn't seem to be a problem with the OIR file. The error also occurs when exporting and reinserting the current OIR. Also, an error occurs when exporting and inserting the basic OOTB OIR file. Is there somewhere that manages permissions for creating and editing OIRs? While looking for technical documentation, I heard that it might be an ACL-related issue. The contents of the OIR are attached below.

-----------------------------------
<AttributeValues objType="wt.epm.EPMDocument">

<!-- set the folder -->
<AttrValue id="folder.id" algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm">
<Arg>/Default</Arg>
</AttrValue>

<!-- set the lifecycle -->
<AttrValue id="lifeCycle.id" algorithm="com.ptc.core.foundation.lifecycle.server.impl.LifeCycleTemplateAttributeAlgorithm"
ignore="false"
force="false"
final="false">
<Arg>Basic</Arg>
</AttrValue>

<!-- set the team template -->
<AttrValue id="teamTemplate.id" algorithm="com.ptc.core.foundation.team.server.impl.TeamTemplateAttributeAlgorithm">
<Arg>Default</Arg>
</AttrValue>

<!-- set the number to a generated number -->
<AttrValue id="number"
algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator"
ignore="false"
force="false"
final="false">
<Arg>{GEN:wt.enterprise.SequenceGenerator:EPM_seq:10:0}</Arg>
</AttrValue>

<!-- set the version info to a generated version info -->
<AttrValue id="MBA|versionInfo" algorithm="com.ptc.core.foundation.vc.server.impl.VersionInfoGenerator">
<Arg>wt.series.HarvardSeries</Arg>
</AttrValue>

<!-- specify AttrConstraint tag -->
<AttrConstraint id="lifeCycle.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="lifeCycle" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="folder.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue"/>
</AttrConstraint>
<AttrConstraint id="number" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="teamTemplate.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="teamTemplate" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerAssignedConstraint"/>
<Value algorithm="com.ptc.core.rule.server.impl.GetImmutableConstraint"/>
</AttrConstraint>
<AttrConstraint id="organization.id" algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
<Value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue">
<Value algorithm="com.ptc.windchill.enterprise.org.server.impl.OwningOrgDefaultAlgorithm"/>
</Value>
</AttrConstraint>
</AttributeValues>

 

thank you. @HelesicPetr 

HelesicPetr
22-Sapphire II
22-Sapphire II
April 17, 2024

Hi @YJ_10068754 

If it is ACL issue, so put your account to the administrator role.

It the issue is solved, yes it is ACL issue.

PetrH