LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

filedialog cancel error

I'm having an error when i cancel a file dialog and the error says the following - "Error 43 occurred at File Dialog3". It says that the possible reason is that the operation is cancelled by the user but I don't understand the actual problem. 

 

Can someone please help me out wit this because i can't figure out why it crashes at all.

 

Thanks a lot!

0 Kudos
Message 1 of 5
(3,262 Views)

It's not so much that it's a crash as it's explaining that no file/folder was selected in the Express VI as the containing VI expected.  Presumably, the VI's author expects the user to select a path to something that will be used downstream.  If the user hits cancel, the expected procedure will fail.  The error just lets you handle it right away without having to test the "selected" path.  You can wire a "Clear Error" or an indicator to the output of the Express VI, or put it in a loop to force the user to select something.  What are you trying to do?

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 2 of 5
(3,252 Views)

... and another thing!

 

Your VI isn't really "crashing", it's just stopping long enough to present the error message.  You can prevent this behavior if you disable automatic error handling in the VI's properties:

 

error.png

Jim
You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
For he does not know what will happen; So who can tell him when it will occur? Eccl. 8:7

Message 3 of 5
(3,220 Views)

It looks simple problem to me, It is expecting one file path from you and you are cancelling hence this problem. In the error out use one simple error handler and pass no dialogue to type of dialogue input.

 

Hope then it wont give you trouble. 

 

Thanks,

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
Message 4 of 5
(3,217 Views)

This is a common error when using the "Write Spreadsheet to File.vi" and it has no error out terminal.  A quick forum search will turn up numerous threads on this topic and ways to deal with it.

 

 

Message 5 of 5
(3,203 Views)