Error when saving to an OrderedDataStore: "Status code: Conflict (InvalidKey)"

While solo testing in studio, saving a numeric value to an OrderedDataStore using SetAsync and a Player’s UserId as a key has randomly started causing this error:

RobloxStudioBeta_Mi8mMq53G1
I’m not really sure what I’m doing wrong & this looks to me like it’s an error with Roblox’s engine, but I’m not sure, hence why I posted here before posting a bug report.

Any fixes?

Turns out that if you pass an empty string or a string with just whitespaces with GetDataStore or GetOrderedDataStore, it gives you that when trying to set values.

Accidentally cut my DataStore name, somehow.

1 Like