unable to get typed reference item in create item in TC-extension

0
Hi Everyone,I am facing an issue while using Create Item in the Teamcenter Extension (Mendix).ScenarioI am trying to create an Item SemiconductorQualification and item revision SemiconductorQualificationrevision.There is a typed reference object: SiteQual (SFD0QualificationFor).This is a typed reference property configured in Teamcenter.However, this attribute/reference is not visible in the Create Item activity mapping.How to update typed referance in mendix while creating a itemObservations:I am able to:Access this attribute in Search Workspace Objectand Access this attribute in Relate Workspace ObjectBut in Create Item, the SiteQual reference does not appear.My RequirementI need to:Create the Item using Create Item At the same time, set/input the SiteQual typed referenceLink it properly with the Workspace ObjectWhen we try to create item For semiconducter object we are getting below error Caused by: com.mendix.modules.microflowengine.MicroflowException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreException: TeamcenterPartialErrorsException: An invalid object instance tag is being used in conjunction with property fnd0Maturity. Unable to create Business Object.And in teamcenter this is not a mandatory field. it is auto assigned but in teamcenter extension it is comming as mandatory field for the type integer, even if we pass the maturity getting same error But in ui it is showing as a string eg: 60-LVMCould you please suggest step by step process to create object of the type semiconductor qualification Here we need create Semiconductor Qualification,In our Teamcenter AWC to create Semiconductor qualification, Qualification for is Mandator field Where This qualification for is typed reference object: SiteQual (SFD0QualificationFor).Can you please Help Us How to create this instance where we are not able to get the typed reference object: SiteQual (SFD0QualificationFor) in {CreateIteam} But we are able to get it in search workspace objectAttached screenshots for refrance of entites :When We are trying to create it without {typed reference object: SiteQual (SFD0QualificationFor)}We are getting this error Where FnD)maturity is a non mandator field and it is auto assigned through attached AP number
asked
2 answers
0

Hi Ashok mukka
The reason you cannot see the typed reference (SFD0QualificationFor) in Create Item is because Teamcenter only exposes properties that exist in the CreateDescriptor of that ItemRevision type. If a property is not part of the CreateDescriptor, the Mendix Teamcenter Extension will not show it in the Create mapping.


1. Create the Semiconductor Qualification Item + Revision normally

Use the Teamcenter Extension → Create Item with Item Revision.

Do not map or pass fnd0Maturity.

[docs.mendix.com]

2. After creation, set the typed reference (SFD0QualificationFor)

Because it is not part of the CreateDescriptor, you must update it after the item revision exists:

Microflow pattern:

  1. Call CreateObject → get newly created Item + Revision.
  2. Add an Update (SetProperties) activity:
    • Create UpdatedPropertiesInput
    • Associate it with the created SemiconductorQualificationRevision
    • Add ValuesInput:
      • Name: SFD0QualificationFor
      • Value: tag of selected SiteQual object
  3. Call SetProperties service.


I hope it helps!


answered
0

This behavior is expected when using the Teamcenter Extension in Mendix.

The Create Item activity does not support setting typed reference properties (such as SiteQual / SFD0QualificationFor) during item creation. Only standard properties exposed by the Teamcenter create input are available in the mapping.

Typed references in Teamcenter are technically relations, not creation attributes. Therefore, they will not appear in the Create Item mapping even though they are visible in Search Workspace Object or Relate Workspace Object activities.

Correct and Supported Implementation

The recommended and working approach is:

  1. Create the Item
    • Use Create Item to create SemiconductorQualification and its revision.
    • Do not attempt to pass the typed reference here.
  2. Retrieve the Typed Reference Object
    • Use Search Workspace Object to fetch the required SiteQual object.
  3. Create the Relation
    • Use Relate Workspace Object
    • Relation: SFD0QualificationFor
    • Primary Object: Newly created SemiconductorQualification
    • Secondary Object: SiteQual

This mirrors how Teamcenter internally handles typed references.

About the fnd0Maturity Error

The error:



An invalid object instance tag is being used in conjunction with property fnd0Maturity

occurs because the required relationship context is missing during object initialization.

Although fnd0Maturity is auto-assigned in Teamcenter UI, the backend validation expects the business object to be correctly related before lifecycle properties are resolved.

Once the typed reference relation is created after item creation, this error is resolved.

  • Typed references are not supported in Create Item mapping.
  • The correct pattern is Create Item → Relate Workspace Object.
  • This is the standard and supported integration approach in Mendix Teamcenter Extension.

This method works reliably in production environments.


answered