Additional Information
Even if control characters are not visible in the input string they may still be present, but are easy to find. Connect either a control or indicator to the input string and enable backslash code display (select Properties » Display style by right-clicking the indicator). If you determine that control characters have been included, they can be replaced with a non-control character (such as underscore) by using the Search and Replace Pattern .vi located on the string sub-palette.
This error could also occur if you specify a file name without a drive path inside a file path entry. You need to make sure that your drive path is included along with your file name (i.e.
C:\filename
or
E:\filename
).
In the attachments there is a VI that demonstrates a solution that utilizes the Search and Replace Pattern .vi.