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
refreshObjectscalls. This means that the application did not useExecuteSavedQueriesWithObjectRefreshfor 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
refreshObjectscalls and that the application returns the current Teamcenter values.
Internal information related
- 292150
- C07V9JC0NCE/p1794463108253789
Additional information
- Mendix Documentation: Teamcenter Connector Reference
0 Comments