Check the GetPidlFromDataObject's doSelected parameter before calling