diff --git a/CHANGELOG.md b/CHANGELOG.md index dc4fe47243..7e65aab153 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Allow Merge code to be viewed in UI - Fix bug with catalogues not becoming project specific when commit from another project - Improve displayed reason for being unable to make Catalogue Project Specific +- Fix issue with extraction progresses being unable to use temp cohort tables ## [9.2.3] - 2026-05-28 - Fix issue with extractable project data set creation for project specific catalogues diff --git a/Rdmp.Core/DataExport/Checks/SelectedDataSetsChecker.cs b/Rdmp.Core/DataExport/Checks/SelectedDataSetsChecker.cs index da6b040089..5efdcf5946 100644 --- a/Rdmp.Core/DataExport/Checks/SelectedDataSetsChecker.cs +++ b/Rdmp.Core/DataExport/Checks/SelectedDataSetsChecker.cs @@ -305,8 +305,11 @@ private void ComplainIfUserHasHotSwappedCohort(ICheckNotifier notifier, IExtract var whereSql = cohort.WhereSQL(); - if (!rp.SqlExtracted.Contains(whereSql)) + + if (!rp.SqlExtracted.Contains(whereSql) && !rp.SqlExtracted.Contains("The ID of the cohort in #"))//If the Cohort starts with a #, then a temp table was used and we can' use it as a check + { notifier.OnCheckPerformed(new CheckEventArgs(ErrorCodes.CohortSwappedMidExtraction, progress, whereSql)); + } } ///