• In fact, this is my error.

    I was using object_name(rsc_objid) not being in the rigth DB .

    Forget all that.

    Best regards

    Carl