My Oracle Support Banner

Running the upgradeWebCenterPortal WLST Script Fails with Error: oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/oracle/webcenter/space/metadata/spaces/<portal-name>/space.xml" (Doc ID 2188493.1)

Last updated on OCTOBER 09, 2023

Applies to:

Oracle WebCenter Portal - Version and later
Information in this document applies to any platform.


When running the upgradeWebCenterPortal WLST command to complete the specific upgrade tasks for upgrading WebCenter Portal from 11g to 12c,
the script fails with following errors.




Scope: Name=Portal1, GUID=se83320aa_3049_4033_a06d_317fc533ad10
Status: Scope upgrade failed.
oracle.mds.core.MetadataNotFoundException: MDS-00013: no metadata found for metadata object "/oracle/webcenter/space/metadata/spaces/<PORTAL_NAME>/space.xml"
MDS-00201: PDocument not found in MetadataStore : [store-type=DBMetadataStore app-name=webcenter repository-name=mds-SpacesDS partition-name=webcenter]
at oracle.mds.core.MetadataObject.getBaseMO(
at oracle.mds.core.MDSSession.getBaseMO(
at oracle.mds.core.MDSSession.getMetadataObject(
at oracle.mds.core.MDSSession.getMetadataObject(

Scope: Name=defaultScope, GUID=<GUID>
Status: Scope upgrade failed.
oracle.webcenter.upgrade.framework.exception.UpgradeException: Default Scope cleanup is not attempted due to existing failures in other scopes
at oracle.webcenter.upgrade.framework.UpgradeManager._doCleanUp(
at oracle.webcenter.upgrade.framework.UpgradeManager.doUpgradeInternal(
at oracle.webcenter.upgrade.framework.UpgradeManager.access$000(
at oracle.webcenter.upgrade.framework.UpgradeManager$



[TRACE]: Starting data migration from MDS to database...

[TRACE]: Upgrade may take some time to complete depending on the number of portals and pages in your Oracle WebCenter Portal installation.
To monitor the upgrade progress, refer to the diagnostic log file WC_Spaces-diagnostic.log at the location "/DOMAIN_HOME>/servers/WC_Spaces/logs".

[TRACE]: Data migration from MDS to database is not successfully completed. Please try again.
[TRACE]: Exiting class: LifecycleHandler, method: _doMDSToDBDataMigration

[TRACE]: Failed to upgrade WebCenter Portal application.



Upgrade of 2 Portals/Portal Templates failed.



The issue can be reproduced at will with the following steps:

  1. Upgrade from WebCenter Portal 11g to 12c.

  2. Run the upgradeWebCenterPortal script as follows:

    upgradeWebCenterPortal(appName='webcenter', server='WC_Spaces',migrationDirectory='/tmp/upgrade_log',
    contentServerName='UCM_server1',contentDbConnectionUrl='<HOSTNAME>:<PORT>:<SID>',contentDbUserName='<PREFIX>_OCSERVER', contentDbVendor='Oracle')
    This above command will return the errors.





To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.