Error 8 When Copying a File in LabVIEW

Updated Sep 9, 2020

Reported In

Software

  • LabVIEW

Issue Details

I am using the LabVIEW Copy Function to programatically copy a file to a destination as shown below: 

And I receive the following error pointing to the destination path even though I have all the permissions on this destination path:

Solution

The Copy function is used in LabVIEW to copy a file from a destination folder to a source folder. In this case, even though the error points to the destination path as to where the error is occurring, the error is actually being generated in the source path. One must make sure that the Windows User has all the permissions available on the file one is trying to copy. 

To verify the permissions of the Windows user, follow these steps:
  1. Right-click the file you want to check.
  2. Click on Properties.
  3. Click the Security tab on top of the window.
  4. Click the user you want to check under the 'Group or user names' section. 
  5. Verify the permissions under the 'Permissions for ...' section.
In the next picture you can see the properties of the SYSTEM user for this file: