That issue usually happens when the OneDrive integration in the My Files app loses proper permission during device setup or account migration. Here's what you can try to get it working again:
1. Remove and Reconnect OneDrive in Gallery Settings
Open the Gallery app
Go to Menu (three lines) > Settings > Sync with OneDrive
Tap your Microsoft account > Sign out, then sign back in
This often resets the connection system-wide, including in My Files
2. Clear Cache for My Files and Microsoft OneDrive
Go to Settings > Apps > My Files > Storage > Clear cache
Do the same for Microsoft OneDrive
Then reopen My Files and check OneDrive again
3. Ensure File Access Permissions
Go to Settings > Apps > OneDrive > Permissions
Make sure Files and media or Photos and videos is allowed
4. Force Sync from OneDrive App
Open the OneDrive app directly
Navigate through your folders (this may prompt the system to register the directory in My Files)
Then go back to My Files and check under OneDrive
If that still doesnāt work, try removing the Microsoft account completely from the phone and re-adding it. This usually reinitializes sync and restores visibility.
Let us know if it starts showing up after that.