When Project Automation API example BatchAnalyzer, based on a template (sdltpl), I get the error:
The combination of Uri and State properties for the main translation providers should be unique within the list of entries.
The template only has one TM listed, but it doesn't have a State attribute:
<MainTranslationProviderItem Uri="sdltm.file:///PATH-TO-TM/TM-FILENAME.sdltm" Enabled="true" />
I then added State="unique", and it processes:
<MainTranslationProviderItem Uri="sdltm.file:///PATH-TO-TM/TM-FILENAME.sdltm" Enabled="true" State="unique"/>
However, the sdlproj file then ends up with two memories, one with Concordance set to true and the other set to false.
<CascadeEntryItem PerformConcordanceSearch="true" Penalty="0" PerformUpdate="true" PerformNormalSearch="true">
<MainTranslationProviderItem Uri="sdltm.file:///PATH-TO-TM/TM-FILENAME.sdltm" State="unique" Enabled="true" />
<ProjectTranslationProviderItem Uri="sdltm.file:///Tm/en-GB/PROJECT-TM.sdltm" Enabled="true" />
</CascadeEntryItem>
<CascadeEntryItem PerformConcordanceSearch="false" Penalty="0" PerformUpdate="true" PerformNormalSearch="true">
<MainTranslationProviderItem Uri="sdltm.file:///PATH-TO-TM/TM-FILENAME.sdltm" Enabled="true" />
<ProjectTranslationProviderItem Uri="sdltm.file:///Tm/en-GB/PROJECT-TM.sdltm" Enabled="true" />
</CascadeEntryItem>
- Note: the second TM does not have the State attribute.
Question is, I cannot see a state setting within Trados TM Settings, so how does this attribute set assigned automatically, or is there a way around this problem?
Thanks in advance