Forum Discussion

kisuke's avatar
kisuke
Binge Watcher
3 years ago
Solved

getPartialUserData with invalid firstname and lastname

Guys, I'm calling a:

 

userData = store.getPartialUserData("firstname, lastname, email")
if userData <> invalid
   name = userData.firstname + " " + userData.lastname
end if

 

and got the following error:

Type Mismatch. Operator "+" can't be applied to "Invalid" and "String".

I thought firstname and lastname were required in Roku account. Does anyone know of anything that might help?

 

3 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert

    Check each part of userData before you try to concatenate them and just use whichever part isn't invalid as the name.

    • kisuke's avatar
      kisuke
      Binge Watcher

      I understand that I must check if it is invalid. But why do that if they are mandatory fields in the Roku registration?

      • renojim's avatar
        renojim
        Community Streaming Expert

        Good question.  I can't answer that and it's rare than anyone from Roku participates here.  You can try raising the issue with Partner Success, but don't be surprised if you don't get a satisfactory response there either.  I find it easier to work around the many, many, many Roku flaws than to get anyone from Roku to acknowledge or fix them.