Hi all,
I've recently came across an issue related to two of my galleries. I don't know why this happens now as it didn't do it before.
When I edit or play my app i see runtime issues within the "App checker". My gallery is marked with an error and displays the following errormessage:
"The requested operation is invalid. Server response <table/datasource> failed: Type 'System.DBNull" with data contract name 'DBNull.........' is not expected. Consider using a DataContractResolver if you are using DataContractSerializer or add any types not know statistically to the list of known types - for example, by using the KnownTypeAttribute attribute or by adding tem to the list of known types passed to the serializer."
I have a combobox and a searchbox from which i filter my gallery from and if i choose a value within the combobox - the error of the gallery dissappears and results are listed in the gallery.
Also, in edit mode - when i adjust the items formula of the gallery, for example removing and adding the last paranthesis - the error also dissappears.
What is annoying is that users of the app will get this error message until they choose a value within the combobox.
I have an idea that might work, it's to not filter any results within the gallery if my combobox is blank but I am unsure of how to do that. I assume I need to use some type if !IsBlank here. The items formula for the gallery is currently:
Search(Filter('DATASOURCE','Model number' in COMBOBOX.SelectedItems),TEXTSEARCHBOX.Text,"TEXTCOLUMN IN DATA SOURCE")
Thanks in advance, appriciate any help!