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 MARCH 08, 2017

Applies to:

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

Symptoms


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.


ERROR



UpgradeDetails.log:

 

-------------------------------------------------------
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(MetadataObject.java:1917)
at oracle.mds.core.MDSSession.getBaseMO(MDSSession.java:5266)
at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:2128)
at oracle.mds.core.MDSSession.getMetadataObject(MDSSession.java:2056)
...

-------------------------------------------------------
Scope: Name=defaultScope, GUID=s8bba98ff_4cbb_40b8_beee_296c916a23ed
-------------------------------------------------------
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(UpgradeManager.java:474)
at oracle.webcenter.upgrade.framework.UpgradeManager.doUpgradeInternal(UpgradeManager.java:341)
at oracle.webcenter.upgrade.framework.UpgradeManager.access$000(UpgradeManager.java:90)
at oracle.webcenter.upgrade.framework.UpgradeManager$1.run(UpgradeManager.java:183)
...

 



UpgradeDiagnostic.log:

[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 "/refresh/oracle/product/Middleware/user_projects/domains/wc_domain/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.

 


UpgradeSummary.log:

Upgrade of 2 Portals/Portal Templates failed.

 



STEPS

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='fmw12c.vm.oracle.com:1521:orcl01',contentDbUserName='DEV_OCSERVER', contentDbVendor='Oracle')
     
    This above command will return the errors.

 

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms