Problems with 'copyFile'
Note: This is no replacement for the Official ETM Support!
WCCOActrl19:"WCCOActrl (19), 2020.11.20 10:02:10.205"copyFile() failed, error 3, files: "C:/Data/COAS315/log/manager/MAN_2020_11_20_10_02_10_170.TXT" => "Z:/Auswertungen/Manager/Logs/MAN_2020_11_20_10_02_10_170.TXT".
What does "error 3" mean? Is there a list for this kind of errors?
System: WinCCOA 3.15
I would check if if
1. The source file does really exist at the time the copy command is issued.
2. The destination path does exist.
3. As the destination path looks to be a file share I would also check that the file share is actually available/accessable for the user the CONTROL manager is running on.
4. Check if the user the CONTROL manager is running on has read/write acces to the source file and destination folder.
I'm working together with wilko0070. I've tested the same function on an panel as button (same System/Server).
Doing it this way, the files got copied ono the NAS without a hitch.
I've also checked for error throws (stderr), without success.
For example check if the server is running as a service and verify that the user the service is started with can copy files to the file share.
For clarification: I mean Windows user. Not WinCC OA user.
Possibly you can use this function to detect if a write permission is given before calling copyFile().
Senior Support Specialist