The warning "Expected a different collection record structure" means the data you are passing to your component’s DataSource property does not exactly match the schema your component expects.
Since your component’s DataSource property is defined as a table of records with fields like:
[
{ Title: "", Image: "", Screen: "" }
]
but SharePoint list likely has a different schema (for example, it may not have a Screen column, or the Image field structure differs), Power Apps raises this warning.
Normalize the SharePoint data to match the component schema before passing it in: Let's use a ForAll or AddColumns to create a collection or table with exactly the fields your component expects.
Example:
ClearCollect(
colNormalizedData,
AddColumns(
MySharePointList,
"Screen", Blank() // or set to a default screen if needed
)
)
Then pass colNormalizedData to your component’s DataSource property.
Ensure the field names and types exactly match:
Title should be a text field.
Image should be a URL string or the exact image format your component expects.
Screen should be a screen reference or blank if not used.
If your SharePoint Image column is complex (e.g., a record with .Value), extract the URL:
ClearCollect(
colNormalizedData,
AddColumns(
MySharePointList,
"Image", ImageColumn.Value,
"Screen", Blank()
)
)
Pass the normalized collection to the component:
MyComponent.DataSource = colNormalizedData
I am sure some clues I tried to give. If these clues help to resolve the issue brought you by here, please don't forget to check the box Does this answer your question? At the same time, I am pretty sure you have liked the response!