diff --git a/sdv/sequential/par.py b/sdv/sequential/par.py index ccd8a974f..98d8e4b6d 100644 --- a/sdv/sequential/par.py +++ b/sdv/sequential/par.py @@ -264,7 +264,9 @@ def auto_assign_transformers(self, data): # Ensure that sequence index does not get auto assigned with enforce_min_max_values if self._sequence_index: sequence_index_transformer = self.get_transformers()[self._sequence_index] - if sequence_index_transformer.enforce_min_max_values: + if sequence_index_transformer and getattr( + sequence_index_transformer, 'enforce_min_max_values', False + ): sequence_index_transformer.enforce_min_max_values = False def _preprocess(self, data):