what does this error mean "Expression evaluation error : Invalid index: Cannot index property 'data' of type Text into type List of Variant"?

I am able to get that it's something related to invalid index value but here I'm not able to get why it's saying "'data' of type Text" in the error where "data" in the datasubset is a type of Dictionary not text?

  Discussion posts and replies are publicly visible

Parents
  • Hi

    User is trying to access data field from a null dictionary structure. Have a look to below two variables:

    a!localVariables(
    local!dictionary1: {
    data: null,
    pagingInfo: null
    },
    local!dictionary2: {
    null
    },
    local!dictionary1.data
    )

    Here if user access .data from "local!dictionary1" then it will work as it has defined structure with null values where as it won't for "local!dictionary2" as structure itself is null.

    Looks like your scenario is similar to local!dictionary2. 

Reply
  • Hi

    User is trying to access data field from a null dictionary structure. Have a look to below two variables:

    a!localVariables(
    local!dictionary1: {
    data: null,
    pagingInfo: null
    },
    local!dictionary2: {
    null
    },
    local!dictionary1.data
    )

    Here if user access .data from "local!dictionary1" then it will work as it has defined structure with null values where as it won't for "local!dictionary2" as structure itself is null.

    Looks like your scenario is similar to local!dictionary2. 

Children
No Data