After updating TwinCAT and/or TE1400 I get an error message for an existing model.

Description of the situation:

You have already successfully converted a Simulink model into a TcCOM. You have then carried out an update of the TwinCAT XAE and/or the TE1400. You now want to recompile the Simulink model (e.g. you have used a new TE1400 feature, changed something on the model, or you have not changed anything). Now you receive error messages during publishing.

Possible cause and solution:

A folder named <modelname>_tct already exists in the Build directory, see Which files are created automatically during code generation and publishing?. This order was created with the sources of the previous software version(s). Under certain circumstances, conflicts may arise at this point if a new software release triggers a new publishing process that wants to store the sources in the same folder.

A simple solution is to delete the corresponding folder, so that all sources are reconfigured with the current version of all components when you build the module.