<-- Back

Error in Teamcenter Extension: Padding is Invalid

Issue

 
System.Security.Cryptography.CryptographicException: Padding is invalid and cannot be removed.

When opening the Teamcenter Extension in Studio Pro after pulling the latest changes from the Team Server, the above error occurs. This error occurs when files in the usr folder (located at resources\TeamcenterExtension\usr) were encrypted with a different key than the current encryption key.

Environment

Teamcenter Extension all versions

Cause

This issue typically happens in one of the following scenarios:

  • Multiple developers using the extension for the first time simultaneously – If two or more developers open the extension at the same time, each may generate a unique encryption key. If both commit their changes, the encrypted files may conflict.
  • Manual transfer of files between projects – If files from one project’s usr folder are copied to another project, the encryption keys may mismatch.

Solution/Workaround

The following steps will remove this error, but unfortunately, the generated history will be lost (generated microflows and entities will stay in the model).

  1. Go to the project folder and navigate to resources\TeamcenterExtension 
  2. Delete the usr folder
  3. Open the extension again and commit changes. A new usr folder will be generated with a fresh encryption key.

After that, all developers will share the same key after pulling.

Internal information related

  • 244638

Additional information 

Forum: 142862

  •  

 

 

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.