The following query works fine, note the quotes around ScopeItemDefinition.Formatted and ProblemDescription.Formatted.
The hardcoded part of the SQL- i.e., and diag.ea_guid = '<DiagramGUID>' - was in the wrong join. Ideally, I would like to replace the hardcoded part of the SQL with something more dynamic. I will try your suggestion parent package suggestion.
select
diagObjs.Sequence
,obj.Object_ID ScopeItemID
,obj.ea_guid ScopeItemGUID
,obj.Object_Type
,obj.Stereotype ScopeItemType
,obj.Name ScopeItem
,obj.Note "ScopeItemDefinition.Formatted"
,case obj.Phase
when '0.0' then 'Out of Scope'
when '0.1' then 'Impacted'
else 'In Scope'
end InScope
,obj.Phase
,prObjs.ProblemType
,prObjs.Problem "ProblemDescription.Formatted"
from t_object obj
inner join t_diagramobjects diagObjs
on obj.Object_ID = diagObjs.Object_ID
and obj.Object_Type <> 'Text'
inner join t_diagram diag
on diagObjs.Diagram_ID = diag.Diagram_ID
and diag.ea_guid = '<DiagramGUID>'
left outer join [dbo].[t_objectproblems] prObjs
on obj.Object_ID = prObjs.Object_ID
order by diagObjs.Sequence