Hello,
We have recently seen a couple errors we have not seen before, that are intermittent. This occurs in the single pass entry point sequence, the first "write UUT report" step (the non-on-the-fly one). The error message is as follows:
"An error occurred calling 'Save' in 'Report' of 'NI TestStand API 4.0'
A file with the pathname 'T:\HTC' already exists.. Error writing to file 'T:\HTC\WING\3WWE\StressTest.seq\StressTest_Report[NO_UUT_SERIAL_NUM13][3 23 37 PM][4 28 2008] - TS2.html'."
So when breaking here, and looking at Locals.ReportFilePath (which is the pointed to variable in the specifiy module of this step), it was indeed defined as:
T:\HTC\WING\3WWE\StressTest.seq\StressTest_Report[NO_UUT_SERIAL_NUM13][3 23 37 PM][4 28 2008] - TS2.html
So everything looks correct, but it thinks that "T:\HTC" is the entire path. So the next thing I did, after much confused pondering, was go to the "variables" tab while in break, and add an extra backslash to the part following "T:\HTC" in Locals.ReportFilePath so that the path is now:
T:\HTC\\WING\3WWE\StressTest.seq\StressTest_Report[NO_UUT_SERIAL_NUM13][3 23 37 PM][4 28 2008] - TS2.html
I hit retry and it worked. So my question is, if teststand is thinking the "\W" is an escape code, why does it work 99%+ of the time, and suddenly this weird problem?
Thanks