diff --git a/antarest/study/storage/variantstudy/variant_study_service.py b/antarest/study/storage/variantstudy/variant_study_service.py index c32119c56f..50a96cd1f5 100644 --- a/antarest/study/storage/variantstudy/variant_study_service.py +++ b/antarest/study/storage/variantstudy/variant_study_service.py @@ -846,7 +846,7 @@ def _generate( export_study_flat( snapshot_path, dst_path, - parent_study, + self.study_factory, outputs=False, output_src_path=output_src_path, ) @@ -858,7 +858,7 @@ def _generate( export_study_flat( path_study=path_study, dest=dst_path, - study_factory=parent_study, + study_factory=self.study_factory, outputs=False, ) finally: