cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

IMPEX - SKIPPED (Optional File Not Found) during initialization or update

Former Member
0 Likes
887

I am trying to stand up my own site by getting the initialdata project to execute correctly. The impex files to add the Catalog and Categories runs, but not for the site and store. Below is a screen shot of how things are setup in Eclipse, followed by the errors I am getting:

INFO   | jvm 1    | main    | 2019/11/15 11:24:06.704 | INFO  [update-electronicsIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-electronicsIndex-cronJob) [SolrIndexerJob] Started indexer cronjob.
INFO   | jvm 1    | main    | 2019/11/15 11:24:06.704 | INFO  [update-backofficeIndex-CronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-backofficeIndex-CronJob) [SolrIndexerJob] Started indexer cronjob.
INFO   | jvm 1    | main    | 2019/11/15 11:24:06.704 | INFO  [update-powertoolsIndex-cronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-powertoolsIndex-cronJob) [SolrIndexerJob] Started indexer cronjob.
INFO   | jvm 1    | main    | 2019/11/15 11:24:08.161 | INFO  [update-backofficeIndex-CronJob::de.hybris.platform.servicelayer.internal.jalo.ServicelayerJob] (update-backofficeIndex-CronJob) [SolrIndexerJob] Finished indexer cronjob.
INFO   | jvm 1    | main    | 2019/11/15 11:24:11.600 | INFO  [hybrisHTTP20] [AbstractSystemSetup] Begin synchronizing Product Catalog [cnbs]
INFO   | jvm 1    | main    | 2019/11/15 11:24:11.704 | INFO  [hybrisHTTP20] [AbstractSystemSetup] Begin synchronizing Content Catalog [cnbs]
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [DefaultSetupSyncJobService] Set DependentSyncJobs on CatalogVersionSyncJob [sync cnbsProductCatalog:Staged->Online] to [sync cnbsContentCatalog:Staged->Online]
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [AbstractSystemSetup] Begin importing store data for [cnbs]
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [DefaultSetupImpexService] Importing [/cnbsinitialdata/import/coredata/stores/cnbs/store.impex]... SKIPPED (Optional File Not Found)
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [DefaultSetupImpexService] Importing [/cnbsinitialdata/import/coredata/stores/cnbs/site.impex]... SKIPPED (Optional File Not Found)
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [DefaultSetupImpexService] Importing [/cnbsinitialdata/import/coredata/stores/cnbs/site-override.impex]... SKIPPED (Optional File Not Found)
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [AbstractSystemSetup] Begin importing job data for [cnbs]
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [DefaultSetupImpexService] Importing [/cnbsinitialdata/import/coredata/stores/cnbs/jobs.impex]... SKIPPED (Optional File Not Found)
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [AbstractSystemSetup] Begin importing solr index data for [cnbs]
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.122 | INFO  [hybrisHTTP20] [DefaultSetupImpexService] Importing [/cnbsinitialdata/import/coredata/stores/cnbs/solr.impex]... SKIPPED (Optional File Not Found)
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.226 | INFO  [hybrisHTTP20] [DefaultSetupImpexService] Importing [/cnbsinitialdata/import/coredata/stores/cnbs/solrtrigger.impex]... SKIPPED (Optional File Not Found)
INFO   | jvm 1    | main    | 2019/11/15 11:24:12.226 | INFO  [hybrisHTTP20] [AbstractSystemSetup] Activating solr index for [cnbs]

Accepted Solutions (1)

Accepted Solutions (1)

aimprosoft
Participant
0 Likes

These files are skipped due to folder name mismatch.
Initially folder under /stores should be named as your store, so it can be found during file import.
Example of method that builds path using extension name & store name (de.hybris.platform.commerceservices.dataimport.impl.CoreDataImportService):

@Override
protected void importSolrIndex(final String extensionName, final String storeName)
{
   getSetupImpexService().importImpexFile(String.format("/%s/import/coredata/stores/%s/solr.impex", extensionName, storeName),
         false);

   getSetupSolrIndexerService().createSolrIndexerCronJobs(String.format("%sIndex", storeName));

   getSetupImpexService().importImpexFile(
         String.format("/%s/import/coredata/stores/%s/solrtrigger.impex", extensionName, storeName), false);
}

Since your store is named cnbs import service is unable to locate files correctly because it tries to look up files under ..../stores/cnbs while folder is named cnbsStore.
You can either rename folder to cnbs OR rename your store to cnbsStore.

Answers (0)