Sandbox vs Production Deluge Code Error

Sandbox vs Production Deluge Code Error

Hi, I have bene using this block of code and working on it to get ZOHO to do something for me, all of yesterday it worked fine. Then this morning out of the blue , I start getting this error:

Failed to execute function
  • Argument type mismatch - Found 'TEXT' but Expected '[BIGINT]' for the function 'get' Line Number:16
Now, when i cut and paste that exact same code into production, it works perfectly.

Please advise?

Code is below:

  1. loop = {1,2,3,4,5.6,7,8,9,10};
  2. Contactswithoutcall = List();
  3. for each  ele in loop
  4. {
  5. MyContacts = zoho.crm.searchRecords("Contacts","(Owner:equals:4775614000000386180)",6,200);
  6. if(MyContacts.size() == 0)
  7. {
  8. break;
  9. }
  10. // Get contacts that dont have a scheduled call
  11. for each  rec in MyContacts
  12. {
  13. val = "";
  14. relcalls = zoho.crm.getRelatedRecords("Calls","Contacts",rec.get("id"));
  15. if(relcalls.size() > 0)
  16. {
  17. for each  call in relcalls
  18. {
  19. ctime = call.get("Call_Start_Time").toTime("yyyy-MM-dd'T'HH:mm:ss");
  20. if(ctime > now)
  21. {
  22. val = "Yes";
  23. }
  24. }
  25. }
  26. if(val == "")
  27. {
  28. Contactswithoutcall.add(rec.get("id"));
  29. }
  30. }
  31. }
  32. // info " Contact List;" + Contactswithcall;
  33. info "Account Count : " + Contactswithoutcall.size();