I have a xl2cs file that converts an excel to a csdb.
It works fine if I double click it and use the "Create button".
It also works fine if I double click in the pff that calls it.
It was working fine also when calling the pff from a batch program using the execsystem function.
But then the execsystem does not work anymore, and the system shows an error message saying that "it could not create a new data file" (attached figure).
What does that mean?
excel to csdb could not create a new data file
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
excel to csdb could not create a new data file
You do not have the required permissions to view the files attached to this post.
Best
Ari
Ari
-
aaronw
- Posts: 571
- Joined: June 9th, 2016, 9:38 am
- Location: Washington, DC
Re: excel to csdb could not create a new data file
My guess is you have a locked file. Try closing everything and restarting your computer to be sure.
I would recommend using execpff instead of execsystem:
I would recommend using execpff instead of execsystem:
execpff("../References/Assignments.pff", wait);
errmsg("Converted Excel assignments file");
errmsg("Converted Excel assignments file");
-
AriSilva
- Posts: 625
- Joined: July 22nd, 2016, 3:55 pm
Re: excel to csdb could not create a new data file
Sorry, I´m already using execpff.
You guessed right, the problem is that the file I´m trying to generate is associated with a dictionary in the same program.
I´ve tried to close this dictionary before doing the execpff, then it seems to be working fine.
You guessed right, the problem is that the file I´m trying to generate is associated with a dictionary in the same program.
I´ve tried to close this dictionary before doing the execpff, then it seems to be working fine.
Best
Ari
Ari