Project: talenddataquality
Issue TDQ-12208: tDqReportRun job can not run when dbconnection use context mode
1. create a mysql connection, click export as context 2. create a column analysis, create a report based on the analysis, set datamart as mysql 3. run report works. 4. generate a tDqReportRun job. run failed. {code} [ERROR]: org.talend.dq.persistence.DatabasePersistence - org.hibernate.PropertyValueException: not-null property references a null or transient value: org.talend.dataprofiler.datamart.hibernate.TdqAnalyzedElement.eltConnectionUuid org.hibernate.PropertyValueException: not-null property references a null or transient value: org.talend.dataprofiler.datamart.hibernate.TdqAnalyzedElement.eltConnectionUuid org.hibernate.engine.Nullability.checkNullability(Nullability.java:72) org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:284) org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:180) org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:108) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186) org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175) org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27) org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70) org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:535) org.hibernate.impl.SessionImpl.save(SessionImpl.java:523) org.hibernate.impl.SessionImpl.save(SessionImpl.java:519) org.talend.dq.persistence.handlertype.AbstractPersistenceHandler.getCacheTdqAnalyzedElement(AbstractPersistenceHandler.java:331) org.talend.dq.persistence.handlertype.ColumnAnaPersistenceHandler.persist(ColumnAnaPersistenceHandler.java:98) org.talend.dq.persistence.handlertype.AbstractPersistenceHandler.persist(AbstractPersistenceHandler.java:159) org.talend.dq.persistence.DatabasePersistence.persist(DatabasePersistence.java:142) org.talend.dataquality.reporting.engine.ReportDocGenerator.historizeData(ReportDocGenerator.java:505) org.talend.dataquality.reporting.engine.ReportDocGenerator.generate(ReportDocGenerator.java:275) local_project.tdqreportrun_1466143900769_0_1.tdqReportRun_1466143900769.tDqReportRun_1Process(tdqReportRun_1466143900769.java:817) local_project.tdqreportrun_1466143900769_0_1.tdqReportRun_1466143900769.runJobInTOS(tdqReportRun_1466143900769.java:1331) local_project.tdqreportrun_1466143900769_0_1.tdqReportRun_1466143900769.main(tdqReportRun_1466143900769.java:1109) _PAp2IDRSEeaxyadYW7rpFw|simple_1_0.1.rep|2016-06-17 14:12:00|2.306|false|Error during historization of data of report simple_1 : not-null property references a null or transient value: org.talend.dataprofiler.datamart.hibernate.TdqAnalyzedElement.eltConnectionUuid [statistics] disconnected {code}
Story points: 1