Frequent errors when editing a formula inside a For Each activity

Yes lets focus on the buggy for each beahviour.

  • Take Backup from Studio Development Project
  • delete unneeded for eachs
  • Upgrade UiPath.System.activities to a newer Version but stay at 22.4.X Level (try 22.10 Level when needed, no Jump to 23.X Level)
  • Check and optional delete and remodell the remaining needed for each

Also have a look here:
:ambulance: :sos: [FirstAid] For Each Activity - Forcing TypeArgument - News / Vote on Tutorials - UiPath Community Forum