Upgrading Teamcenter Connector 3.7.x to 2512.1.x

Last modified: December 3, 2026

Introduction

This document describes how to upgrade an app from Teamcenter Connector 3.7.x to Teamcenter Connector 2512.1.x.

This is a large upgrade:

  • Teamcenter Connector 3.7.x is built for Studio Pro 9. Teamcenter Connector 2512.1.x requires Studio Pro 10.
  • The upgrade skips three release lines (2406, 2412, and 2506). This document combines the changes of all of them.
  • Version 2512 reimplemented the login and Single Sign-On (SSO) options. Most breaking changes come from this rework.
  • Teamcenter Connector 2512.1.x does not support Teamcenter 14.x and 13.3. Upgrade Teamcenter first.

Use the latest 2512.1.x patch.

To see the changes per version, refer to the Teamcenter Connector Release Notes.

Pre-Upgrade Checklist

Check these items before you start:

  • Plan the Teamcenter upgrade. Teamcenter Connector 2512.1.x does not support the same Teamcenter versions that 3.7.x supports, such as Teamcenter 14.x. Check the supported versions in the Compatibility Matrix. For details, refer to Planning the Teamcenter Upgrade.
  • Plan for Mendix Studio Pro 10.24.8 or above. Mendix recommends the latest Studio Pro 10 LTS version.
  • Make a backup. Commit all changes to version control, or create a full backup of your app.
  • Have only one developer do the upgrade. Other developers pull the result from version control.
  • Check whether you changed the TcConnector module itself. The import of the new version overwrites these changes. Write down each change so that you can redo it in your own module after the upgrade.
  • Write down your Teamcenter configurations. For each configuration, note the name, the Teamcenter URL, the FMS URL, and whether SSO Enabled is selected. The SSO Enabled setting does not survive the upgrade. For details, refer to Data Migration.
  • Check custom Java code. Version 2512.1.x runs on Java 21, and the generated Java action classes changed. Custom Java code that uses the connector's Java action classes must be recompiled.
  • If you use Teamcenter SSO, plan the change with the Teamcenter Security Services administrator. The callback URL of your Mendix app changes, and Teamcenter SSO login does not work until Teamcenter Security Services has the new URL. For details, refer to step 9 of Upgrading Teamcenter Connector and Its Dependencies.

Planning the Teamcenter Upgrade

Teamcenter Connector 2512.1.x does not support Teamcenter 14.x and 13.3. Before the upgraded app goes live, upgrade Teamcenter to a version that Teamcenter Connector 2512.1.x supports. For the supported versions, refer to the Compatibility Matrix.

Plan the work in two tracks that run in parallel:

  • Teamcenter track: the Teamcenter administrators upgrade Teamcenter to a supported version. This track usually takes more time and effort, so start it first.
  • Mendix track: you upgrade the app, as described in Upgrading Your App. Test the upgraded app against a Teamcenter test system that runs the new Teamcenter version.

When both tracks are ready, go live in this order:

  1. Upgrade the production Teamcenter.
  2. Deploy the upgraded app directly after the Teamcenter upgrade.
  3. If your app uses Teamcenter SSO, update the callback URL in Teamcenter Security Services. For details, refer to step 9 of Upgrading Teamcenter Connector and Its Dependencies.

Upgrading Your App

The upgrade of your app has two stages. Do them in this order:

  1. Upgrade the app from Studio Pro 9 to Studio Pro 10.
  2. Upgrade the Teamcenter Connector and its dependencies to their Studio Pro 10 versions.

During development and testing, you can do the two stages separately.

Upgrading from Mendix 9 to Mendix 10

This is stage 1. Follow the steps in Upgrading from Mendix Studio Pro 9 to 10.

Upgrading Teamcenter Connector and Its Dependencies

