When a Purview scan fails, work through four layers in order: credentials, role assignments, the network path and the integration runtime, then scope and file content. Most failures are one of these, and the first three account for scans that used to work and suddenly stop.
This runbook covers Data Map scans of sources such as Azure storage and databases. Error text varies by source and by Purview version, so match the layer, not the exact wording.
Common errors, by layer
| Layer | What you see | Likely cause | Fix |
|---|---|---|---|
| Credentials | Test connection fails, or a scan that worked now fails | Key or secret was rotated or expired | Update the credential in Purview and the Key Vault secret it points to |
| Credentials | Authentication failure with a service principal | Secret expired, wrong application ID | Check the application (client) ID and secret in Entra, then recreate the credential |
| Roles | Access denied on read | Purview identity lacks the reader role on the source | Assign the documented role, such as Storage Blob Data Reader for Blob Storage |
| Roles | Cannot register or scan from the portal | Your Purview role is too low | Data Source Administrator plus a role such as Data Reader on the collection |
| Network | Test connection times out | Firewall or private endpoint blocks the scan | Match the integration runtime and credential to the network setup |
| Runtime | Scan queued or stuck, or fails after an update | Self-hosted integration runtime offline or out of date | Restart it, update it, and confirm it reaches the source |
| Scope | Scan completes but assets are missing | Scope too narrow, or file layout not supported | Widen the scope and check the source's supported structures |
| Content | Files appear without columns | First row is empty, repeated or a number or date | Fix the header row or accept no schema |
Permissions: check the identity that really runs the scan
- Find which credential the scan uses: the Purview managed identity, a user-assigned identity, a service principal or an account key.
- Open the source's access control and confirm that identity holds the role Microsoft documents for that source. For Blob Storage the page names Storage Blob Data Reader.
- Check at which level the role was assigned. A role on a different resource group does not help.
- Check that a role was not removed by a clean-up or policy change. Role changes can take a few minutes to apply.
- For firewalled storage, Microsoft says to use the managed identity and to allow trusted Microsoft services in the network settings.
Network and runtime
- If the source is behind private endpoints, Microsoft's guidance pairs that setup with a self-hosted integration runtime and a service principal or key.
- Microsoft's troubleshooting page says scans of Azure SQL databases that deny public network access can fail when you register many sources at once, and suggests registering a single source instead.
- A scan that once worked and now fails is usually a changed credential, or a self-hosted runtime that is outdated or disconnected. Check both first.
- Read the troubleshooting page for your source type. Each source page has its own section.
Fix order that saves time
- Read the exact error text on the scan run and copy it.
- Test the connection from the scan's settings.
- Check the credential, then the role, then the network, then the runtime.
- Re-run a small scope first, one folder or schema.
- Once it passes, restore the full scope and schedule.
- Write down the cause, so the next person does not repeat the search.
If the error says an account or service is not ready, check the Purview account status in Azure before you change anything on the source.
For setup done right the first time, see the Data Map setup checklist. For the service, see Microsoft Purview consulting. If the scan works but lineage is missing, read what Purview lineage covers.
Prevention
Most scan failures are preventable. Keep a register of scan credentials with their expiry dates and owners. Use managed identities where the network allows, so there is nothing to rotate. Alert on failed scans, not only on the portal's status page. Keep the self-hosted runtime in your patch plan and name an owner for it. After any firewall or network change on a source, run the scan connection test the same day. Write the cause and fix of each failure into a short log, so the second occurrence takes minutes.
Questions we hear
Why did a working scan suddenly fail? Microsoft points first to changed or rotated credentials and to a self-hosted integration runtime that is out of date or disconnected. Check those before anything else.
Which role does Purview need on Blob Storage? Microsoft's Blob Storage page names the Storage Blob Data Reader role for the Purview identity, assigned at subscription, resource group or account level.
Do firewalls stop scans? They can. With a firewall and no private endpoint, Microsoft lists managed identity as the credential, and with private endpoints it lists a self-hosted runtime.
Sources checked November 27, 2026:



