Skip to content

Est. 2011ยทMicrosoft Partner 7033487ยทDelivery under 3 minยทSupport 7 days a week

Your vault is empty.

License Error 0xC004F04F

Visio 0xC004F04F: the licence store is missing its management data

11 min read Updated October 5, 2026 Office & Microsoft 365 Licensing

Fix it now

Microsoft’s published description is exact: the Software Licensing Service reported that license management information was not found in the licenses. Read what the store actually holds before you change anything, because on a machine running both Office and Visio the arrangement you are about to break may well be a supported one.

Run these in an elevated Command Prompt on the machine

cd "C:\Program Files\Microsoft Office\root\Office16"
cscript ospp.vbs /dstatusall
cscript ospp.vbs /dstatus
  1. Write down every product name and the last five characters of every key the output reports. Expect to find more entries than you were told about.
  2. Do not remove anything yet. A perpetual or volume-licensed Visio next to a subscription Office is supported, so an extra entry is not by itself evidence of a problem.
  3. Run Microsoft’s Microsoft 365 activation troubleshooter, or the OLicenseCleanup script it publishes, which clears the licence and identity state in the documented order.
  4. Sign in again for a subscription, or reapply a key with cscript ospp.vbs /inpkey:XXXXX-XXXXX-XXXXX-XXXXX-XXXXX then cscript ospp.vbs /act.

Before running /unpkey on anything, confirm you hold the full 25-character key or the licence record for it. The last five characters shown by /dstatus cannot be used to reinstall a key.

If activation succeeds you can stop here. If it does not, the next section explains what the store holds and which of its entries genuinely do not belong.

Why it happens

Office, Visio and Project on a Click-to-Run install share one licence store. Each entitlement writes its own entries into it – a volume key, a retail key, a subscription token – and the platform reads all of them when an application starts. 0xC004F04F is that platform reporting that the management information it expected to find alongside a licence is not there.

The related codes in this family are duplication errors rather than lookup failures, and the difference decides what you do next. 0xC004F054 is published as license management information having duplicated data. 0xC004F052 is published as the licences containing duplicated properties. Neither is another way of saying “a lookup failed”, and treating them as such sends you hunting for a missing entry when the store actually holds two of something.

Now the part that gets machines broken by well-meaning troubleshooting. Mixing licensing models is not the fault. Microsoft documents Microsoft 365 Apps alongside a volume-licensed Visio LTSC Professional 2024 as supported, and the same for retail Project. What has to match is the installation technology, the architecture and the update channel – and the perpetual releases need a recent enough Microsoft 365 Apps: 2408 or later for the 2024 products, 2108 for 2021, 1808 for 2019. Signing a user out of their subscription to “clean up” a machine like that deactivates working software for no reason.

The other two codes people bring to this error, 30050-1039 and 30020-15, are Click-to-Run setup failures with no published meaning. They come from the installer, not the licensing platform. If those are what you are actually looking at, the deployment log, the previous-version removal and the security software are the places to look, and ospp.vbs will tell you nothing useful.

An entry is present for a product that is no longer installed

You have this one if The status output lists more products than are on the machine, usually after an edition change or a redeployment.

  1. Confirm which products are genuinely installed from Settings, then Apps, then Installed apps.
  2. Confirm you hold the full key for anything you are about to remove.
  3. Remove only the orphaned key: cscript ospp.vbs /unpkey:XXXXX.
  4. Reapply the key that should be there and activate.

The store holds duplicated data rather than missing data

You have this one if The failure reports 0xC004F054 or 0xC004F052 rather than 0xC004F04F.

  1. Read the published meanings: duplicated management data, and duplicated properties in the licences.
  2. Run Microsoft’s activation troubleshooter or OLicenseCleanup rather than removing entries one at a time.
  3. Reapply a single entitlement afterwards and confirm the store lists it once.

The installed build and the key are different products

You have this one if The key installs without complaint, Visio still reports no valid licence, and the About panel names a product you did not expect.

  1. Read the exact product name and version from File, then Account, then About in Visio.
  2. Compare it with the product your key was issued for. A volume key will not activate a retail build, or the reverse.
  3. Redeploy Visio with the product ID that matches your licence, then apply the key.

The product ID in your deployment configuration, not the key, decides which build you get.

An imaged machine inherited licence state from the template

You have this one if A batch of machines built from one image fail identically and all report the same last five key characters.

  1. Confirm the image was generalised before capture. Office licence state should never be captured in an image.
  2. On the affected machines, clear the licence state with Microsoft’s documented reset, then apply the correct entitlement.
  3. Rebuild the template with Office installed but not activated, so each machine licenses itself on first use.

The user identity is the thing that is wrong, not the key

You have this one if The failure follows one person between machines, or appears only after a particular account signs in.

  1. Have the user sign out of Office completely under File, then Account.
  2. Clear the documented per-user state: the HKCU Office 16.0 Common Licensing and Common Identity keys, and the Office entries in Credential Manager under Windows Credentials.
  3. Sign back in, and let the first application finish before opening another.

The user will be asked for their password again, so make sure they know it before you start.

Full reference

What Microsoft actually publishes for each code

Code Published description
0xC004F04F License management information was not found in the licenses
0xC004F052 The licenses contain duplicated properties
0xC004F054 License management information has duplicated data
30050-1039 No published meaning. A Click-to-Run setup failure
30020-15 No published meaning. A Click-to-Run setup failure

Two of those five are duplication errors and two are not licensing codes at all. That is worth internalising before you start, because the remedy for a missing entry and the remedy for a duplicated one are not the same, and neither of them is anywhere near an installer log.

