Saturday, 6 May 2017

Input Record Does not have a valid Id

Hi All, Today I was Facing some weird Exception , I didn’t understand at the First then I started understanding that the Exception was due to the Deployment Template, below is the trace of the Exception.

ERROR /atg/search/repository/BulkLoader -
atg.repository.search.indexing.IndexingException: Error sending record atg.endeca.index.record.Record@c28a71bd

Root cause: Input record does not have a valid Id. at atg.endeca.index.RecordStoreDocumentSubmitterSessionImpl.submitRecord(RecordStoreDocumentSubmitterSessionImpl.java:436) at atg.endeca.index.RecordSubmitterSessionImpl.submitDocument(RecordSubmitterSessionImpl.java:240) at atg.endeca.index.AbstractRecordStoreAggregateSession.submitDocument(AbstractRecordStoreAggregateSession.java:357) at atg.repository.search.indexing.LoaderImpl.outputAndSubmitDocument(LoaderImpl.java:1167)


This Happened Because, I was using the CRS Deployment Template to create the app, as part of the Migration, and we have created the app using the Discover Deployment Template. Discover uses common.id and CRS uses the record.id as the common identifier for the record.

Solution is to Change the app back to the CRS this issue will be resolved. 

5 comments:
Write comments
  1. Hi , were you able to migrate to 11.3 with template in XML format ? Would we need to manually convert template to JSON format ?

    ReplyDelete
    Replies
    1. hi,
      we cannot go with the existing xml format with 11.3 instead you have to convert to json first . migraration tool is avaliable as part of installation . you can use that.
      follow migration steps it will help

      Delete
  2. Thank you syed for your reply.
    1.So do you mean all the content and template in folder structure will be converted to .json after migration.
    2. We haave migrated to 11.3 and initialized the application . but the Experience Manager is in not editable mode (looks like a page break .Unable to select and edit any templates) .Any inputs on this?

    ReplyDelete
    Replies
    1. Hi Savitha,
      As part of your miration, you have to convert all your Content and template to json format.

      Did you try initialization after the migration or before.

      I tried to create a app from the CRS deploymet template and later modified from xm based on my project requirement .

      Page Breaks means the jsp is not being compiled and rendered ?

      Regards,
      Syed Ghouse Habib

      Delete
  3. Hi , I have re run the initialization and run migration scripts again . I now see all the xmls content and template in json format . As per the doc I have importApplication and ExportApplication . On loading the ExperienceManager , some of the contents.eg, Shared > Home , the cartridge is loaded and displayed , but they are not selectable /editable.

    ReplyDelete