import users

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
gimecoffee
Posts: 17
Joined: Wed Apr 14, 2010 9:38 am

import users

Post by gimecoffee »

Business License TimeTrex Version 3.0.6
Trying to use import_users.php

Code: Select all

php ./import_users.php -n user_column_map.txt temp.CSV
but I keep getting

Code: Select all

Importing Users...
  Importing User: 1.  ................................                                          Failed!
    ERROR: Company is invalid
  Importing User: 2.  ................................                                          Failed!
    ERROR: Company is invalid
  Importing User: 3.  ................................                                          Failed!
    ERROR: Company is invalid
Total Errors: 3
I've attached my map and csv for review.
Any guidance or direction would be greatly appreciated.

thank you
Rois Cannon
Attachments
user_column_map.txt
(1.72 KiB) Downloaded 194 times
temp.CSV
(2.3 KiB) Downloaded 189 times
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Re: import users

Post by shaunw »

You must specify the default company_id in your map file that matches your database, in most instances this is "1", but not always.

Since you are using the Business Edition of TimeTrex, please email support@timetrex.com in the future.
Locked