This is stage 2. Start from the app on Studio Pro 10. Then follow these steps in this order:

  1. Remove the old JAR files.
    Since version 2406, the connector uses managed dependencies (the vendorlib folder). In the userlib folder of your app, delete the following files pertaining to Teamcenter Connector 3.7.x, as well as the matching .TcConnector.RequiredLib files:

    • commons-io-*.jar
    • commons-logging-*.jar
    • fmsutil.jar
    • fscjavaclientproxy.jar
    • httpclient-*.jar
    • httpmime-*.jar
    • jackson-annotations-*.jar
    • jackson-core-*.jar
    • jackson-databind-*.jar
    • log4j-api-*.jar
    • org.apache.httpcomponents.httpcore_*.jar
    • teamcenter_sso_applib.jar
    • teamcenter_sso_common.jar
    • teamcenter_sso_ldapcustom.jar
    • teamcenter_sso_webtoolkit.jar

    The import of version 2512.1.x adds fmsutil.jar, fscjavaclientproxy.jar, and TcLogging.jar again.

  2. Add the required Mendix Marketplace modules.
    Teamcenter Connector 2512.1.x uses the following Marketplace modules, which version 3.7.x did not use:

    Download the latest version of each module that supports your Studio Pro 10 version. If they are already in your app, update them.

  3. Set the encryption key.
    The connector uses the Encryption module to store SSO secrets and tokens. Set the Encryption.EncryptionKey constant in each environment, as described in the Encryption documentation.

  4. Import the Teamcenter Connector.
    Download the latest 2512.1.x version of the Teamcenter Connector. When the Import Module dialog box opens, follow these steps:

    1. Select Replace existing module.
    2. In Module to replace, select the TcConnector module.
    3. Click Import.

    For details, refer to Using Marketplace Content.

  5. Resolve the errors.
    Studio Pro now shows errors where your app uses elements that were removed or changed. Resolve them by applying the solutions outlined in the Breaking Changes table.

  6. Replace the navigation and login microflows:

    • Replace UserLogin and ShowLoginPage with NAV_UserLogin.
    • Replace LoginToMultipleTeamcenters with NAV_UserLoginMultipleActive.
    • Replace the AdminHomePage page with NAV_AdminHomePage.
    • If you use Teamcenter SSO, remove SSO_RegisterRequestHandlers from your after-startup microflow. It is no longer needed.
    • (Optional) If you use Teamcenter widgets in Active Workspace, such as the TcBOM widget, call the TcConnector.Startup microflow from your after-startup microflow.
  7. Update security:

    1. Open the domain model of your module and click Update security.
    2. If an entity shows the error Non-persistable entity (entityName) contains access rules restricting members to have no access rights, which is not allowed, open the entity and give read access to the attributes that have no rights.
    3. Assign the TcConnector Administrator module role to the user roles that configure the Teamcenter connection.
    4. Assign the TcConnector User module role to the user roles that log in to Teamcenter. The Administrator module role can no longer log in to Teamcenter.
  8. Check the Teamcenter configurations.
    Run the app, log in as an administrator, and open NAV_AdminHomePage. For each configuration:

    1. Set the Authentication Method. All configurations start as Credentials after the upgrade. Select Teamcenter SSO for each configuration that had SSO Enabled selected in version 3.7.x.
    2. Check that the Teamcenter URL begins with http:// or https:// and ends with /tc, for example https://tcserver.example.com/tc. The configuration page no longer accepts URLs that do not begin with http:// or https://.
    3. Check that the FMS URL contains only one URL. Lists of FMS URLs separated by commas are no longer supported.
    4. Save the configuration.

    For details, refer to Configuring the Connection to Teamcenter with Teamcenter Connector 2512.0.0 and Above.

  9. Update the Teamcenter SSO callback URL (only if you use Teamcenter SSO).
    The callback URL of the app changed. It was the app URL followed by /TCSSO. It is now the app URL followed by /rest/tcsso/v1/callback, for example https://myapp.mendixcloud.com/rest/tcsso/v1/callback. Do these steps for each environment:

    1. In Teamcenter Security Services, replace the registered callback URL of your Mendix app with the new callback URL. Teamcenter Security Services still has the old /TCSSO URL registered. Teamcenter SSO login does not work until you change it.
    2. Make sure that the /rest/tcsso/v1/ path of your app is reachable from the browsers of your users. Since version 2512, the TcConnector.TCSSO published REST service handles the Teamcenter SSO login and callback on this path. Check path-based access restrictions, proxies, and firewalls.
    3. Set the TcConnector.SSO_ContextURLPath constant to rest/tcsso/v1/callback.
  10. Set up user provisioning for Teamcenter SSO (only if you use Teamcenter SSO).
    After the Teamcenter SSO login, the connector calls the CUSTOM_UserProvisioning microflow to decide which Mendix user gets the Teamcenter session. Since version 2512.1.4, CUSTOM_UserProvisioning calls EXAMPLE_UserProvisioningAnonymous by default. This example is for a login from the login page. It creates or reuses a Mendix user with the Teamcenter user name. A user who is already logged in to the app gets an error.
    In version 3.7.x, the Teamcenter session belonged to the Mendix user who started the login. To keep this behavior, change CUSTOM_UserProvisioning to call EXAMPLE_UserProvisioningNamed or your own logic. Keep your logic in a microflow in your own module, and only call it from CUSTOM_UserProvisioning. Each import of the connector overwrites CUSTOM_UserProvisioning, so add the call again after each upgrade.

  11. (Optional) Enable the React client.
    Teamcenter Connector 2512.1.x is compatible with the React client. The Dojo client is deprecated and will be removed in Studio Pro 12, so the React client prepares your app for later Studio Pro upgrades.
    An app that comes from Studio Pro 9 often contains Dojo widgets, which do not work in the React client. Before you enable the React client, replace these widgets with newer versions or with React-based alternatives. To find them without errors, first use the migration mode, which shows warnings for incompatible widgets. For details, refer to React Client.

  12. Test the app.
    Test the login for each authentication type that you use, and each Teamcenter operation that your app calls. Pay attention to the Behavior Changes, as several Java actions throw an error where version 3.7.x returned a result.

