Include the dw in the resource file for the project,
OR
Check the "PBD" checkbox in the project's library list.
PowerBuilder does not automatically include the dw in the exe when the dataobject is explicitly set using the dataobject property. But it will include it in the PBD file if this option is chosen.