What did I try to do ?

I tried to import pages in IFCR using command –

<Endeca-app>/control/runcommand.sh IFCR importContent pages /tmp/pages/

What error did I get ?

SEVERE: Caught an exception while invoking method ‘importContent’ on object ‘IFCR’. Releasing locks. Failed with error Bad Request (400):  “The following 2 validation failures occurred:[/sites/DBIen/pages/VC] cvc-elt.1: Cannot find the declaration of element ‘Item’.[/sites/DBIen/pages] Invalid defaultSiteId ‘/VC’ specified”

What does this error mean?

This error is generic XML DTD error which tells that an XML DTD is not defined properly

How did I fix it?

In my case, The filterState.xml file I had at /tmp/pages/<Site-Id>/filterState.xml did not have the header  added properly . I added following as first line of the XML and it was fixed.

<Item class=”com.endeca.infront.navigation.model.FilterState” xmlns=”http://endeca.com/schema/xavia/2010″>

 

Thanks,

Mayank Batra

Leave a Reply