Error while opening task link from interface

Certified Senior Developer

I have created one process report and then I fetched the process report data in grid by using a!queryProcessAnalytics function. then i have created link for user to complete the task(for link i have used a!processTasklink function) . when i click on the link it shows this error,

the code for process task link,

please suggest a way to solve this error  and Is their any alternate way to do it? .

  Discussion posts and replies are publicly visible