Assign subdomain id to the measure

This usually means that you have not used u in your variational form:

Please see

or provide a minimal reproducible example