Failing Function

Failing Function

I have a custom function that was working just fine until this week. The workflow is set to create a task for a user whenever they receive an email from a contact:

Workflow
Runs a Function:

  1. user = zoho.crm.searchRecords("Contacts",emailAdd);
  2. taskInfo = Map();
  3. taskInfo.put("Subject","Email Received From " + contactName);
  4. taskInfo.put("Owner",ownerID);
  5. taskInfo.put("$se_module","Accounts");
  6. taskInfo.put("Due_Date",zoho.currentdate);
  7. taskInfo.put("Status","Not Started");
  8. taskInfo.put("Send_Notification_Email",false);
  9. accInfo = {"name":accountName,"id":acc};
  10. taskInfo.put("What_Id",accInfo);
  11. response = zoho.crm.createRecord("Tasks",taskInfo);
Argument Mapping
Reason for failure is: Internal Process Failure. When I run a test execution the function works, but when I activate it it fails every time. Again, this was working fine until the last couple of days.