Can you say the data were obtained?

No. While technically 'data' is the plural of 'datum', it is used as a singular collective noun, at least in current US English.

e.g. The data has been obtained. The data was corrupted. Little data exists to support the claim.