Error on write of file = 'Z:\ABC.lst': Invalid argument

Problems with syntax of GAMS
Post Reply
TheRstone
User
User
Posts: 5
Joined: 2 years ago

Error on write of file = 'Z:\ABC.lst': Invalid argument

Post by TheRstone »

Hi everyone,

i get some error message that drives me crazy...

"Msg=I/O error on write of file = 'Z:\ABC.lst': Invalid argument

However the the error occurs only if i have many entrys for one set (t). If i reduce the amount the model will solve perfectly.

Does anyone ever noticed such a problem?

Thx for your help!
Log.txt
(2.66 KiB) Downloaded 111 times
Log.txt
(2.66 KiB) Downloaded 111 times
User avatar
dirkse
Moderator
Moderator
Posts: 214
Joined: 7 years ago
Location: Fairfax, VA

Re: Error on write of file = 'Z:\ABC.lst': Invalid argument

Post by dirkse »

Can you say a little more about your Z: drive? If that's some sort of network share (OneDrive, Google Drive, etc.) that may explain the problem. Network drives look and feel like normal drives from a distance, but if they are used intensively, their weak spots are exposed.

I suggest you try running this entirely from C:. If this eliminates the problem, there are several ways to structure things so intermediate files like the .lst file get written to C:, but you can still read data from Z: How to do this exactly depends on how your model uses files, etc.

-Steve
TheRstone
User
User
Posts: 5
Joined: 2 years ago

Re: Error on write of file = 'Z:\ABC.lst': Invalid argument

Post by TheRstone »

You are my hero!!!

Z: is just my second SSD drive. But as long as I run the model on my C drive the solving process starts.
I do not know why but it totaly solves the issue!

Thank you so much!

How did you know?
Post Reply