Message: Failed to copy repository
After activating the TwinCAT Configuration the following error message appears in TwinCAT XAE?
Failed to copy repository file ...
The cause is usually that no or not all files, especially the TMX drivers, were found in your engineering repository. The TwinCAT XAE tries to copy the driver to the XAR system but does not find the correct file (check if you have a driver for the target platform of the selected XAR system in the engineering repository).
Consequential error in the Error dialog in XAE is for example:
'TCOM Server' (10): Error loading repository driver 'C:\TwinCAT\3.1\Boot\Repository\<model vendor>\<model name>\<version>\<tmx-name>' - hr = 0xc0000225
Since the TMX file could not be copied to the XAR system, it could not be loaded. Another consequential error is a link error "Could not link external function".
- Information and remedy for this error pattern:
- 1. What is the Engineering Repository and where can I find it?
- See automatically created files.
- 2. How do I ensure that when copying compiled models to other XAE systems, all necessary files are always transferred and the folder structure remains correct?
- See TMX archive.