Page 1 of 1

excel to csdb could not create a new data file

Posted: October 21st, 2020, 8:55 pm
by AriSilva
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?

Re: excel to csdb could not create a new data file

Posted: October 22nd, 2020, 10:19 am
by aaronw
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:
execpff("../References/Assignments.pff", wait);
errmsg("Converted Excel assignments file");

Re: excel to csdb could not create a new data file

Posted: October 22nd, 2020, 3:05 pm
by AriSilva
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.