Breaking Changes

The following table lists the changes that can break an app built on version 3.7.x. The Introduced in column shows the release line that introduced the change: 2406, 2412, 2506, or 2512. If a change needs a specific patch, it is reflected in the change.

Area Change Introduced in Action required
Platform Studio Pro 10.24.8 or above is required. 2406 Upgrade the app to Studio Pro 10 first (stage 1). Refer to Upgrading from Mendix Studio Pro 9 to 10.
Platform Older Teamcenter versions, such as Teamcenter 14.x, are not supported. 2512 Upgrade Teamcenter to a supported version before the connector upgrade. Refer to Planning the Teamcenter Upgrade.
Dependencies Connector JAR files moved from the userlib folder to managed dependencies. 2406 Delete the old JAR files from the userlib folder before the import.
Dependencies Community Commons and Encryption are required. 2412 Install both modules and set Encryption.EncryptionKey.
Java actions The generated Java action classes extend UserAction instead of CustomJavaAction. 2406 Recompile custom Java code that uses the connector's Java action classes.
Microflows UserLogin and ShowLoginPage were removed. 2512 Use NAV_UserLogin.
Microflows LoginToMultipleTeamcenters was removed. 2512 Use NAV_UserLoginMultipleActive.
Microflows AdminLogin and ExecuteAdminLogin were removed. 2512 Remove the calls. Assign the User module role to user roles that log in to Teamcenter.
Microflows SSO_RegisterRequestHandlers was removed. 2512 Remove SSO_RegisterRequestHandlers from the after-startup microflow.
Pages AdminHomePage, HomePage, and LoginPage_SSO were removed. 2512 Use NAV_AdminHomePage and NAV_UserLogin in the navigation.
Pages LoginPage, LoginPage_Multiple_Active_TeamcenterConfiguration, TeamcenterConfiguration_NewEdit, and TeamcenterConfiguration_Overview moved to the internal folder. TeamcenterConfiguration_NewEdit has a second page parameter. 2512 Do not open these pages from your app. Use the NAV_ microflows.
Layouts The TeamcenterLogin layout was removed. 2512 Change the pages that use the TeamcenterLogin layout to another layout.
Domain model The HomePage entity was removed. 2512 Remove the references.
Domain model TcSession lost the SSOEnabled and SSORedirectURL attributes. 2512 Remove the references.
Domain model TeamcenterConfiguration lost the SSOEnabled attribute. AuthenticationType replaces it. 2512 Set Authentication Method for each configuration. Refer to Data Migration.
Domain model The RootTargetAttachments entity was removed. root_target_attachments now connects EPMTask to WorkspaceObject as a reference set. 2506 Update retrieves, loops, and mappings that use them.
Domain model release_status_list changed from a reference to a reference set. 2406 Update microflows that expect one release status: a retrieve now returns a list.
Constants The default value of SSO_ContextURLPath changed from TCSSO to rest/tcsso/v1/callback. Deployed environments keep their old value. 2512 Set the new value in each deployed environment, and register the new callback URL in Teamcenter Security Services.
Java actions UploadFiles no longer returns false when the upload fails. It throws an error. 2506 Replace checks on a false result with an error handler.
Java actions ExpandPSOneLevel2 creates FileDocument objects only when DownloadFiles is true. 2512 Set DownloadFiles to true where you use the returned FileDocument objects.
Configuration A comma-separated list of FMS URLs is no longer supported. 2512 Use one FMS URL per configuration.
SSO user provisioning Since version 2512.1.4, CUSTOM_UserProvisioning calls EXAMPLE_UserProvisioningAnonymous by default. A user who is already logged in to the app gets an error after the Teamcenter SSO login. 2512 Change CUSTOM_UserProvisioning, as described in step 10 of Upgrading Teamcenter Connector and Its Dependencies.

