Functions stop working last week

Functions stop working last week

We have multiple functions that stop working, i have been informed that it is API V2 integration related.  but from the information i read the sunset date is dec 2019. it shouldn't have stop working right?

I have been getting this error when i execute.. if it is API V2 related how do i correct this error..

Warning: Deprecated V1 integration tasks exist. Make sure you migrate them to V2.

Failed to execute function
Error at line number: 3
'TEXT' can not be cast to 'Long'.



This is my script..
GSI = zoho.crm.v1.getRecordById("CustomModule1",serviceID.toLong()); GCI = zoho.crm.v1.getRecordById("Contacts",contactID.toLong()); ///////////////FORM API///////////////////////// APITokenID = "api_tGyfghfghfghddccvbDtxdc7eZc"; APITokenSecret = "LGDmwEWfghfghfghcvbbntx_cJhkjkwGRKJh_412s"; templateID = "tpl_fRFfcvbgfhfghMbFAFzm"; base64EncodedLogin = zoho.encryption.base64Encode(APITokenID + ":" + APITokenSecret); header2Map = Map(); header2Map.put("Authorization","Basic " + base64EncodedLogin); /////REQUEST DATA MAP///// request2Map = Map(); request2Map.put("data[contact_id]",ifnull(GSI.get("Contacts_ID"),"")); request2Map.put("data[contacts]",ifnull(GSI.get("Contacts"),"")); request2Map.put("data[courriel_distributeur]",ifnull(GSI.get("Courriel distributeur"),"")); request2Map.put("data[created_time]",ifnull(GSI.get("Created Time"),"")); request2Map.put("data[custommodule1_id]",ifnull(GSI.get("CUSTOMMODULE1_ID"),"")); request2Map.put("data[date_authorisation]",ifnull(GSI.get("Date d'authorisation"),"")); ///////CONTACT DATA MAP////// request2Map.put("data[numero_compte_contact]",ifnull(GCI.get("Numéro de compte"),"")); request2Map.put("data[otherphone]",ifnull(GCI.get("Other Phone"),"")); request2Map.put("data[phone]",ifnull(GCI.get("Phone"),"")); request2Map.put("data[street]",ifnull(GCI.get("Mailing Street"),"")); request2Map.put("data[workphone]",ifnull(GCI.get("Work Phone"),"")); request2Map.put("data[zip]",ifnull(GCI.get("Mailing Zip"),"")); info request2Map; response = postUrl("https://api.formapi.io/api/v1/templates/" + templateID + "/submissions",request2Map,header2Map); //info response; Json = response.getJSON("submission"); JsonList = Json.toJSONList(); SubTemplateID = JsonList.getJSON("id"); url = "https://api.formapi.io/api/v1/templates/" + SubTemplateID; urlPDF = "https://app.formapi.io/api/v1/submissions/" + SubTemplateID + "/download/" + SubTemplateID + ".pdf"; getUrl2 = getUrl(urlPDF); info response; openUrl(urlPDF,"new window"); return "";
------------------------------------------------------------------------------------------------------------------------
Or this one I get...
  Warning: Deprecated V1 integration tasks exist. Make sure you migrate them to V2.

Failed to execute function
Error at line number: 7
'TEXT' can not be cast to '[BIGINT]' for the function 'get'


Script:...
GetInfo = zoho.crm.v1.getRecordById("CustomModule1",serviceID.toLong()); //info GetInfo; createMap = Map:String(); createMap.put("Nom Service","Nouvelle Fiche"); createMap.put("Contacts_ID",GetInfo.get("Contacts_ID")); //createMap.put("Opprtunités_ID",ifnull(GetInfo.get("Opprtunités_ID"),"")); //createMap.put("Numéro de compte",GetInfo.get("Numéro de compte")); //createMap.put("Zone de service",GetInfo.get("Zone de service")); createMap.put("Statut","Ceduler"); createMap.put("Objet","Réparation"); createMap.put("Date du R-V",""); createMap.put("Agenda de","Martin Bergeron"); createMap.put("Document","Facture Wilson"); createMap.put("Num. Contrat",GetInfo.get("Num. Contrat")); createMap.put("Magasin",GetInfo.get("Magasin")); createMap.put("Représentant",GetInfo.get("Représentant")); createMap.put("Date d'installation",GetInfo.get("Date d'installation")); createMap.put("Installateur",GetInfo.get("Installateur")); createMap.put("Distributeur",""); createMap.put("Montant",GetInfo.get("Montant")); createMap.put("Date commander",""); createMap.put("Note commande",""); createMap.put("Numéro de facture d'achat",""); createMap.put("Numéro de facture du crédit",""); createMap.put("Marque 1",GetInfo.get("Marque 1")); createMap.put("Marque 2",GetInfo.get("Marque 2")); createMap.put("Marque 3",GetInfo.get("Marque 3")); createMap.put("Marque 4",GetInfo.get("Marque 4")); createMap.put("Marque 5",GetInfo.get("Marque 5")); createMap.put("Model 1",GetInfo.get("Model 1")); createMap.put("Model 2",GetInfo.get("Model 2")); createMap.put("Model 3",GetInfo.get("Model 3")); createMap.put("Model 4",GetInfo.get("Model 4")); createMap.put("Model 5",GetInfo.get("Model 5")); createMap.put("Produit 1",GetInfo.get("Produit 1")); createMap.put("Produit 2",GetInfo.get("Produit 2")); createMap.put("Produit 3",GetInfo.get("Produit 3")); createMap.put("Produit 4",GetInfo.get("Produit 4")); createMap.put("Produit 5",GetInfo.get("Produit 5")); createMap.put("Serie 1",GetInfo.get("Serie 1")); createMap.put("Serie 2",GetInfo.get("Serie 2")); createMap.put("Serie 3",GetInfo.get("Serie 3")); createMap.put("Serie 4",GetInfo.get("Serie 4")); createMap.put("Serie 5",GetInfo.get("Serie 5")); createMap.put("Note équipement installer",GetInfo.get("Note équipement installer")); createMap.put("Gar. equipement",GetInfo.get("Gar. equipement")); createMap.put("Gar. main d'oeuvre",GetInfo.get("Gar. main d'oeuvre")); createMap.put("Notes",GetInfo.get("Notes")); createMap.put("Assureure",GetInfo.get("Assureure")); createMap.put("Date d'expiration",GetInfo.get("Date d'expiration")); createMap.put("Type de couverture",GetInfo.get("Type de couverture")); createMap.put("Num. du plan",GetInfo.get("Num. du plan")); createMap.put("Technicien","MRN Maple"); RespClone = zoho.crm.v1.create("CustomModule1",createMap); currentid = RespClone.get("Id"); url = "https://crm.zoho.com/crm/EditEntity.do?module=CustomModule1&id=" + currentid; openUrl(url,"Same window"); return "";