Why can't I trim my polycurve?

I’m trying to trim a polycurve using Curve.ParameterTrimEnd. Why isn’t it working?

Seems like that node doesn’t work with polycurves.

Try using it after approximating the Polycurve with a Curve or Nurbs Curve

Alright. Thanks Vikram