Can't get warning rating (null value) with Warning.AssignRating

When I try assign ratings to a model warnings, the last 2 values get a ‘null’ result. @Konrad_K_Sobon do you have any idea as to why this is happening?


@monica.greco are the warnings in your custom library?

Yeah, the Warning description is probably not in the library. If it cannot find it in the CSV file it will fail to assign a rating to it.

It would also be a good idea to post the Revit File (preferably just a link to it) and the CSV library so that we can re-create the issue.

Hi @salvatoredragotta and @Konrad_K_Sobon - sorry for the terrible delay at replying to you.
Here’s the revit file for you to download.

And the .csv file

You are correct - the warnings are not in the library, but at the same time, I can’t even get the warning message.

The script does work if I get the warnings by exporting the error report from Revit instead.