01-16-2014 07:37 AM
When the express File Dialog is configured to allow opening multiple files, it gives Error 43 Operation Cancelled by User if more than about 2000 files are selected. It works fine if say 1500 files are selected.
01-16-2014 07:42 AM
Interesting. What's the actual use case for this selection?
As a workaround you may be able to do the selection mode for the entire folder and then do filtering from there.
01-16-2014 07:51 AM
Usage is to provide user selection of data files for further processing and analysis. Files are about 60k each, 2 column ASCII Text of optical spectra from which Intensity Graph is created and other analysis performed. The list of files is looped over and subregions extracted from each spectra and graphs of analyzed subregion data vs file number are created.
01-16-2014 08:06 AM
Which OS and LabVIEW version are you on? I want to see if I can reproduce this.
As an aside, does it really make sense to have a user multiselect 2000 files? I think a folder select with an additional text filter might be a better design.
01-16-2014 08:17 AM - edited 01-16-2014 08:24 AM
I did a test with LabVIEW 2011 and Windows 7 with 4000 empty files and didn't have any problems so it's not a file number limitation.
Makes me think it must be a memory limitation of some sort.
I'll try with non-empty files and see if I can break it.
How much RAM do you have on your system?
EDIT: Also tried with 2000 64KB files and had no problems.
01-16-2014 08:44 AM
Windows 7 64 bit with LabVIEW 2012 SP1 f5 32 bit.
File size doesn't matter as the files are not opened yet when this error happens.
A VI containing only the express FIle Dialog with Selection Mode configured to not Limit Selection to Single Item will give this error for me. File Dialog's "selected paths" is not wired to anything.
10-02-2014 06:41 AM
Did you solve the problem? We are experiencing exactly the same, but with as few as 227 files. From the 228th file on, the string indicator in the dialog gets blank and upon clicking "ok" the dialog returns an empty array and throws error 43.
10-03-2014 05:10 PM
NI R&D is aware of the bug and a Corrective Action Request (Req # 484053) has been filed to resolve this issue.
The current suggested workaround is to call the File Dialog Express VI multiple times, and build up the file path array yourself.
Feel free to contact our Applications Engineering Team to check whether a permanent solution has been reached.
Neil
Applications Engineering
National Instruments
04-19-2017 03:24 PM
It has been 2.5 years since this you indicated that "NI R&D is aware of the bug and a Corrective Action Request (Req # 484053)". This bug has not been fixed yet. Any word on when you are going to get around to actually fixing it?
04-23-2019 12:50 PM
For me the limit is 1817 files