Dear Power Apps Community,
Whilst building an application I ran into following problem:
I am using the provided code to convert a table (ColNewLabels) to a JSON for further processing, the varRecordsPrint returns this notification: value passed to JSON function contains media and cannot be processed. (The value does not contain any media/attachements.)
Set(varRecordsPrint; CollectionNewLabels);;
Set(VarFormatJson; JSON(varRecordsPrint;JSONFormat.IndentFour));;
Here is the data used:
Legenda in English:
Eén tekstregel = 1 line of text
Datum en tijd = date&time
Persoon of groep = person or group
Getal = number
Any idea's?
Kind regards,
Sébastien
Ended up excluding the columns and using following properties:
Set(varRecordsPrint;DropColumns(CollectionNewLabels;"Author";"Editor";"Modified";"Created"));;
Set(VarFormatJson; JSON(varRecordsPrint;JSONFormat.IndentFour & JSONFormat.IgnoreUnsupportedTypes));;
Thanks again.
No problem. You could also try to swap your format to JSONFormat.IncludeBinaryData and see if that helps.
@akselmb on further investigation this seems to be the issue after all. Thanks.
Hi,
Thanks for replying,
The person/group columns are not being used. I've also tried excluding them by using DropColumns(), didn't work either.
Kind regards
Could it be that the person/group-columns contain images/profile pictures
____________________________________________________
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up. perhaps?
WarrenBelz
146,609
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,946
Most Valuable Professional