Skip to content
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

integrity constraint violation: NOT NULL check constraint #8

Open
alffwu opened this issue Sep 18, 2017 · 2 comments
Open

integrity constraint violation: NOT NULL check constraint #8

alffwu opened this issue Sep 18, 2017 · 2 comments
Labels

Comments

@alffwu
Copy link

alffwu commented Sep 18, 2017

hello,

I think this is a bug: when retrieving the tasks from Alfresco, Alflytics is expecting to get an assignee for every task, but some tasks may have no assignee in a specific time, for instance, when a task is sent to a group and no one accepted it yet.

This is the error:

2017-09-18 15:57:54,684 ERROR [org.pentaho.di] 2017/09/18 15:57:54 - Execute row SQL script.0 - ERROR (version 7.1.0.0-12, build 1 from 2017-05-16 17.18.02 by buildguy) : Error in step, asking everyone to stop because of:
2017/09/18 15:57:54 - Execute row SQL script.0 - Couldn't execute SQL: INSERT INTO "OPE_ALF_WF_TASKS"("INSTANCE_ID","ID","WF_INSTANCE_ID","NAME","DESCRIPTION","STARTED_AT","DUE_AT","ASSIGNEE","STATE","PRIORITY","TASK_DEFINITION_ID") VALUES (1,'50505','49571','Description','My title 3213',TO_DATE('2017-09-12T16:20:44.466+0000', 'YYYY-MM-DD"T"HH24:MI:SS.FFF'),null,null,'unclaimed',2,'alfrescoUsertask5')
2017/09/18 15:57:54 - Execute row SQL script.0 -
2017/09/18 15:57:54 - Execute row SQL script.0 - integrity constraint violation: NOT NULL check constraint; SYS_CT_10677 table: "OPE_ALF_WF_TASKS" column: ASSIGNEE

So, it seems the column restrinction should be eliminated.

thank you!

@fcorti fcorti added the bug label Sep 18, 2017
@Dnhatsave
Copy link

Dnhatsave commented Sep 19, 2018

hey there,
i had the same problem in some tables using a MySql workbench 6.3.
to solve this issue i've to disable the foreign key checks with this query
SET GLOBAL FOREIGN_KEY_CHECKS=0;

for some reason mysql prevented the execution of this query, probably because of the version or my configurations.

I hope this is useful.

best regards.

@fcorti
Copy link
Owner

fcorti commented Sep 20, 2018

Thank you Decio for sharing your solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants