github-actions[bot] commented on issue #12274:
URL: 
https://github.com/apache/dolphinscheduler/issues/12274#issuecomment-1272467233

   ### 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
   
   press copy workflow button get an error. here's log
   ![Screen Shot 2022-10-09 at 14 18 
46](https://user-images.githubusercontent.com/4263914/194741387-8e829736-54a7-4b40-af3b-5d4fd6a6c5f2.png)
   `[ERROR] 2022-10-09 06:18:41.012 +0000 
org.apache.dolphinscheduler.api.exceptions.ApiExceptionHandler:[53] - 复制工作流错误
   org.springframework.dao.DuplicateKeyException: 
   ### Error updating database.  Cause: org.postgresql.util.PSQLException: 
ERROR: duplicate key value violates unique constraint "t_ds_schedules_pkey"
     Detail: Key (id)=(2) already exists.
   ### The error may exist in 
org/apache/dolphinscheduler/dao/mapper/ScheduleMapper.java (best guess)
   ### The error may involve 
org.apache.dolphinscheduler.dao.mapper.ScheduleMapper.insert-Inline
   ### The error occurred while setting parameters
   ### SQL: INSERT INTO t_ds_schedules  ( id, process_definition_code, 
start_time, end_time, timezone_id, crontab, failure_strategy, warning_type, 
create_time, update_time, user_id, release_state, warning_group_id, 
process_instance_priority, worker_group, environment_code )  VALUES  ( ?, ?, ?, 
?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ? )
   ### Cause: org.postgresql.util.PSQLException: ERROR: duplicate key value 
violates unique constraint "t_ds_schedules_pkey"
     Detail: Key (id)=(2) already exists.
   ; ERROR: duplicate key value violates unique constraint "t_ds_schedules_pkey"
     Detail: Key (id)=(2) already exists.; nested exception is 
org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique 
constraint "t_ds_schedules_pkey"
     Detail: Key (id)=(2) already exists.
        at 
org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:247)
        at 
org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:70)
        at 
org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:91)
        at 
org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:441)
        at com.sun.proxy.$Proxy138.insert(Unknown Source)
        at 
org.mybatis.spring.SqlSessionTemplate.insert(SqlSessionTemplate.java:272)
        at 
com.baomidou.mybatisplus.core.override.MybatisMapperMethod.execute(MybatisMapperMethod.java:59)`
   
   ### What you expected to happen
   
   successfully copy workflow
   
   ### How to reproduce
   
   just press copy workflow
   
   ### Anything else
   
   user pg as database
   
   ### Version
   
   3.1.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