Hi all
I have a very frustrating issue that is only present in a single environment. All other environments (of the same solution) work as expected.
I have a Gallery that is bound to a Dataverse table. The OnSelect of this gallery is set to something similar to the below with all nested form controls such as labels buttons etc set to Select(Parent):
ClearCollect(colProjects, ThisItem);
In the defective environment, after running the above code the collection now contains all of the Dataverse columns and values for the selected gallery item (This is a good thing). However, in addition the collection now has additional columns/values for each form control (e.g. Fields named Button1, Label1 etc).

I have tried many alternatives also including being specific on the fields that I want the collection to store:
ClearCollect(colProjects, ShowColumns(
ThisItem,
"cr07e_projectsid",
"cr07e_approved",
"cr07e_comments",
"cr07e_contact",
"cr07e_contactid",
"cr07e_finish",
"cr07e_hourstotalstaff",
"cr07e_invoiceid",
"cr07e_invoicenumber",
"cr07e_name",
"cr07e_projecthours",
"cr07e_projectminutes",
"cr07e_start",
"cr07e_unitsbillable",
"cr07e_staffhours",
"cr07e_staffminutes",
"statecode"
)
);
However, the result is that the collection still contains the form controls as columns as well as the Dataverse columns. I have even substituted 'ThisItem' with 'GalleryName.Selected' and get exactly the same result.
Where it gets super interesting is that if I change the collection name from 'colProjects' to a new collection never used in the app, say 'colProjectsTempTest' it works as expected on all of the variations above and only collects the desired Dataverse columns/values.
Has anyone else experienced this behaviour, and what did you do to overcome. Ideally I would like to avoid changing the name of the collection as it is used extensively throughout the app all in slightly different contexts.
Any help would be greatly appreciated!
Thanks, Rob