Issue while creating dynamo script for assigning respective room names and numbers for electrical fixtures

Hi ,
I’m trying to get the room name & number parameters from linked Revit model for Electrical Fixtures in model.
while Running the script i majorly notice 2 warnings .
image .

Anyone Please Help me with this.

Thanks and Regards,
Sriram.R