<-- Back

Teamcenter Connector does not return updated values in real time after the data changes in Teamcenter

Issue

The Mendix Teamcenter Connector does not return the current value of an object after the value changes in Teamcenter. The Mendix application shows one or more of these symptoms:

  • The request does not run again after the Teamcenter value changes.
  • The request runs, but the returned Teamcenter data is unchanged.
  • The application returns the current value only after the Teamcenter services restart.

In the logs, a search for an item revision returns an older version than a Bill of Materials (BOM) read of the same item. 

Environment

  • Applications hosted in any deployment type

Cause

Teamcenter returns the outdated values. The Teamcenter Connector passes the received values to the application without a change. Three conditions cause the outdated data:

  • Shared server process: By default, the connector shares one Teamcenter server process across all Mendix logins of the same Teamcenter user.
  • Session persistence: The application does not log out of Teamcenter when a user logs out of Mendix. The Teamcenter server process and the stale data in its memory stay active across Mendix logout and login cycles until Teamcenter restarts.
  • No object refresh: The logs do not show refreshObjects calls. This means that the application did not use ExecuteSavedQueriesWithObjectRefresh for the search.

Solution / Workaround

To resolve the issue, complete these steps in the Mendix application:

  • Replace the search action with ExecuteSavedQueriesWithObjectRefresh. This action retrieves the latest object data from Teamcenter.
  • Call the Logout action of the connector when a user logs out of Mendix. This action ends the Teamcenter session correctly.
  • Close the BOM window after each use.
  • Run the request again. Check that the logs show refreshObjects calls and that the application returns the current Teamcenter values.

Internal information related

  • 292150
  • C07V9JC0NCE/p1794463108253789

Additional information

Have more questions? Submit a request

0 Comments

Article is closed for comments.

To provide feedback, please open a ticket here. Don't forget to include the article's URL along with the feedback you would like to provide.