We have migrated WorldServer to another server and we have then upgraded the WorldServer version. In order to verify whether an on-going translation project will be able to continue after the migration, I imported the return package into one of the active project. The return package was created in Trados Studio based on the export package.
However, while importing, following error message is displayed (the asset name and path will vary):
Asset /Default/Clientname/Projects/9712_Projectname/Source-English (United States)/testfile.xml is not associated with a locale. Be sure to set the locale AIS property for this asset.
I confirm that the source folder and target folder are not linked properly in Explorer anymore. What should I do to recover the linkage information and allow the import of Return packages for projects created before the migration?
Note: this issue does not happen for projects created after the migration
To avoid this issue to happen: always export the AIS properties from the database before starting the migration or turn off Garbage Collection while migrating until the same path has been re-created in the new server. Note: to turn off Garbage Collector completely, you need to set the recurrence engine property to off in general.properties. Alternatively, set the schedule of the Metadata Cleaner to run after the migration and the restoring of the AIS.
To resolve the issue once it has happened:
1- Copy the Database from Old to New environment again, upgrade the schema, and then connect to NEW Worldserver. But before that, change the recurrence_engine to OFF to disable the Garbage Collector.
2- Alternatively, if only few projects are affected, you can manually apply the locale properties and all other AIS properties (such as TM, File Type settings etc) on source and target language folder in Explorer based on the Task information and the Segment Asset entry, which provides information about the TM and the file type used.
The AIS mount was mistakenly modified temporarily and during the time the mount was incorrect, the Metadata Cleaner removed the AIS properties for those folders during garbage collection. This resulted in failed imports, exports, etc. The WorldServer log shows the properties being removed. Here is an example of such ws.log entries:
[2020-11-01 15:38:58,363] WARN DB Garbage Collector  com.idiominc.ws.maintenance.DbDepurator: Garbage Collection has completed. Total time: 4 minutes, 25 seconds.