Add schedule filter for an integer parameter

I’m having trouble adding a filter to my material takeoff schedules.

The filter is for filtering a [shared, family instance, integer] parameter, called “pos_nummer”.
To be able to filter the items shown in the schedule by their position number, like this:

Now, i’ve got the creation of the schedules and setting everything else, working.
Including setting the first filter of “Material: Comments” -> Contains -> “pos_schedule”

But when I try to add the other filter, i get an error:

Warning: ScheduleView.AddFilters operation failed.
The filter value is not valid for the field and filter type.
Parameter name: filter

I think this is because the ScheduleFilter.ByFieldTypeAndValue node won’t accept an integer value, but if I use a string or double value, the ScheduleView.AddFilters node won’t accept it because type of parameter it’s trying to filter on, is an integer?

Below a screenshot and the dyn and rvt file.


schedule_creation_v0.6.dyn (136.0 KB)

schedule_creation_testfile.rvt (1.9 MB)