In reply to cgales:
DataPath is a package where XactionSbCfg is included like `include “XactionSbCfg.svh”
scope is not a problem.i removed it and checked, still same problem.
class XactionSbCfg extends uvm_object;
bit some_var;
…
…
.
uvm_object_utils_begin (XactionSbCfg)
uvm_field_int ( PrintAddAndCompareMessage, UVM_ALL_ON )
…
.
`uvm_object_utils_end