ossDataEngineer opened a new issue, #17279:
URL: https://github.com/apache/dolphinscheduler/issues/17279

   ### Search before asking
   
   - [x] I had searched in the 
[issues](https://github.com/apache/dolphinscheduler/issues?q=is%3Aissue) and 
found no similar issues.
   
   
   ### What happened
   
   When I set a new alarm instance of any kind, I can no longer create new 
workflows. I see UI error popup indicating "Create Process Definition Error"
   
   Logs on API Server indicating problem with t_ds_listener_event table inserts
   
   ```
   [INFO] 2025-06-23 18:15:15.741 +0000 
o.a.d.a.s.i.ProcessDefinitionServiceImpl:[395] - Save process definition 
complete, processCode:144662646507328, processVersion:1.
   [INFO] 2025-06-23 18:15:15.745 +0000 
o.a.d.a.s.i.ProcessDefinitionServiceImpl:[406] - Save process task relations 
complete, projectCode:144127344457824, processCode:144662646507328, 
processVersion:1.
   [ERROR] 2025-06-23 18:15:15.749 +0000 o.a.d.a.e.ApiExceptionHandler:[47] - 
Meet en unknown exception:
   org.springframework.dao.DataIntegrityViolationException:
   ### Error updating database.  Cause: org.postgresql.util.PSQLException: 
ERROR: null value in column "id" of relation "t_ds_listener_event" violates 
not-null constraint
     Detail: Failing row contains (null, 
{"id":22,"code":144662646507328,"name":"testworkflow","version":..., 
12350227649b287fd2a0399f234d5144838a73ac711af8d0c7e3dbdbb5727a46, 0, 1, null, 
2025-06-23 18:15:15.747, 2025-06-23 18:15:15.747).
   ### The error may exist in 
org/apache/dolphinscheduler/dao/mapper/ListenerEventMapper.java (best guess)
   ### The error may involve 
org.apache.dolphinscheduler.dao.mapper.ListenerEventMapper.insert-Inline
   ### The error occurred while setting parameters
   ### SQL: INSERT INTO t_ds_listener_event  ( content, sign, event_type, 
post_status,  create_time, update_time )  VALUES  ( ?, ?, ?, ?,  ?, ? )
   ### Cause: org.postgresql.util.PSQLException: ERROR: null value in column 
"id" of relation "t_ds_listener_event" violates not-null constraint
     Detail: Failing row contains (null, 
{"id":22,"code":144662646507328,"name":"testworkflow","version":..., 
12350227649b287fd2a0399f234d5144838a73ac711af8d0c7e3dbdbb5727a46, 0, 1, null, 
2025-06-23 18:15:15.747, 2025-06-23 18:15:15.747).
   ; ERROR: null value in column "id" of relation "t_ds_listener_event" 
violates not-null constraint
     Detail: Failing row contains (null, 
{"id":22,"code":144662646507328,"name":"testworkflow","version":..., 
12350227649b287fd2a0399f234d5144838a73ac711af8d0c7e3dbdbb5727a46, 0, 1, null, 
2025-06-23 18:15:15.747, 2025-06-23 18:15:15.747).; nested exception is >
     Detail: Failing row contains (null, 
{"id":22,"code":144662646507328,"name":"testworkflow","version":..., 
12350227649b287fd2a0399f234d5144838a73ac711af8d0c7e3dbdbb5727a46, 0, 1, null, 
2025-06-23 18:15:15.747, 2025-06-23 18:15:15.747).
   ```
   
   Apache Dolphin Version: 3.2.2
   Apache Zookeeper Version: 3.8.4
   
   
   ### What you expected to happen
   
   User should be able to create/update workflows. Creating alarm instance 
should not hamper their creation, as they are independent components.
   
   ### How to reproduce
   
   1. Create alarm instance
   2. Create a new workflow with one task
   3. Try saving the workflow, you will see "create process definition error" 
and api logs should show above error logs
   
   ### Anything else
   
   _No response_
   
   ### Version
   
   3.2.x
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to