Skip to main content
kavyam0002
August 22, 2022
Solved

castinvalid

  • August 22, 2022
  • 2 replies
  • 0 views

am getting above error for the code, correct me if am wrong

    Best answer by deepakg681722

    Could you please check whether you local variable name crAppLimitTempTracker_Cdt is having multiple record. if yes, then you have to use foreach to update the value for the particular index. UpdateDictonary will work on single values not on lists.

    2 replies

    stefanhelzle0001
    Brainy
    August 22, 2022

    That local variable seems to be a list type. Updatedictionary does not work with lists.

    August 22, 2022

    Could you please check whether you local variable name crAppLimitTempTracker_Cdt is having multiple record. if yes, then you have to use foreach to update the value for the particular index. UpdateDictonary will work on single values not on lists.