Polygon.ByPoints does not work

I’ve generated a list of coordinates which I’ve used to create 4 points. However, when I simply use a Polygon.ByPoints node to generate a Closed Polygon, it somehow only detects 2 points rather than 4.

Somehow the Surface.byPerimeterPoints work to generate a surface of this trapezoid, but I need the polygon to be able to use for sweeping the shapes into a solid later on.

I am using Dynamo for Civil 3D 2020.

Many thanks if anyone has encountered a similar issue and if they can share some ideas.

(upload://7SzFn6U9e3Mpim5SuvcGAZ411CX.png)