Set rawData in retrievePathToNode