What a mixed machine is allowed to be

Must match Detail
Installation technology All Click-to-Run. A Click-to-Run product and an MSI-based product of the same version cannot share a machine
Architecture All 32-bit or all 64-bit. Mixed architectures are not supported
Update channel One channel across the machine; configure the volume-licensed product to match Microsoft 365 Apps
Microsoft 365 Apps version 2408 or later for the 2024 perpetual releases, 2108 for 2021, 1808 for 2019
Licensing model Does not have to match. Subscription Office with volume-licensed or retail Visio or Project is documented as supported

Do not remove a key or sign a user out because the store contains more than one licensing model. That is a supported arrangement. Remove an entry only when you can say which product it belongs to and confirm that product is not installed on this machine – and only when you hold the full key.

Microsoft’s documented reset, in order

  1. Close every Office application, including Outlook and Teams.
  2. Remove the licence files: %localappdata%\Microsoft\Office\Licenses for a current build, and %localappdata%\Microsoft\Office\16.0\Licensing where shared computer activation is in use.
  3. On a volume-licensed machine, remove keys with cscript ospp.vbs /unpkey:<last5> from C:\Program Files\Microsoft Office\root\Office16, having confirmed you hold the full keys.
  4. Delete the per-user licensing and identity state: HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Licensing and HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Common\Identity.
  5. Remove the Office entries from Control Panel, then Credential Manager, then Windows Credentials.
  6. Restart, open one application, and sign in or reapply the key before opening anything else.

Microsoft publishes automated equivalents of that sequence – the Microsoft 365 activation troubleshooter, and the OLicenseCleanup script for scripted estates – and on any machine you did not build yourself they are the safer route. They clear the same state in the same order without depending on someone reading a registry path correctly at half past five.

When the store looks clean and activation still fails

  • Confirm the Software Protection service is running: sc query sppsvc.
  • Read what the service actually said with cscript ospp.vbs /ddescr:<code> and cscript ospp.vbs /dhistoryacterr.
  • Check whether Visio and Office are genuinely on the same channel and architecture. A mismatch there produces licensing symptoms that look like store damage.
  • Run an Office Online Repair last, not first. It rewrites files and takes a while, and it does not clear licence state, which is what this code is about.
  • If the codes you are seeing are 30050-1039 or 30020-15, stop reading the store. Those are installer failures and the deployment log is where the answer is.

When a licence is the actual fix

If the honest reading of the status output is that this machine has no Visio entitlement of its own – that it has been running on a key belonging to another machine, or on an entry an image left behind – then cleaning the store simply makes the gap visible, and a licence is the fix. Visio LTSC Professional 2024 is the perpetual edition for a machine you want licensed once, by key, with no identity to maintain, and it can sit alongside a subscription Office provided the architecture and update channel match. We supply it, and we check the product name and version from your About panel against the SKU first so the key matches the build you actually have. If the entitlement already exists somewhere in your tenant, use that instead; the status output usually settles it in a minute.

Every code this article covers

Code What it points at Source
0xC004F04F The Software Licensing Service reported that license management information was not found in the licenses Microsoft Learn
0xC004F054 The Software Licensing Service reported that license management information has duplicated data Microsoft Learn
0xC004F052 The Software Licensing Service reported that the licenses contain duplicated properties Microsoft Learn
30050-1039 A Click-to-Run setup failure with no published meaning; look at the deployment log, previous-version removal and security software rather than the licence store not published by the vendor
30020-15 A Click-to-Run setup failure with no published meaning; an installer problem rather than a licensing one not published by the vendor

Confirm the fix worked

  1. cscript ospp.vbs /dstatusall lists exactly the products installed, each once, with a licensed status.
  2. Visio opens and File, then Account shows the expected product with no activation banner.
  3. Word on the same machine reports the same version, channel and architecture under About.
  4. sc query sppsvc shows the Software Protection service running.
  5. Restart and reopen Visio to confirm the state survives rather than reverting.

Questions people ask about this

Can Office and Visio be licensed differently on one machine?

Yes, and Microsoft documents it as supported: Microsoft 365 Apps with a volume-licensed or retail Visio or Project. What must match is the installation technology, the architecture and the update channel, plus a recent enough Microsoft 365 Apps version for the perpetual release involved. Licensing model is not the thing to standardise.

Will reinstalling Office fix this?

Not on its own. A reinstall rewrites files while the store keeps its entries. Clear the licence state using Microsoft’s documented reset, then reinstall or reactivate.

How do I know whether an entry is orphaned?

Compare the status output against what Settings, then Apps, then Installed apps actually lists. An entry for a product that is not installed is orphaned. An entry for a product that is installed is not, whatever channel it came from.

Do I need to buy a licence, or is mine misconfigured?

Read the status output honestly. If it lists a key belonging to a product you own and a second entry is simply also present, this is free to fix. If nothing in it covers Visio, you need the licence and no command substitutes for one.

Why the warning about /unpkey?

It removes the key from the machine permanently, and reinstalling it needs all 25 characters. The status output shows you only the last five, which is enough to tell two keys apart and not nearly enough to put one back.

Related error codes

Was this article helpful?

Your feedback helps us improve our documentation.

Related articles

License Error 0xC004F017 in Office activation: “the license is not installed” explained Free Fix Office 0x4004FC04: the Activation Wizard cannot reach Microsoft servers Free Fix Office 0xC004F001: the licensing service hits an internal error License Error Office 0x4004F00C: Office is unlicensed and running on a grace period
โ† Back to Knowledge Base