Error on close pay period

General support regarding TimeTrex, such as
configuring policies/taxes or processing payroll.
Locked
r_levesque
Posts: 2
Joined: Thu Apr 24, 2008 5:46 am

Error on close pay period

Post by r_levesque »

Hello,

My company has been using TimeTrex without any issues for a couple of months. However, when attempting to close the most recent pay period, I'm seeing the "maintenance" error and a "Invalid unique User and/or Pay Period" message in the log. I'm not sure what to do, because nothing has changed since the last pay period. I have attached my log file. Can anyone help out? Thanks!

Code: Select all

======================================================================
EXCEPTION!
======================================================================
Error message: Invalid Data, not saving.
Error code: 0
Script Name: D:\Timetrex\timetrex\classes\modules\core\Factory.class.php
Line Number: 776
======================================================================
EXCEPTION!
======================================================================

Debug Buffer
============================================================================
Memory Usage: 11778464
----------------------------------------------------------------------------
DEBUG [259]: [Function](): URI: /timetrex/interface/payperiod/ClosePayPeriod.php?select_all=on&pay_period_ids%5B%5D=5&pay_period_ids%5B%5D=6&action%3Aclose=Close
DEBUG [261]: [Function](): Version: 2.2.6 Edition: 10 Production: 0 Demo Mode: 0
DEBUG [107]: TTDate::setTimeZone(): Setting TimeZone: America/New_York
DEBUG [497]: Authentication::Check(): Session Name: SessionID
DEBUG [503]: Authentication::Check(): Session ID: 86584c3f51b224a44fdddfe21d43ebc7
DEBUG [399]: Validator::stripNonAlphaNumeric(): Alpha Numeric String:86584c3f51b224a44fdddfe21d43ebc7
DEBUG [78]: Authentication::getIdle(): Idle Seconds Allowed: 14400
DEBUG [399]: Validator::stripNonAlphaNumeric(): Alpha Numeric String:86584c3f51b224a44fdddfe21d43ebc7
DEBUG [69]: [Function](): User Authenticated: administrator Created Date: 1209038571
DEBUG [1961]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [102]: TTDate::setTimeZone(): TimeZone already set to: America/New_York
DEBUG [135]: TTDate::setDateFormat(): Setting Default Date Format: l, F d Y
DEBUG [149]: TTDate::setTimeFormat(): Setting Default Time Format: g:i A
DEBUG [163]: TTDate::setTimeUnitFormat(): Setting Default Time Unit Format: 10
DEBUG [101]: [Function](): Locale Cookie: en_US
DEBUG [287]: TTi18n::getLanguageFromLocale(): Locale: en_US
DEBUG [109]: [Function](): User Preference Language matches cookie!
DEBUG [318]: TTi18n::setLocale(): Generated/Passed In Locale:
DEBUG [252]: TTi18n::generateLocale(): Array of Locales to try in order: en_US,en
DEBUG [203]: TTi18n::tryLocale(): Found valid windows locale: English_United States.1252 Linux locale: en_US
DEBUG [211]: TTi18n::tryLocale(): Found valid locale: en_US
DEBUG [324]: TTi18n::setLocale(): Attempting to set Locale(s) to: en_US Category: 0 Current Locale:
DEBUG [327]: TTi18n::setLocale(): Setting currency/numeric Locale to: en_US
DEBUG [340]: TTi18n::setLocale(): Setting translator locale to: en_US
DEBUG [357]: TTi18n::setLocale(): Set Master Locale To: en_US
DEBUG [1961]: UserFactory::isInformationComplete(): User Information is Complete:
DEBUG [1138]: UserPreferenceFactory::isPreferencesComplete(): User Preferences IS Complete:
DEBUG [138]: [Function](): Station ID Cookie found! cc681c6b110ea16b9797ed74e5986cdb
DEBUG [241]: [Function](): UnRead Messages: 0
DEBUG [48]: BreadCrumb::setCrumb(): Dropping Bread Crumb: End of Pay Period URL: /timetrex/interface/payperiod/ClosePayPeriod.php?select_all=on&pay_period_ids%5B%5D=5&pay_period_ids%5B%5D=6&action%3Aclose=Close
DEBUG [61] Array: [Function](): Selected Pay Periods

Array
(
    [0] => 5
    [1] => 6
)


