PeoplePicker.SelectedPeople JSON parsing error #376
-
When a PeoplePicker component is blank (on app start, or after clearing selection), any reference to it (PeoplePicker.SelectedPeople) returns an error "JSON Parsing Error, Expected 'Array' But Got 'Undefined'" Unlike selecting an empty collection, which would Display "We didn't find any data", Selecting PeoplePicker.SelectedPeople displays "Error". For reference: Suggestions_Items: OnSearch: Gallery with Items: Returns the error in the screenshot |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
I am facing the same error. Is there a workaround for this issue? |
Beta Was this translation helpful? Give feedback.
-
Same here. Any ideas? |
Beta Was this translation helpful? Give feedback.
-
Please try branching to a blank value instead of the PeoplePicker property if there is a blank or error state using following formula in the Items property of the gallery or referring component: |
Beta Was this translation helpful? Give feedback.
-
@Havgo @WinOnMarco @dineshary please let me know whether the workaround works for you. Thank You. |
Beta Was this translation helpful? Give feedback.
-
The workaround suggested worked for me when using the PeoplePicker. Is there any intent to resolve this bug, beyond the workaround? |
Beta Was this translation helpful? Give feedback.
Please try branching to a blank value instead of the PeoplePicker property if there is a blank or error state using following formula in the Items property of the gallery or referring component:
If(!IsBlankOrError(DataCardValue6_1.SelectedPeople),DataCardValue6_1.SelectedPeople, Blank())