I found a possible defect in 2022 Update 1 concerning task sequences.
A created task sequence is lost when a custom-code activity is executed prior to adding the first task (Travel) to the new task sequence. See the attached TaskSequenceTest model.
The problem is avoided if a "dummy" (0-second) Delay task is added to the sequence before the custom-code activity and Travel task. See the attached TaskSequenceTest2 model.
This problem occurs in multiple models in the 2022 Update 1 but was not a problem in earlier versions.
Has anyone else seen this?