Wall dimensions - One or more dimensions references are or have become invalid

I am trying to create wall dimensions and somehow I keep getting this error. Any ideas?
I read in a revit forum that the wall has been deleted from the central model, but that makes no sense because I am not using a central model, it is a local file.


Here is the workflow. I just created a line, use the wall references, and the active view.