Thursday, January 2, 2014

Autoconfig Failed with Error: FsCtxFileException: Start of Root Element Expected (Doc ID 876806.1)

On Oracle Applications 11.5.10.2, when attempting to run autoconfig the following error occurs.


Action to be taken : Copy the Data Base Context onto the file system
Result : Download of Context file failed

StackTrace:
java.lang.Exception: java.lang.Exception: oracle.apps.ad.autoconfig.oam.FsCtxFileException: Start of root element expected.
at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateFileSysContext(FileSysDBCtxMerge.java:655)
at oracle.apps.ad.tools.configuration.FileSysDBCtxMerge.updateFileSysFiles(FileSysDBCtxMerge.java:206)
at oracle.apps.ad.context.CtxValueMgt.mergeCustomInFiles(CtxValueMgt.java:1763)
at oracle.apps.ad.context.CtxValueMgt.processCtxFile(CtxValueMgt.java:1579)
at oracle.apps.ad.context.CtxValueMgt.main(CtxValueMgt.java:709)

ERROR: Context Value Management Failed.
Terminate.

CAUSE

The issue is caused by invalid data or corruption in the fnd_oam_context_files table

SOLUTION

To implement the solution, please execute the following steps:

1. Connect to SQL*PLUS as "APPLSYS" user.
(The "APPLSYS" password is always the same as the "APPS" user.)

2. Backup the FND_OAM_CONTEXT_FILES table, for example:

SQL> CREATE TABLE fnd_oam_context_files_bak
AS SELECT * FROM fnd_oam_context_files;

3. Truncate the FND_OAM_CONTEXT_FILES table, for example:

TRUNCATE TABLE fnd_oam_context_files;


4. Re-run Autoconfig on all nodes to repopulate the data.

4 comments:

  1. Thanks,
    You have explain lots of Autoconfig error, but I got the error in adcfgclone appsTier..

    AutoConfig could not successfully execute the following scripts:
    Directory: /u01/oracle/PRODCLN/apps/tech_st/10.1.3/perl/bin/perl -I /u01/oracle/PRODCLN/apps/tech_st/10.1.3/perl/lib/5.8.3 -I /u01/oracle/PRODCLN/apps/tech_st/10.1.3/perl/lib/site_perl/5.8.3 -I /u01/oracle/PRODCLN/apps/apps_st/appl/au/12.0.0/perl -I /u01/oracle/PRODCLN/apps/tech_st/10.1.3/Apache/Apache/mod_perl/lib/site_perl/5.8.3/sun4-solaris-thread-multi /u01/oracle/PRODCLN/inst/apps/PRODCLN_testapp/admin/install
    adadmat.pl INSTE8_APPLY 1


    AutoConfig is exiting with status 31

    RC-50014: Fatal: Execution of AutoConfig was failed
    Raised by oracle.apps.ad.clone.ApplyApplTop
    ERROR: AutoConfig completed with errors. Check logfile at /u01/oracle/PRODCLN/inst/apps/PRODCLN_testapp/admin/log/ApplyAppsTier_05111751.log for details.
    ApplyApplTop Completed Successfully.

    # Checking the status of AutoConfig run of ApplyApplTop
    Warning : AutoConfig has completed with errors .

    Note : you have explain the RC-50014 for dbTier, can you elaborate it for appsTier also

    Thanks

    ReplyDelete
    Replies
    1. This comment has been removed by the author.

      Delete
    2. hi..Tanweer
      i got the same problem with you
      whe ran adcfgclone appstier got that error
      adadmat.pl INSTE8_APPLY1
      have you solved it ?
      my email muhammaddicopriatama@gmail.com
      thanks
      Dico

      Delete
  2. This comment has been removed by the author.

    ReplyDelete