BarForces.GetMaxValuesList operation failed. objet reference not set to an instance of an object dynamo

Dear Dynamo Community,

I am facing an issue in Dynamo and I am hoping to get some guidance on how to resolve it. Specifically, I am getting an error message that says “BarForces.GetMaxValuesList operation failed. Object reference not set to an instance of an object”.

I believe this error is related to the “BarForces” node in my workflow, which is not being initialized correctly before I call the “GetMaxValuesList” method. I have tried a few troubleshooting steps, such as checking the input data and confirming that the node is producing the expected output, but I am still having trouble resolving the issue.

Attached is a screenshot of the error message and a file with the workflow I am working on. If anyone has encountered a similar issue or has any suggestions for how to fix this error, I would greatly appreciate your help. Thank you in advance for your assistance.

Best regards,
[Anas Bentounsi]