diff --git a/antarest/study/storage/variantstudy/variant_study_service.py b/antarest/study/storage/variantstudy/variant_study_service.py index db134d18ad..765c9b053a 100644 --- a/antarest/study/storage/variantstudy/variant_study_service.py +++ b/antarest/study/storage/variantstudy/variant_study_service.py @@ -726,7 +726,7 @@ def _generate( export_study_flat( snapshot_path, dst_path, - parent_study, + self.study_factory, outputs=False, output_src_path=output_src_path, ) @@ -738,7 +738,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: