'TEXT' can not be cast to '[BIGINT]' for the function 'get' issue

'TEXT' can not be cast to '[BIGINT]' for the function 'get' issue

I am having trouble with a new function that I wrote recently. However, I am using the exact same lines to pull the exact same values in a different function I wrote last week. The one from last week works fine, but the one from this week does not. Again, same code and is pulling the same information. Not sure what I'm doing wrong here.

This is the code that it is not liking:

2      CampResp = zoho.crm.searchRecords("CustomModule3","(CustomModule3 Name|==|" + camp + ")");
3      for each  ele in CampResp
4      {
5       CampID = ele.get("CUSTOMMODULE3_ID");
6       YMedium = IFNULL(YMedium,0);
7       I1 = ele.get("Youth Medium Pre-Orders");
8       YM = IFNULL(I1,0);

Failed to execute function
  • 'TEXT' can not be cast to '[BIGINT]' for the function 'get' Line Number:7
Lines 2-5 are pretty standard for several of my functions, so other than the change over to v2 api, they should not be the problem. line 7, I am pulling an Int value from the Custom Module, so not sure why this error is happening. Any help is appreciated. Thanks!