Skip to main content
kavyam0002
Brainy
Aug 22, 2022 11:34 AM UTC
Solved

castinvalid

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

    Inspiring
    Aug 22, 2022 11:50 AM UTC

    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
    Aug 22, 2022 11:50 AM UTC

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

    Inspiring
    Aug 22, 2022 11:50 AM UTC

    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.