-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error 23052 when creating manufacturing order #14292
Comments
dolibarr log for this issue 2020-07-27 22:19:57 DEBUG 192.168.1.137 Mo::createCommon create |
Hi, Could check the definition of the field tms on the llx_mrp_mo table ? https://github.com/Dolibarr/dolibarr/blob/develop/htdocs/install/mysql/tables/llx_mrp_mo.sql#L30 |
Try to run the following command on your postgres database: CREATE TRIGGER update_customer_modtime BEFORE UPDATE ON llx_mrp_mo FOR EACH ROW EXECUTE PROCEDURE update_modified_column_tms(); Then restart to create a MO |
Hello, still doesn't work, this issue should have not been closed before the author's feedback i guess... Anyway, triggers have been well created (double checked with pgadmin) but same error, same message, same dolibarr log. Not an expert but the trigger is set up to be ran when a row is updated.. but in this case the table is empty, brand new and there is nothing updated, BUT created... seems not abnormal that the trigger is not executed. And like the column tms has a not null constraint it fails |
Then, i've changed the tms definition from 'NOT NULL' to nothing and the mo creation worked fine. And changed back from the definition from nothing to 'NOT NULL', i've made a modification and it worked fine again |
To be complete, setting back NOT NULL once the MO is created works fine, no problem to modifiy, but still impossible to create a new one. Then i'm obliged to keep tms with NO 'NOT NULL' constraint in order to go ahead until the cause of the problem is really identified |
Bug
When I create a manufacturing order from a BOM which has only one entry the error 23502 pops up and no manufacturing order was created. The exact message is:
ERROR: 23502: null value in column 'tms' violates not-null constraint DETAIL: Failing row contains (4, , 1, null, 75, 6, null, null, null, 2020-07-26 21:24:33, null, null, 1, null, null, null, null, 0, 198, null, null, 2, null). SCHEMA NAME: public TABLE NAME: llx_mrp_mo COLUMN NAME: tms LOCATION: ExecConstraints, execMain.c:2017
Environment
Expected and actual behavior
expected a new MO is created - actually nothing
Steps to reproduce the behavior
[Verbose description]
Attached files (Screenshots, screencasts, dolibarr.log, debugging informations…)
[Files]
20200726_Mo.pdf
The text was updated successfully, but these errors were encountered: