FileBasedProject.AddBilingualReferenceFile Method (BilingualFileMapping) is causing the following error:
Invoke Node System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. Inner Exception: Sdl.ProjectAutomation.Core.ProjectAutomationException: Bilingual reference file cannot be added Inner Exception: System.UnauthorizedAccessException: Access to the path 'D:\perforce\Localization\Prj\Jp\SDLXLIFF\xxxx\SW\xxxxx\Resource.rc.sdlxliff' is denied. <append><b>System.UnauthorizedAccessException</b>
This SDLXLIFF file is on Perforce source code control, so unless we have it checked out, it is marked as Read-only. When I made the file non-Read Only right before the method, the error did not occur. Why is this method trying to modify reference file?
We have checked with Trados Studio 2019 SR1 - 18.104.22.168768, and the error does not occur.
Any help is highly appreciated!
Can you please provide a code sample?
How about sample code from here http://producthelp.sdl.com/SDK/ProjectAutomationApi/2017/html/fd5a40ef-0b71-4400-b33e-913bd508c19d.htm ?
Yep. There was a problem and the fix will be released in CU4. Thank you for pointing this to us.
Thank you for the updated information! Look forward to CU4!