Importing Punches using import_punches.php
Posted: Wed Jan 25, 2012 12:40 pm
I'm having trouble importing punches using the import_punches.php.
I edited the import_punches.csv and import_punches2.csv using the same format as it is when timetrex was installed (found in timetrex/tools/import/...).
I did not edit the import_punches.php file as I am new to this and don't know if there's anything that I should edit in there.
When I run the command line:
c:\timetrex\php\php.exe c:\timetrex\timetrex\tools\import\import_punches.php
it gives:
Usage: import_punches.php [OPTIONS] [Column MAP file] [CSV File]
Options: -n Dry-run, display the first two lines to confirm mapping is correct
WARNING: Clear TimeTrex cache after running this.
I cleared the cache and checked Punches on TimeTrex and saw that nothing was imported.
What went wrong?
I edited the import_punches.csv and import_punches2.csv using the same format as it is when timetrex was installed (found in timetrex/tools/import/...).
I did not edit the import_punches.php file as I am new to this and don't know if there's anything that I should edit in there.
When I run the command line:
c:\timetrex\php\php.exe c:\timetrex\timetrex\tools\import\import_punches.php
it gives:
Usage: import_punches.php [OPTIONS] [Column MAP file] [CSV File]
Options: -n Dry-run, display the first two lines to confirm mapping is correct
WARNING: Clear TimeTrex cache after running this.
I cleared the cache and checked Punches on TimeTrex and saw that nothing was imported.
What went wrong?