OneDrive shows its status on the cloud icon in the taskbar and on each file. A blue cloud with arrows means it is syncing. A red circle with an X means a file failed. A cloud with a slash means OneDrive is paused or signed out. Start by selecting the cloud icon; it usually says what is wrong.

1. Check the OneDrive status
Select the OneDrive cloud icon in the system tray. If you see Paused, select Resume syncing. If you see errors, select View sync problems to get a list of affected files.
2. Restart OneDrive
In the OneDrive panel, select the Settings gear › Quit OneDrive. Then open OneDrive again from the Start menu.
3. Check your storage
Free OneDrive accounts include 5 GB. Microsoft 365 plans include 1 TB. When cloud storage is full, syncing stops. Check Settings › Accounts › OneDrive or the storage bar in the OneDrive panel. Also check that your PC drive has free space.
4. Rename files with invalid names
OneDrive will not sync names containing " * : < > ? / \ |, names starting or ending with a space, or reserved names such as CON or desktop.ini. Paths longer than 400 characters also fail. Shorten deeply nested folder names.
5. Close files that are open
Office files open in another app, or files locked by a program, wait until they are closed. Close the app and the file syncs.
6. Turn off Battery saver and metered connection pause
OneDrive pauses automatically on battery saver and on metered networks. In OneDrive settings › Sync and back up › Advanced settings, turn off Pause syncing when this device is in battery saver mode and Pause syncing when this device is on a metered network.

7. Check the folders you chose to sync
Open OneDrive settings › Account › Choose folders. A folder that is not ticked will not appear on this PC.
8. Unlink and relink the PC
In Settings › Account, select Unlink this PC, then sign in again. Your files stay in the cloud and resync.
9. Reset OneDrive
Press Win + R and run the command below. OneDrive restarts with a fresh sync database. Files are not deleted, but it rechecks everything, which can take a while.

%localappdata%\Microsoft\OneDrive\onedrive.exe /reset
If OneDrive does not reopen within a few minutes, start it manually from the Start menu.
10. Reinstall OneDrive
Uninstall Microsoft OneDrive from Settings › Apps › Installed apps, then download the latest version from Microsoft and install it.
A note on Known Folder backup
If Desktop, Documents and Pictures are backed up to OneDrive, those folders now live inside your OneDrive folder. Removing them from OneDrive without stopping the backup first can make files look missing. Stop backup in Sync and back up › Manage back up before you change anything.