Security Changes

Area Change Introduced in Action required
TeamcenterConfiguration Access rules list the attributes. The Administrator module role no longer has create and delete rights. The User module role reads only ConfigName, TCURL, FMSURL, AuthenticationType, and Active. 2512 Click Update security. Change custom pages that show other configuration attributes to users.
ExecuteLogin, ExecuteLogout Only the User module role can run them. 2512 Assign the User module role to user roles that log in to Teamcenter.
TcConnector.TCSSO (published REST service) The connector publishes a REST service on /rest/tcsso/v1/ for the Teamcenter SSO login and callback. 2512 Include this path in your security review and make sure it is reachable for Teamcenter SSO users.
RetrieveConfigNameFromSingleActiveConfiguration, RetrieveTcSessionBasedOnConfigName, RetrieveHttpHeaderList No module role can run them from the client. 2412 and 2512 Call them only from other microflows.

Data Migration

These changes affect the data that your app stores:

  • The SSOEnabled attribute of the persistent TeamcenterConfiguration entity was removed in version 2512. The new AuthenticationType attribute replaces it. The configuration page shows this attribute as Authentication Method. Its values are Credentials, Teamcenter SSO, and Teamcenter X SSO. Its default value is Credentials.
  • When you run the app after the upgrade, the database synchronization removes the SSOEnabled column. All existing configurations get Credentials as their authentication type.
  • The other SSO attributes (SSOLoginURL, SSOIdentityURL, SSOTCAppId, and SSOMendixAppId) keep their values.

To restore the SSO setting, set Authentication Method to Teamcenter SSO for each configuration that had SSO Enabled selected. You wrote these down in the pre-upgrade checklist.

Several string attributes changed their length to match the Teamcenter data model. For example, ReleaseStatus.name changed from 200 to 32 and BOMLine.object_string changed from 200 to 4000. All these entities are non-persistent, so no stored data changes. If your app copies these values into its own persistent entities, check the lengths of your attributes.

The following table lists the maximum string length of each affected attribute in version 3.7.x and in version 2512.1.x:

Entity Attribute 3.7.x 2512.1.x
BOMLine, POM_application_object object_string 200 4000
EPMTask comments 200 4000
EPMTask task_name 200 32
EPMTaskTemplate template_name 200 128
Group name 200 128
ImanQuery query_desc 200 512
ImanQuery query_name 200 128
Item item_id 200 128
ReleaseStatus name 200 32
Role role_name 200 32
TC_Project project_desc 200 240
TC_Project project_id 200 64
TC_Project project_name 200 32
ValuesInput value 200 Unlimited

Behavior Changes

These changes do not cause errors in Studio Pro, but they change how the app behaves at runtime:

Area Change Introduced in Action required
Error handling The connector throws errors instead of returning false, null, or showing a message. This applies to UploadFiles, DownloadFiles, DownloadImages, GetProperties (when the input is empty), Logout, and RetrieveConfigNameFromSingleActiveConfiguration. 2506 to 2512 Add error handlers around these calls.
Error handling DownloadFiles and DownloadImages return false only when the dataset has no files. 2512 Use an error handler for all other failures.
UploadFiles A dataset with an empty name or an empty dataset type is rejected. 2512 Set both values before the call.
RetrieveTeamcenterConfigurationByName The microflow no longer validates the configuration and no longer shows a message. 2512 Check if the result is empty.
Logging Failed Teamcenter calls are logged at the ERROR level, also for expected failures such as wrong credentials. 2506 and 2512 Review your log monitoring.
TeamcenterConfiguration The validation of configurations moved from the entity to the configuration page. Unique names and URLs are no longer enforced by the entity. 2512 If your logic creates or changes configurations, validate them in your logic.
BOMLine_childrenObj Deleting a BOMLine object also deletes its child objects. 2406 Check logic that deletes BOMLine objects.
Business object mapping For each child object, the connector creates the nearest matching specialization. A child that does not match is skipped. Before, the mapping stopped at the first such child. 2406 and 2506 Retest mappings that use specializations.
CreateObjects All compound create inputs of the same entity type are sent. Before, some were dropped. 2506 Retest create calls with several compound inputs of one type.
Partial errors The client index of partial errors is read correctly. 2506 Retest logic that reads partial errors by client index.
Request body Unicode escape sequences in SOA request bodies are sent as plain characters. 2412 Retest calls that send non-ASCII data.
Associations for Teamcenter properties The connector has its own associations for the Teamcenter properties structure_revisions (PSBOMViewRevision to ItemRevision), bl_revision (BOMLine to ItemRevision), top_line (BOMWindow to BOMLine), and revision_rule (BOMWindow to RevisionRule). If your app maps one of these properties with its own association, Teamcenter can return the related objects without properties. 2406 Refer to Related Objects Returned Without Properties.
Property values When a Teamcenter property contains at least one object UID, the connector treats the whole property as a reference. Values in that property that are not UIDs become empty. 2512 Retest mappings of properties that mix UIDs and other values.
Type hierarchy When ConfigurationName is empty, the connector loads the type hierarchy of the active configuration. Business object mapping can then create a more specific specialization than before. 2406 Retest mappings with specializations when you leave ConfigurationName empty.
Client version The client version sent to Teamcenter no longer starts with MxTcC_. 2406 Update Teamcenter-side reports or filters that use this prefix.
New data The database synchronization adds the persistent entities OAuthToken, SSOCallbackHelper, and TcXCallbackHelper, and two attributes on FileDocument (datasetUID, imanFileID). The scheduled event SCE_CleanupOldSSOCallbackHelpers removes old SSOCallbackHelper objects every hour. 2406 to 2512 Make sure that scheduled events run in your environments.

