[SOLVED] SQL error

Moderator: crythias

Post Reply
nanotowers
Znuny expert
Posts: 204
Joined: 19 Aug 2014, 17:27
Znuny Version: 3.1.18
Real Name: Vlad
Location: Bogotá (Colombia)
Contact:

[SOLVED] SQL error

Post by nanotowers »

Hi folks, i have this error; when i close the ticket.

Mensaje de error: Duplicate entry '27009' for key 'PRIMARY', SQL: 'INSERT INTO article (ticket_id,[..]


Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Wed Nov 19 15:23:15 2014 Message: Duplicate entry '27009' for key 'PRIMARY', SQL: 'INSERT INTO article (ticket_id, article_type_id, article_sender_type_id, a_from, a_reply_to, a_to, a_cc, a_subject, a_message_id, a_in_reply_to, a_references, a_body, a_content_type, content_path, valid_id, incoming_time, create_time, create_by, change_time, change_by) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, '2014-11-19 15:23:15' , ?, '2014-11-19 15:23:15' , ?)' Traceback (1572): Module: Kernel::System::Ticket::Article::ArticleCreate (v1.311.2.2) Line: 252 Module: Kernel::Modules::AgentTicketActionCommon::Run (unknown version) Line: 748 Module: Kernel::System::Web::InterfaceAgent::Run (v1.64) Line: 868 Module: ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_20_28x86_29_OTRS_OTRS_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 49 Module: (eval) (v1.90) Line: 204 Module: ModPerl::RegistryCooker::run (v1.90) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.90) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31
Last edited by nanotowers on 19 Nov 2014, 22:51, edited 1 time in total.
OTRS: 3.1.18, OTRS::ITSM 3.1.10
Apache2/MySQL 5+

NanoTowerS
"Try not to become a man of success, but rather try to become a man of value." - Albert Einstein
nanotowers
Znuny expert
Posts: 204
Joined: 19 Aug 2014, 17:27
Znuny Version: 3.1.18
Real Name: Vlad
Location: Bogotá (Colombia)
Contact:

Re: SQL error

Post by nanotowers »

look the picture
You do not have the required permissions to view the files attached to this post.
OTRS: 3.1.18, OTRS::ITSM 3.1.10
Apache2/MySQL 5+

NanoTowerS
"Try not to become a man of success, but rather try to become a man of value." - Albert Einstein
nanotowers
Znuny expert
Posts: 204
Joined: 19 Aug 2014, 17:27
Znuny Version: 3.1.18
Real Name: Vlad
Location: Bogotá (Colombia)
Contact:

[SOLVED] Re: SQL error

Post by nanotowers »

in the database i created an article with the id 27011, the 27009 and 27010 through an error, so i continue the next article id, in this line the MySQL let me insert the information, so one of my agents try the close a ticket and the problem was fix it. i omitted the article id 27009 and 27010.
OTRS: 3.1.18, OTRS::ITSM 3.1.10
Apache2/MySQL 5+

NanoTowerS
"Try not to become a man of success, but rather try to become a man of value." - Albert Einstein
ecastanos
Znuny newbie
Posts: 1
Joined: 17 Jan 2020, 19:19
Znuny Version: 3.0
Real Name: eduardo castanos

Re: [SOLVED] SQL error

Post by ecastanos »

Hello good morning, how did you solve the problem, I'm new to otrs
zzz
Znuny superhero
Posts: 889
Joined: 15 Dec 2016, 15:13
Znuny Version: All
Real Name: Emin
Company: Efflux GmbH
Contact:

Re: [SOLVED] SQL error

Post by zzz »

Hey,

That sounds like an old bug. You should definitely upgrade your system.

How to fix: It's probably enough if you increase the auto_increment of the article table by one.

Best regards
Emin
Professional OTRS, Znuny & OTOBO services: efflux.de | efflux.de/en/

Free and premium add-ons: German | English
Post Reply