Showing results for 
Search instead for 
Did you mean: 

File Dialog Error 43 when open thousands of files

I just ran into this issue on LabVIEW 2019.  When I select somewhere around 1000 files (~133Kb each), I get error 43.  I see a response from NI above indicating that we can just call the Express File Dialog VI several times, but I'm not sure how to implement that.

0 Kudos
Message 11 of 14

It would look something like this:




... though in my opinion that is a very cumbersome approach for the end user.  Repeatedly selecting files, being expected to remember which of the thousands of available files they've already selected, and then hitting "Cancel" when they're done selecting.


For me a better approach would be what Taki1999 suggested earlier in the thread:  Have all of the desired files in a single folder and then just have the user select the folder to load.  Or, if you wanted a subset, call "list folder" and do some filtering on file names.


Other options would be to select a folder and date/time ranges, or select folder and file type, etc.

0 Kudos
Message 12 of 14

I was unsatisfied with the previous answer and it was bothering me.


You can use the System.Windows.Forms.OpenFileDialog assembly instead of the express VI.  I've attached a VI as an example.


Note:  For this to work correctly you have to go to VI Properties -> Execution and change the "Preferred Execution System" to "user interface". Otherwise the VI will hang when calling the OpenDialog() method.

Message 13 of 14



I think that will solve it!  Thank you!

0 Kudos
Message 14 of 14