Delicious      Technorati      Blinklist      Furl      Reddit

TimeTrex Time and Attendance

TimeTrex Time and Attendance


* FAQ    * Search
* Login   * Register

All times are UTC - 8 hours [ DST ]




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
PostPosted: Wed Jan 25, 2012 12:40 pm 
Offline

Joined: Tue Jan 24, 2012 7:56 am
Posts: 17
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?


Top
 Profile  
 
PostPosted: Wed Jan 25, 2012 12:45 pm 
Offline

Joined: Tue Sep 19, 2006 2:22 pm
Posts: 6407
You didn't provide the import script with the name of the file that contains the data that you wish to import. See the Usage: line in your comment, it tells you what command line arguments are required and in what order.


Top
 Profile  
 
PostPosted: Wed Jan 25, 2012 1:27 pm 
Offline

Joined: Tue Jan 24, 2012 7:56 am
Posts: 17
Ok, well as I mentioned earlier I never worked with .php files so I'm new to it. I'm attaching the file please tell me exactly where to input the file name. I changed the extension to .txt

The file name is import_punches.csv
The Column Map File is punch_column_map.txt

Thanks.


Attachments:
File comment: php file (extension changed for uploading)
import_punches.txt [20.47 KiB]
Downloaded 103 times
Top
 Profile  
 
PostPosted: Thu Jan 26, 2012 8:27 am 
Offline

Joined: Tue Jan 24, 2012 7:56 am
Posts: 17
Hi,

I got through. I worked on it and got it to work.

Thanks.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


Time and Attendance




Powered by phpBB® Forum Software © phpBB Group