I have a grid where the items selected are being filtered based on the value selected in a dropdown and toggle control as shown below.

The dropdown items are coming from '[Active].[Model]', displaying the ModelName (nothing fancy). The grid is pulling items from a SQL view and the Items property on the grid is really straight forward:
Filter(
'[Active].[vwModelReasonCodes]',
ModelId = Dropdown8.Selected.ModelId,
IsScrapReason = If(Toggle2.Value, 1, 0)
)
When I comment out the first filter expression, everything works great, but when I include it, I get this error: "An identifier was expected at position 52." What's even more strange is that the app works great in the designer but not in the PowerApps desktop app, or when using the app in the browser.
In doing a bit more troubleshooting, I opened the browser dev toolbar and found some strange behavior. The request to get the data from vwModelReasonCodes looks like this:
To make it easier to read I've decoded the query parameters below:
I assume this is producing a SQL statement that looks something like this:
SELECT TOP 100
IsScrapReason,ModelName,ReasonText,FaultDescription,57dfb1b5-7d79-4046-a4da-fd831d5befe1-KeyId
FROM [Active].[vwModelReasonCodes]
WHERE (ModelId eq 23)and(IsScrapReason eq 0)
So I'll state the obvious that there is no column named "57dfb1b5-7d79-4046-a4da-fd831d5befe1-KeyId" in my view.
Again, this problem goes away as soon as I comment out the "ModelId = Dropdown8.Selected.ModelId" filter.
Any help with this would be very much appreciated!
HAR file attached for reference.