Error when make a proposal from intervention

Hello,
When I make a proposal from intervention cause the following error:

Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to ‘1’ to remove such notices):
Date: 20180927223512
Dolibarr: 8.0.2
Level of features: 0
PHP: 7.0.32-0ubuntu0.16.04.1
Server: Apache/2.4.18 (Ubuntu)
OS: Linux correu.solatec.cat 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Requested URL: /comm/propal/card.php
Referer: https://192.168.1.1/comm/propal/card.php?action=create&origin=fichinter&originid=168&socid=4
Menu manager: eldy_menu.php

Database type manager: mysqli
Latest database access request error: INSERT INTO llx_element_element (fk_source, sourcetype, fk_target, targettype) VALUES (168, ‘fichinter’, 231, ‘propal’)
Return code for latest database access request error: DB_ERROR_RECORD_ALREADY_EXISTS
Information for latest database access request error: Duplicate entry ‘168-fichinter-231-propal’ for key ‘idx_element_element_idx1’

Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to ‘1’ to remove such notices):
Date: 20180927223512
Dolibarr: 8.0.2
Level of features: 0
PHP: 7.0.32-0ubuntu0.16.04.1
Server: Apache/2.4.18 (Ubuntu)
OS: Linux correu.solatec.cat 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Requested URL: /comm/propal/card.php
Referer: https://192.168.1.1
A/comm/propal/card.php?action=create&origin=fichinter&originid=168&socid=4
Menu manager: eldy_menu.php

Database type manager: mysqli
Latest database access request error: INSERT INTO llx_element_element (fk_source, sourcetype, fk_target, targettype) VALUES (168, ‘fichinter’, 231, ‘propal’)
Return code for latest database access request error: DB_ERROR_RECORD_ALREADY_EXISTS
Information for latest database access request error: Duplicate entry ‘168-fichinter-231-propal’ for key ‘idx_element_element_idx1’

Warning: Cannot modify header information - headers already sent by (output started at /var/www/clients/client1/web51/web/htdocs/core/lib/functions.lib.php:3923) in /var/www/clients/client1/web51/web/htdocs/comm/propal/card.php on line 590

This function works fine in 7.0.0.
The error is produced when button “Create Draft” is pressed.

Any suggestions?

Tanks!!!

Hello,
Message says that you already have a link between said intervention and said proposal.
Did you repeated the operation?
No problem here in 8.0.1

Hello,
Sorry, this one exists, because I’ve been doing many tests.
When I do a new one, the error is:

Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to ‘1’ to remove such notices):
Date: 20180928211711
Dolibarr: 8.0.2
Level of features: 0
PHP: 7.0.32-0ubuntu0.16.04.1
Server: Apache/2.4.18 (Ubuntu)
OS: Linux correu.solatec.cat 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Requested URL: /comm/propal/card.php
Referer: https://dolitest.solatec.cat/comm/propal/card.php?action=create&origin=fichinter&originid=167&socid=33
Menu manager: eldy_menu.php

Database type manager: mysqli
Latest database access request error: INSERT INTO llx_element_element (fk_source, sourcetype, fk_target, targettype) VALUES (167, ‘fichinter’, 233, ‘propal’)
Return code for latest database access request error: DB_ERROR_RECORD_ALREADY_EXISTS
Information for latest database access request error: Duplicate entry ‘167-fichinter-233-propal’ for key ‘idx_element_element_idx1’

Dolibarr has detected a technical error.
This information can be useful for diagnostic purposes (you can set option $dolibarr_main_prod to ‘1’ to remove such notices):
Date: 20180928211711
Dolibarr: 8.0.2
Level of features: 0
PHP: 7.0.32-0ubuntu0.16.04.1
Server: Apache/2.4.18 (Ubuntu)
OS: Linux correu.solatec.cat 4.15.0-34-generic #37~16.04.1-Ubuntu SMP Tue Aug 28 10:44:06 UTC 2018 x86_64
UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0

Requested URL: /comm/propal/card.php
Referer: https://192.168.1.1/comm/propal/card.php?action=create&origin=fichinter&originid=167&socid=33
Menu manager: eldy_menu.php

Database type manager: mysqli
Latest database access request error: INSERT INTO llx_element_element (fk_source, sourcetype, fk_target, targettype) VALUES (167, ‘fichinter’, 233, ‘propal’)
Return code for latest database access request error: DB_ERROR_RECORD_ALREADY_EXISTS
Information for latest database access request error: Duplicate entry ‘167-fichinter-233-propal’ for key ‘idx_element_element_idx1’

Warning: Cannot modify header information - headers already sent by (output started at /var/www/clients/client1/web51/web/htdocs/core/lib/functions.lib.php:3923) in /var/www/clients/client1/web51/web/htdocs/comm/propal/card.php on line 590

But the draft proposal was created, despite the error. And I can validate it without problems.
Tanks!

Hi all!
I tested it in a demo on
https://demo.dolibarr.org/index.php?urlfrom=%2Fpublic%2Fdemo%2Findex.php&disablemodules=adherent,barcode,cashdesk,don,expedition,externalsite,ftp,incoterm,mailmanspip,margin,prelevement,product,productbatch,stock

Is Dolibarr 8.0.1 and the same error… :ohmy:

Tanks!!!