-
Bug
-
Resolution: Fixed
-
Blocker
-
1.8.1
-
None
-
4.6 M9
Steps to reproduce (on ODF demo)
- Create an extraction with the following query:
- Type: empty
- Content type: Program
- Columns: childProgramParts.workflowStep
- Run it
- The result file is empty and you get the following error into the logs:
2022-12-20 12:09:23,481 ERROR [org.ametys.core.schedule.AmetysJob$org.ametys.plugins.extraction.execution.ExecuteExtractionSchedulable] (AmetysRuntimeScheduler_Worker-2;) An exception occured during the execution of the Schedulable 'org.ametys.plugins.extraction.execution.ExecuteExtractionSchedulable' java.lang.IllegalArgumentException: Item 'childProgramParts/workflowStep' not found in models: 'Optional[org.ametys.plugins.odf.Content.program]'. at org.ametys.runtime.model.ViewHelper.createViewItemAccessor(ViewHelper.java:125) at org.ametys.runtime.model.View.of(View.java:113) at org.ametys.cms.search.cocoon.ContentResultSetHelper._buildViewFromResultFields(ContentResultSetHelper.java:121) at org.ametys.cms.search.cocoon.ContentResultSetHelper.saxResultFields(ContentResultSetHelper.java:97) at org.ametys.plugins.extraction.component.QueryExtractionComponent.saxContents(QueryExtractionComponent.java:263) at org.ametys.plugins.extraction.component.AbstractGroupExtractionComponent.saxGroup(AbstractGroupExtractionComponent.java:128) at org.ametys.plugins.extraction.component.QueryExtractionComponent.processContents(QueryExtractionComponent.java:224) at org.ametys.plugins.extraction.component.AbstractSolrExtractionComponent.executeComponent(AbstractSolrExtractionComponent.java:347) at org.ametys.plugins.extraction.component.AbstractExtractionComponent.execute(AbstractExtractionComponent.java:102) at org.ametys.plugins.extraction.execution.ExtractionExecutor._noVarExecute(ExtractionExecutor.java:342) at org.ametys.plugins.extraction.execution.ExtractionExecutor._doExecuteForPathWithNoVar(ExtractionExecutor.java:329) at org.ametys.plugins.extraction.execution.ExtractionExecutor._doExecute(ExtractionExecutor.java:307) at org.ametys.plugins.extraction.execution.ExtractionExecutor._execute(ExtractionExecutor.java:148) at org.ametys.plugins.extraction.execution.ExtractionExecutor.execute(ExtractionExecutor.java:106) at org.ametys.plugins.extraction.execution.ExecuteExtractionSchedulable._doExecute(ExecuteExtractionSchedulable.java:97) at org.ametys.cms.schedule.AbstractSendingMailSchedulable.execute(AbstractSendingMailSchedulable.java:81) at org.ametys.core.schedule.AmetysJob.execute(AmetysJob.java:151) at org.quartz.core.JobRunShell.run(JobRunShell.java:202) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573)
- The result file is empty and you get the following error into the logs: