@ArpanBala
With the addition of the row number column in your Items property, you have changed the schema of the record for the form and it is no longer compatible with your datasource.
There are a couple of ways to resolve this.
Usually it is to drop the column in your Items of the gallery, but you are using that to color your rows...
So, you will need to drop it to the form.
You could issue a LookUp in the select or in the Item property of your form, but I personally would rather not make another trip to the datasource since you already have the data.
The trick though is this...the DropColumns function expects a table, and your record...well, it's a record.
First(DropColumns(Table(Gallery2.Selected), "rowNumber"))
This will convert your record to a table, then perform the table function - DropColumns - on that table to remove the column, then it will return the First (and only) record of that table.
I hope this is helpful for you.