ERROR: No Ticket::StateAfterPending found for 'closed successful'

Moderator: crythias

Locked
Rici
Znuny newbie
Posts: 17
Joined: 04 Dec 2014, 02:24
Znuny Version: OTRS 5.0.19

ERROR: No Ticket::StateAfterPending found for 'closed successful'

Post by Rici »

Hi All,

After restoring a database backup I've noticed that I keep getting these errors in my syslog.

Code: Select all

ERROR: No Ticket::StateAfterPending found for 'closed successful'
How can I find out which ticket(s) are causing the error because they have the wrong pending status?

Thanks in advance!
OTS 5.0.19 - Ubuntu 14.04 - Apache 2.4 - MySQL 5.6
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: ERROR: No Ticket::StateAfterPending found for 'closed successful'

Post by aph »

I think you have confused the Content-Key order in Ticket::StateAfterPending under Ticket -> Core::Ticket.

Key should be pending auto close+ and the content should be closed successful

Also Ticket::PendingAutoStateType should be pending auto. The state for which the subsequent status should be set automatically, must be of type pending auto.

OTRS is trying to find the state that should be set after pending time for 'closed successful' has been reached and obviously cannot. What you want to tell OTRS is 'when the pending time for state xy (in this case I assume pending auto close +) is reached, set state equal to closed successful'.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Rici
Znuny newbie
Posts: 17
Joined: 04 Dec 2014, 02:24
Znuny Version: OTRS 5.0.19

Re: ERROR: No Ticket::StateAfterPending found for 'closed successful'

Post by Rici »

Hi aph,

unfortunately it's not that, both settings are configured correctly as you can see from the attached screenshots.
You do not have the required permissions to view the files attached to this post.
OTS 5.0.19 - Ubuntu 14.04 - Apache 2.4 - MySQL 5.6
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: ERROR: No Ticket::StateAfterPending found for 'closed successful'

Post by aph »

Is the state closed successful set to valid in your configuration in Admin area under Status?
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Rici
Znuny newbie
Posts: 17
Joined: 04 Dec 2014, 02:24
Znuny Version: OTRS 5.0.19

Re: ERROR: No Ticket::StateAfterPending found for 'closed successful'

Post by Rici »

Yes, just checked and it's set as valid.
OTS 5.0.19 - Ubuntu 14.04 - Apache 2.4 - MySQL 5.6
aph
Znuny superhero
Posts: 646
Joined: 20 Jun 2014, 12:11
Znuny Version: 3.3.9, 4.x, 5.x

Re: ERROR: No Ticket::StateAfterPending found for 'closed successful'

Post by aph »

This is peculiar.

Can you test using a value other than 'closed successful' in the field content to see whether it still gives an error.
You can also try to delete the entry (pending auto+ as key and closed successful as content) and test with only pending auto close- as key and closed unsuccessful as content and report the result.
OTRS 3.3.x (private/testing) on Windows Server 2008 with MSSQL database.
OTRS 3.3.x (private/testing) on CentOS with MySQL database and apache
Locked