Zoho Flow. Zoho deluge update record issue.

Zoho Flow. Zoho deluge update record issue.

Hello. I have an issue with Zoho Flow custom function.

I'm trying to update a Zoho Desk Ticket.
It works fine, except one field. 
It is impossible to update a ticket status which has a CLOSED status type.

Here an example: 


This function works fine. But if I try to change statuses to CLOSED it throws this error. 

I tried to execute this function from different accounts with different permissions. I even tried to use an owner`s acc. It didn't help.

P.S
If I execute this code from Zoho Desk function, it will works fine, independently of statuses. Maybe it will help to understand the issue.