Revit 2019 ScheduleFilter.ByFieldTypeAndValue Check Box Value Error

In my continued effort to up date Dynamo script that ran in 2018 but fail in 2019 Revit, I having trouble trying to get a check box parameter value set in a schedule. In 2018 I would set a yes value with a 1.

In 2019 I’m getting a cast object error:

Project parameter setup for the FT_Elec_RIT_BOX check box:

I tried using true with the error returning a bool issue. I then tried “1”, “Yes”, 1.0 and the ScheduleFilter.ByFieldTypeandValue passed the schedule to the ScheduleView.AddFilter Node but threw an error in the ScheduleView.AddFilter saying that the value didn’t match the FT_Elec_RIT_BOX parameter type.

Anyone else running into this issue, if so what method did you use to over come it.

Thanks in advance Scott…

I forgot to mention I’m on Revit 2019.2 and Dynamo Core 2.0.3.8810.

Here are the other results 1.0:

Yes:

true:

Here are the values contained for that parameter in the elements:

Have you tried it will a “bool” node as the value?

I gave up and I’m just duplicating a schedule template and changing a filter value. This created a much smaller script that works faster now not having to generate all the details that made up all six schedules.

Dropped from 828K to 235K now.

Just had to make up a python script to change the selected filter’s value.

Thanks Scott…

I’ll get back to trying to figure out why it’s not working because there are other routines I uses that are going to run into the same issue.