DEBUG [69]: [Function](): Lock Selected Pay Periods... Action: close
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 0 Trans Off: 0
DEBUG [94]: Validator::inArrayKey(): Key: 20
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 1
DEBUG [768]: Factory::Save(): Calling preSave()
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 2
DEBUG [739]: Factory::isValid(): Calling Validate()
DEBUG [465]: PayPeriodFactory::Validate(): Start Date: 1206504000 End Date: 1207713599
DEBUG [513]: PayPeriodFactory::Validate(): Pay Period Type is NOT Monthly + Advance... Advance End Date:
DEBUG [811]: Factory::Save(): Updating...
DEBUG [636]: Factory::getUpdateQuery(): Update
DEBUG [354]: Validator::isDate(): Raw Date: 1209041096 Converted Value: 1209041096
DEBUG [667]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [849]: Factory::Save(): Calling postSave()
DEBUG [65]: Factory::removeCache(): Attempting to remove cache: 5
DEBUG [71]: Factory::removeCache(): Removing cache: 5 Group Id: pay_period
DEBUG [106]: Validator::isNumeric(): Value:5
DEBUG [94]: Validator::inArrayKey(): Key: 20
DEBUG [145]: Validator::isLength(): Value: pay_period Length: 10 Min: 2 Max: 250
DEBUG [145]: Validator::isLength(): Value: Setting Pay Period to Closed Length: 28 Min: 2 Max: 2000
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 3
DEBUG [768]: Factory::Save(): Calling preSave()
DEBUG [354]: Validator::isDate(): Raw Date: 1209041096 Converted Value: 1209041096
DEBUG [798]: Factory::Save(): Insert ID: 14078
DEBUG [704]: Factory::getInsertQuery(): Insert
DEBUG [732]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 4
DEBUG [337]: PayPeriodFactory::setPayStubStatus(): setPayStubStatus: 40
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 3
DEBUG [360]: PayPeriodFactory::setPayStubStatus(): Changing Status of Pay Stub ID: 240
DEBUG [94]: Validator::inArrayKey(): Key: 40
DEBUG [354]: Validator::isDate(): Raw Date: 1209041096 Converted Value: 1209041096
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 4
DEBUG [768]: Factory::Save(): Calling preSave()
DEBUG [739]: Factory::isValid(): Calling Validate()
DEBUG [768]: PayStubFactory::Validate(): Validating PayStub...
DEBUG [305]: PayStubFactory::isValidTransactionDate(): Epoch: 1207929600 ( Friday, April 11 2008 12:00 PM ) Pay Stub End Date: Tuesday, April 08 2008 11:59 PM
DEBUG [811]: Factory::Save(): Updating...
DEBUG [636]: Factory::getUpdateQuery(): Update
DEBUG [354]: Validator::isDate(): Raw Date: 1209041096 Converted Value: 1209041096
DEBUG [667]: Factory::getUpdateQuery(): Data changed, set updated date:
DEBUG [849]: Factory::Save(): Calling postSave()
DEBUG [65]: Factory::removeCache(): Attempting to remove cache: 240
DEBUG [71]: Factory::removeCache(): Removing cache: 240 Group Id: pay_stub
DEBUG [732]: Factory::CommitTransaction(): CommitTransaction(): Transaction Count: 1 Trans Off: 5
DEBUG [360]: PayPeriodFactory::setPayStubStatus(): Changing Status of Pay Stub ID: 241
DEBUG [94]: Validator::inArrayKey(): Key: 40
DEBUG [354]: Validator::isDate(): Raw Date: 1209041096 Converted Value: 1209041096
DEBUG [722]: Factory::StartTransaction(): StartTransaction(): Transaction Count: 1 Trans Off: 4
DEBUG [768]: Factory::Save(): Calling preSave()
DEBUG [739]: Factory::isValid(): Calling Validate()
DEBUG [768]: PayStubFactory::Validate(): Validating PayStub...
DEBUG [772]: PayStubFactory::Validate(): Unique Pay Stub...
DEBUG [503]: Validator::Error(): Validation Error: Label: user Msg: Invalid unique User and/or Pay Period
DEBUG [305]: PayStubFactory::isValidTransactionDate(): Epoch: 1207929600 ( Friday, April 11 2008 12:00 PM ) Pay Stub End Date: Tuesday, April 08 2008 11:59 PM
DEBUG [482] Array: Validator::isValid(): Errors

Array
(
    [user] => Array
        (
            [0] => Invalid unique User and/or Pay Period
        )

)


============================================================================
PHP Warning: Cannot modify header information - headers already sent by (output started at D:\Timetrex\timetrex\classes\modules\core\Exception.class.php:83) in D:\Timetrex\timetrex\classes\modules\core\Redirect.class.php on line 38
shaunw
Posts: 7839
Joined: Tue Sep 19, 2006 2:22 pm

Post by shaunw »

It looks like you somehow managed to get more then one pay stub for a given employee in the same pay period.

Pay stub ID: 240 looks like it might be the culprit.
Locked