Door and Room query with python

Hello, I can’t really help with the “warning” part of your workflow, but I would give two advice here:
First, you could get an Excel schedule very simply by exporting a Revit schedule. This can be done through Dynamo using Bimorph Nodes, see here:

You would need to write the IDs first as doors parameters (with an Element.SetParameterByName node).
But second, I would rather use GUIDs because they are more stable than IDs, see here:

Once this is in place, you can add any other parameter to your schedule, such as a boolean coming from a filter by width: