Yes, the parameter is valid.
I created rules of various types and tested them all. Each rule returns a valid ElementId. However, when I attempt to retrieve the element using doc.GetElement(id), it consistently returns null, as described in the original issue.
I created rules of various types and tested them all. Each rule returns a valid ElementId. However, when I attempt to retrieve the element using doc.GetElement(id), it consistently returns null, as described in the original issue.