 parker300
		
			parker300
		
		
		
		
		
		
		
		
	
			10-03-2023 07:43 AM
Hey all, running into this problem where my file isn't found. In my code I have the file name and path declared, and it works for my other spreadsheet outputs in the code. Why isn't this one working here?
Solved! Go to Solution.
 raphschru
		
			raphschru
		
		
		
		
		
		
		
		
	
			10-03-2023 08:00 AM - edited 10-03-2023 08:12 AM
Hi Parker,
You are probably trying to open a file that is not created yet.
Your code seems full of race conditions. You should avoid opening multiple references to the same file and writing to them at the same time.
Tip: try using an event structure instead of polling button controls in your loop.
Regards,
Raphaël.
 crossrulz
		
			crossrulz
		
		
		 
		
		
		
		
		
	
			10-03-2023 08:03 AM
Change the Operation input for the Open/Create/Replace File to "replace or create". By default, the function tries to just open it. If it doesn't exist, it cannot open. So you need to tell the function to create it.