Back up important files before any big step such as a reset or restore. Don't download 'repair' programs suggested online; use only official tools from Microsoft, Apple, Google or your device maker. On work or school devices, ask your IT admin first.
Likely causes
- Temporary network glitch
- Wrong APN settings
- Unpaid bill or no data allowance left with the operator
- Data blocked in the phone's data settings or by an app
Steps you can try
Did that fix it?
Great! If the code comes back, repeat the same steps from the start.
If the steps didn't help, don't push further. See the help section below.
When to get help
If the SIM works in another phone but this phone still has no data, back up and try a factory reset; then take it to a Xiaomi service centre. If the SIM fails in every phone, contact your operator.
Differences between versions
APN details come from your operator; if you are not sure, ask them rather than guessing. Before a factory reset, make sure you know the Mi Account and Google passwords on the phone.
Sources
This page is based on official sources from Microsoft, Apple, Google and other makers, written in our own words. Code meanings can differ between versions.