为什么通过手动impex导入我有一个很好的结果,但如果我调用更新我没有结果

时间:2013-12-09 08:57:08

标签: import hybris impex

我注意到如果我手动调用任何impex文件(console - > impex import) - 它正在工作。但如果我制作更新系统,我就没有成功。在日志中我看到这个文件提到。我误解了这种情况吗?

日志:

INFO   | jvm 1    | main    | 2013/12/09 12:44:41.633 | INFO  [hybrisHTTP26] [AbstractSystemSetup] Begin SOLR index setup [hybris]
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.634 | INFO  [hybrisHTTP26] [DefaultSetupImpexService] Importing [/merchandisecore/import/stores/hybris/solr.impex]...
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.635 | INFO  [hybrisHTTP26] [DefaultImportService] Starting import synchronous using cronjob with code=000000SL
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.637 | INFO  [hybrisHTTP26] (000000SL) [ImpExImportJob] Starting ImpEx cronjob "ImpEx-Import"
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.638 | WARN  [hybrisHTTP26] (000000SL) [HeaderDescriptor] line 28 at main script: column mode of type SolrServerConfig is not writable, but you want to update it. If you want to write this non writable attribute explicit, you have to use the forceWrite=true modifier. This warning is printed only once for header. Please check subsequent lines for similar problem.
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.752 | WARN  [hybrisHTTP26] (000000SL) [HeaderDescriptor] line 125 at main script: column type of type SolrIndexerQuery is not writable, but you want to update it. If you want to write this non writable attribute explicit, you have to use the forceWrite=true modifier. This warning is printed only once for header. Please check subsequent lines for similar problem.
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.757 | INFO  [hybrisHTTP26] (000000SL) [Importer] Finished 1 pass in 0d 00h:00m:00s:098ms - processed: 73, dumped: 3 (last pass: 0)
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.860 | INFO  [hybrisHTTP26] (000000SL) [Importer] Starting pass 2
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.860 | INFO  [hybrisHTTP26] (000000SL) [Importer] Finished 2 pass in 0d 00h:00m:00s:006ms - processed: 3, no lines dumped (last pass 3)
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.862 | INFO  [hybrisHTTP26] [DefaultImportService] Import was successful (using cronjob with code=000000SL)
INFO   | jvm 1    | main    | 2013/12/09 12:44:41.963 | INFO  [hybrisHTTP26] [DefaultSetupImpexService] Importing [/merchandisecore/import/stores/hybris/solr_en.impex]...

1 个答案:

答案 0 :(得分:0)

正如您所看到的,您尝试更新的类型上有一些列需要在impex标头上添加forceWrite = true。

创建后,某些属性不可写。

我不知道你试图执行的impex是怎样的,但我会尝试删除该项,然后检查impex是否在更新时正确执行(但不要先执行impex hac import impex)。