Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
kisuke
Binge Watcher

getPartialUserData with invalid firstname and lastname

Jump to solution

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?

 

0 Kudos
1 Solution

Accepted Solutions
renojim
Community Streaming Expert

Re: getPartialUserData with invalid firstname and lastname

Jump to solution

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

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.

View solution in original post

0 Kudos
3 REPLIES 3
renojim
Community Streaming Expert

Re: getPartialUserData with invalid firstname and lastname

Jump to solution

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

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
kisuke
Binge Watcher

Re: getPartialUserData with invalid firstname and lastname

Jump to solution

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

0 Kudos
renojim
Community Streaming Expert

Re: getPartialUserData with invalid firstname and lastname

Jump to solution

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.

Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.