excel to csdb could not create a new data file

Discussions about tools to complement CSPro data processing
Forum rules
New release: CSPro 8.0
Post Reply
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

excel to csdb could not create a new data file

Post 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?
Attachments
Newfile.JPG
Newfile.JPG (31.24 KiB) Viewed 1967 times
Best
Ari
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

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

Post 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");
AriSilva
Posts: 591
Joined: July 22nd, 2016, 3:55 pm

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

Post 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.
Best
Ari
Post Reply