function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Dilyan DimitrovDilyan Dimitrov 

How to avoid this - “Error: You cannot reassign a recurring task occurrence.”

I am looking to find a work around and solution of the problem  “Error: You cannot reassign a recurring task occurrence.” as I'm assigned to transfer many tasks and most of them are recurring. 

Could you please suggest and help me find an appropriate solution.

 
bob_buzzardbob_buzzard
You need to find the original task that recurs - if the isrecurrence flag is set to true, the RecurrenceActivityId will have the original task id, You need to clone that and assign to the new owner, then delete the recurring instances and the original that you cloned from.
Dilyan DimitrovDilyan Dimitrov
Could you please give an example of code and how this can be achieved programatically. 
kavya akavya a
Using the IsRecurrence field you can know which is the main task that generated the recurrence.

If the strategy applies to your business just clone those tasks with a different owner. Than delete all task which RecurrenceActivityId = taskYouAreClonning. And Last delete the task you just clonned. Using this we can.
bob_buzzardbob_buzzard
I don't have a code example for this I'm afraid - I know how to do it but I haven't had to do it yet.