Removed, Moved, and Deprecated Elements

The following table lists the elements that were removed, moved, or deprecated since version 3.7.x, and the elements to use instead. Studio Pro shows errors for removed elements that your app still uses.

Element Status Replacement
UserLogin, ShowLoginPage (microflows) Removed in 2512 NAV_UserLogin
LoginToMultipleTeamcenters (microflow) Removed in 2512 NAV_UserLoginMultipleActive
AdminLogin, ExecuteAdminLogin (microflows) Removed in 2512 User module role
SSO_RegisterRequestHandlers (microflow) Removed in 2512 Not needed. TcConnector.Startup for Active Workspace widgets only.
AdminHomePage (page) Removed in 2512 NAV_AdminHomePage
HomePage, LoginPage_SSO (pages) Removed in 2512 NAV_UserLogin
TeamcenterLogin (layout) Removed in 2512 Your own layout
HomePage (entity) Removed in 2512 None
RootTargetAttachments (entity) Removed in 2506 root_target_attachments from EPMTask to WorkspaceObject
CloseBOMWindows (Java action) Moved to the internal folder in 2406 Still available
CreateBOMWindows, CreateBOMWindows2 (Java actions) Deprecated in 2512 CreateOrReConfigureBOMWindows
GetItemFromId (Java action) Deprecated in 2512 GetItemAndRelatedObjects

Deprecated Java actions still work in 2512.1.x. Plan to replace them before you move to version 2606.

The following microflows are new since version 3.7.x:

  • DownloadFile
  • CloseBOMWindow
  • HandleActiveConfigErrors
  • TeamcenterConfiguration_ShowLoginPage

The following Java actions are new since version 3.7.x:

  • ExecuteSavedQueriesWithObjectRefresh
  • DownloadImages
  • GetImanFiles
  • GetWorkflowTemplates2
  • PerformAction3
  • WhereUsed2
  • CreateOrReConfigureBOMWindows
  • GetItemAndRelatedObjects
  • GetAttachedPropDescs2

Known Issues

Related Objects Returned Without Properties

GetProperties can return related objects without properties, and without an error, when both of these conditions are true:

  • Your app has its own association for a Teamcenter property for which the connector also has an association since version 2406: structure_revisions, bl_revision, top_line, or revision_rule.
  • The business object mapping maps the Teamcenter type to an entity of your app that is a specialization of TcConnector.ModelObject, and not of the matching connector entity (for example, TcConnector.PSBOMViewRevision).

The connector then requests the same property twice from Teamcenter, and the request without properties takes precedence. The Teamcenter response contains the related object with an empty props object. This is confirmed for structure_revisions with BOM view revisions. The other three properties use the same mechanism.

Use one of these workarounds:

  • Change your entity, so that it is a specialization of the matching connector entity, for example TcConnector.PSBOMViewRevision.
  • Call GetProperties again, with only the related objects as input.

English Locale with Teamcenter SSO

With Teamcenter SSO, the Teamcenter session always uses the en_US locale. In version 3.7.x, the session used the language of the Mendix user.

Next Steps

After you finish the upgrade to 2512.1.x, you can move to Teamcenter Connector 2606. For details, refer to Migrating to Teamcenter Connector 2606.