gpt4 book ai didi

java - 杂交 : How to import using impex?

转载 作者:行者123 更新时间:2023-12-02 10:13:57 25 4
gpt4 key购买 nike

我正在尝试使用 impex 导入产品,但脚本不起作用,我不明白为什么。这是我的脚本:

insert TaxRow ; &Item ; catalogVersion(catalog(id),version) ; creationtime[forceWrite=true,dateformat=dd.MM.yyyy hh:mm:ss] ; currency(isocode) ; endTime[dateformat=dd.MM.yyyy hh:mm:ss] ; modifiedtime[dateformat=dd.MM.yyyy hh:mm:ss] ; owner(&Item)[allownull=true] ; pg(code,itemtype(code))     ; product(catalogVersion(catalog(id),version),code) ; productId[forceWrite=true] ; productMatchQualifier ; startTime[dateformat=dd.MM.yyyy hh:mm:ss] ; tax(code)[allownull=true,forceWrite=true] ; ug(code,itemtype(code)) ; user(uid) ; userMatchQualifier ; value
; Item0 ; hybrisProductCatalog:Staged ; 18.02.2019 04:00:18 ; ; ; 18.02.2019 04:00:18 ; ; standard:ProductTaxGroup ; ; ; 8 796 129 198 171 ; ; standard ; ; ; 0 ;
; Item1 ; hybrisProductCatalog:Staged ; 30.05.2017 03:25:52 ; ; ; 30.05.2017 03:25:52 ; ; eu-vat-full:ProductTaxGroup ; ; ; 8 796 129 362 011 ; ; uk-vat-full ; uk-taxes:UserTaxGroup ; ; 8 796 129 034 331 ;
; Item2 ; hybrisProductCatalog:Staged ; 30.05.2017 03:25:52 ; ; ; 30.05.2017 03:25:52 ; ; eu-vat-half:ProductTaxGroup ; ; ; 8 796 129 427 547 ; ; de-vat-half ; de-taxes:UserTaxGroup ; ; 8 796 129 132 635 ;
; Item3 ; hybrisProductCatalog:Staged ; 30.05.2017 03:25:52 ; ; ; 30.05.2017 03:25:52 ; ; eu-vat-full:ProductTaxGroup ; ; ; 8 796 129 362 011 ; ; de-vat-full ; de-taxes:UserTaxGroup ; ; 8 796 129 132 635 ;
; Item4 ; hybrisProductCatalog:Staged ; 30.05.2017 03:25:52 ; ; ; 30.05.2017 03:25:52 ; ; eu-vat-half:ProductTaxGroup ; ; ; 8 796 129 427 547 ; ; uk-vat-half ; uk-taxes:UserTaxGroup ; ; 8 796 129 034 331 ;
; Item5 ; hybrisProductCatalog:Staged ; 29.05.2017 03:34:46 ; ; ; 29.05.2017 03:34:46 ; ; specific:ProductTaxGroup ; ; ; 8 796 129 263 707 ; ; specific ; ; ; 0 ;
; Item6 ; hybrisProductCatalog:Staged ; 29.05.2017 03:34:46 ; ; ; 29.05.2017 03:34:46 ; ; zero:ProductTaxGroup ; ; ; 8 796 129 230 939 ; ; zero ; ; ; 0 ;
; Item7 ; hybrisProductCatalog:Staged ; 29.05.2017 03:34:46 ; ; ; 29.05.2017 03:34:46 ; ; jp-vat-full:ProductTaxGroup ; ; ; 8 796 129 394 779 ; ; jp-vat-full ; jp-taxes:UserTaxGroup ; ; 8 796 129 099 867 ;



insert_update Product ; &Item ; Europe1PriceFactory_PDG(code,itemtype(code)) ; Europe1PriceFactory_PPG(code,itemtype(code)) ; Europe1PriceFactory_PTG(code,itemtype(code)) ; activeProductReview ; approvalStatus(code,itemtype(code))[allownull=true] ; articleStatus[lang=en] ; articleStatus[lang=fr] ; baseNotes[lang=en] ; baseNotes[lang=fr] ; bestRated ; bestSeller[allownull=true] ; bestViewed[allownull=true] ; buyerIDS(key(code,itemtype(code))) ; catalog(id)[allownull=true] ; catalogVersion(catalog(id),version)[unique=true,allownull=true] ; code[unique=true,allownull=true] ; contentUnit(code) ; contentUnitSize ; creationtime[forceWrite=false,dateformat=dd.MM.yyyy hh:mm:ss] ; customPageTitle ; data_sheet(catalogVersion(catalog(id),version),code) ; defaultSku(catalogVersion(catalog(id),version),code) ; deliveryTime ; description[lang=en] ; description[lang=fr] ; detail(catalogVersion(catalog(id),version),code) ; discountable[allownull=true] ; doNotOverrideApprovalStatus ; doNotOverwriteBestSeller ; doNotOverwriteNewProduct ; ean ; endLineNumber ; erpGroupBuyer ; erpGroupSupplier ; erpName[lang=en] ; erpName[lang=fr] ; erpShortDescription[lang=en] ; erpShortDescription[lang=fr] ; erpStatus(code,itemtype(code)) ; europe1Discounts(&Item) ; europe1Prices(&Item) ; europe1Taxes(&Item) ; exclusiveBrand(code,itemtype(code)) ; exportToMakeUp ; extraZoomDisabled ; feedType(code,itemtype(code)) ; formulation[lang=en] ; formulation[lang=fr] ; galleryImages(catalogVersion(catalog(id),version),qualifier) ; gender(code,itemtype(code)) ; generalPromotionText[lang=en] ; generalPromotionText[lang=fr] ; generalPromotion[allownull=true] ; giveAway ; heartNotes[lang=en] ; heartNotes[lang=fr] ; informativePrice1 ; informativePrice2 ; informativePrice3 ; informativePrice4 ; informativeText1[lang=en] ; informativeText1[lang=fr] ; informativeText2[lang=en] ; informativeText2[lang=fr] ; informativeText3[lang=en] ; informativeText3[lang=fr] ; ingredients[lang=en] ; ingredients[lang=fr] ; isAvaliableInMultipleShades ; logo(catalogVersion(catalog(id),version),code) ; manufacturerAID ; manufacturerName ; manufacturerTypeDescription[lang=en] ; manufacturerTypeDescription[lang=fr] ; markDownMemPrice(&Item) ; markDownPrice(&Item) ; marketingClass(code,itemtype(code)) ; masterBrandRef(catalogVersion(catalog(id),version),code) ; maxOrderQuantity ; minOrderQuantity ; modifiedtime[dateformat=dd.MM.yyyy hh:mm:ss] ; mrnDepartmentCode ; mrnFeatures[lang=en] ; mrnFeatures[lang=fr] ; mrnFinal ; mrnPrdVatCode ; mrnTipsAdviceHtml[lang=en] ; mrnTipsAdviceHtml[lang=fr] ; name[lang=en] ; name[lang=fr] ; newProduct[allownull=true] ; normal(catalogVersion(catalog(id),version),code) ; numberContentUnits ; offlineDate[dateformat=dd.MM.yyyy hh:mm:ss] ; olfactives[lang=en] ; olfactives[lang=fr] ; onlineDate[dateformat=dd.MM.yyyy hh:mm:ss] ; order ; orderQuantityInterval ; others(catalogVersion(catalog(id),version),code) ; owner(&Item)[allownull=true] ; packType[lang=en] ; packType[lang=fr] ; pharmacyInfo[lang=en] ; pharmacyInfo[lang=fr] ; picture(catalogVersion(catalog(id),version),code) ; prdVatCode ; priceQuantity ; productOrderLimit(&Item) ; prohibitMemberPoints ; rangeName ; ranking ; recyclingInfo[lang=en] ; recyclingInfo[lang=fr] ; remarks[lang=en] ; remarks[lang=fr] ; segment[lang=en] ; segment[lang=fr] ; seoDescription[lang=en] ; seoDescription[lang=fr] ; sequenceId ; shippingInfo[lang=en] ; shippingInfo[lang=fr] ; shortDescription[lang=en] ; shortDescription[lang=fr] ; showPdpContentHubArticles ; showReserveAndCollectButton ; showVPProms ; specialTreatmentClasses() ; startLineNumber ; storageCondition[lang=en] ; storageCondition[lang=fr] ; storage[lang=en] ; storage[lang=fr] ; summary[lang=en] ; summary[lang=fr] ; supplier(code) ; supplierAlternativeAID ; thumbnail(catalogVersion(catalog(id),version),code) ; thumbnails(catalogVersion(catalog(id),version),code) ; topNotes[lang=en] ; topNotes[lang=fr] ; unit(code) ; uses[lang=en] ; uses[lang=fr] ; vOpeningBusinessRule(&Item) ; vSortingBusinessRule(&Item) ; variantType(code) ; variants(catalogVersion(catalog(id),version),code) ; volume ; warnings[lang=en] ; warnings[lang=fr] ; webExclusive ; weight ; xmlcontent ; zoomDisabled
; Item2 ; ; ; standard:ProductTaxGroup ; true ; load:ArticleApprovalStatus ; ; ; ; ; 0 ; false ; false ; ; hybrisProductCatalog ; hybrisProductCatalog:Staged ; BP_101628163 ; ; ; 13.02.2019 09:08:53 ; ; ; ; ; ; ; ; false ; false ; false ; false ; ; ; ; ; ; DEMO MELLE COUTUR.EDP90ML VP ; ; DEMO MELLE COUTUR.ED ; Available:IgcErpStatusCode ; ; ; Item0,Item1 ; N:IgcBrandTypeName ; false ; false ; IS21MD:ProductfeedType ; ; ; ; FEMME:ProductGender ; ; ; false ; false ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; false ; ; ; ; ; ; ; ; A:MarketingClass ; ; ; ; 13.02.2019 09:08:56 ; ; ; ; false ; ; ; ; ; ; false ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; 1 ; ; false ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; ; false ; true ; false ; ; ; ; ; ; ; ; ; 1364900101 ; ; ; ; ; ; EACH ; ; ; ; ; MrnGenericVariantProduct ; ; ; ; ; ; 328 ; ; false

这是 hac 中提到的内容:

insert_update Product;&Item;Europe1PriceFactory_PDG(code,itemtype(code));Europe1PriceFactory_PPG(code,itemtype(code));Europe1PriceFactory_PTG(code,itemtype(code));activeProductReview;approvalStatus(code,itemtype(code))[allownull=true];articleStatus[lang=en];articleStatus[lang=fr];baseNotes[lang=en];baseNotes[lang=fr];bestRated;bestSeller[allownull=true];bestViewed[allownull=true];buyerIDS(key(code,itemtype(code)));catalog(id)[allownull=true];catalogVersion(catalog(id),version)[unique=true,allownull=true];code[unique=true,allownull=true];contentUnit(code);contentUnitSize;creationtime[forceWrite=false,dateformat=dd.MM.yyyy hh:mm:ss];customPageTitle;data_sheet(catalogVersion(catalog(id),version),code);defaultSku(catalogVersion(catalog(id),version),code);deliveryTime;description[lang=en];description[lang=fr];detail(catalogVersion(catalog(id),version),code);discountable[allownull=true];doNotOverrideApprovalStatus;doNotOverwriteBestSeller;doNotOverwriteNewProduct;ean;endLineNumber;erpGroupBuyer;erpGroupSupplier;erpName[lang=en];erpName[lang=fr];erpShortDescription[lang=en];erpShortDescription[lang=fr];erpStatus(code,itemtype(code));europe1Discounts(&Item);europe1Prices(&Item);europe1Taxes(&Item);exclusiveBrand(code,itemtype(code));exportToMakeUp;extraZoomDisabled;feedType(code,itemtype(code));formulation[lang=en];formulation[lang=fr];galleryImages(catalogVersion(catalog(id),version),qualifier);gender(code,itemtype(code));generalPromotionText[lang=en];generalPromotionText[lang=fr];generalPromotion[allownull=true];giveAway;heartNotes[lang=en];heartNotes[lang=fr];informativePrice1;informativePrice2;informativePrice3;informativePrice4;informativeText1[lang=en];informativeText1[lang=fr];informativeText2[lang=en];informativeText2[lang=fr];informativeText3[lang=en];informativeText3[lang=fr];ingredients[lang=en];ingredients[lang=fr];isAvaliableInMultipleShades;logo(catalogVersion(catalog(id),version),code);manufacturerAID;manufacturerName;manufacturerTypeDescription[lang=en];manufacturerTypeDescription[lang=fr];markDownMemPrice(&Item);markDownPrice(&Item);marketingClass(code,itemtype(code));masterBrandRef(catalogVersion(catalog(id),version),code);maxOrderQuantity;minOrderQuantity;modifiedtime[dateformat=dd.MM.yyyy hh:mm:ss];mrnDepartmentCode;mrnFeatures[lang=en];mrnFeatures[lang=fr];mrnFinal;mrnPrdVatCode;mrnTipsAdviceHtml[lang=en];mrnTipsAdviceHtml[lang=fr];name[lang=en];name[lang=fr];newProduct[allownull=true];normal(catalogVersion(catalog(id),version),code);numberContentUnits;offlineDate[dateformat=dd.MM.yyyy hh:mm:ss];olfactives[lang=en];olfactives[lang=fr];onlineDate[dateformat=dd.MM.yyyy hh:mm:ss];order;orderQuantityInterval;others(catalogVersion(catalog(id),version),code);owner(&Item)[allownull=true];packType[lang=en];packType[lang=fr];pharmacyInfo[lang=en];pharmacyInfo[lang=fr];picture(catalogVersion(catalog(id),version),code);prdVatCode;priceQuantity;productOrderLimit(&Item);prohibitMemberPoints;rangeName;ranking;recyclingInfo[lang=en];recyclingInfo[lang=fr];remarks[lang=en];remarks[lang=fr];segment[lang=en];segment[lang=fr];seoDescription[lang=en];seoDescription[lang=fr];sequenceId;shippingInfo[lang=en];shippingInfo[lang=fr];shortDescription[lang=en];shortDescription[lang=fr];showPdpContentHubArticles;showReserveAndCollectButton;showVPProms;specialTreatmentClasses();startLineNumber;storageCondition[lang=en];storageCondition[lang=fr];storage[lang=en];storage[lang=fr];summary[lang=en];summary[lang=fr];supplier(code);supplierAlternativeAID;thumbnail(catalogVersion(catalog(id),version),code);thumbnails(catalogVersion(catalog(id),version),code);topNotes[lang=en];topNotes[lang=fr];unit(code);uses[lang=en];uses[lang=fr];vOpeningBusinessRule(&Item);vSortingBusinessRule(&Item);variantType(code);variants(catalogVersion(catalog(id),version),code);volume;warnings[lang=en];warnings[lang=fr];webExclusive;weight;xmlcontent;zoomDisabled
,,,;Item2;<ignore>;<ignore>;<ignore>standard:ProductTaxGroup;<ignore>true;<ignore>load:ArticleApprovalStatus;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>0;<ignore>false;<ignore>false;<ignore>;<ignore>hybrisProductCatalog;<ignore>hybrisProductCatalog:Staged;<ignore>BP_101628163;<ignore>;<ignore>;<ignore>13.02.2019 09:08:53;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>false;<ignore>false;<ignore>false;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>DEMO MELLE COUTUR.EDP90ML VP;<ignore>;<ignore>DEMO MELLE COUTUR.ED;<ignore>Available:IgcErpStatusCode;<ignore>;<ignore>;<ignore>Item0,Item1;<ignore>N:IgcBrandTypeName;<ignore>false;<ignore>false;<ignore>IS21MD:ProductfeedType;<ignore>;<ignore>;<ignore>;<ignore>FEMME:ProductGender;<ignore>;<ignore>;<ignore>false;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>A:MarketingClass;<ignore>;<ignore>;<ignore>;<ignore>13.02.2019 09:08:56;<ignore>;<ignore>;<ignore>;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>1;<ignore>;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>false;<ignore>true;<ignore>false;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>1364900101;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>EACH;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>MrnGenericVariantProduct;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>;<ignore>328;<ignore>;<ignore>false


21.02.2019 14:33:27: ERROR: Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 1 lines!

控制台上的内容:

    WARN  [impex result worker [cj:000002BR]] (000002BC) [ImpExImportReader] line 3 at main script: dumped unresolved line ValueLine[,line 3 at main script,null,HeaderDescriptor[line 2 at main script, insert_update, Product, {}, [&Item, Europe1PriceFactory_PDG, Europe1PriceFactory_PPG, Europe1PriceFactory_PTG, activeProductReview, approvalStatus, articleStatus, articleStatus, baseNotes, baseNotes, bestRated, bestSeller, bestViewed, buyerIDS, catalog, catalogVersion, code, contentUnit, contentUnitSize, creationtime, customPageTitle, data_sheet, defaultSku, deliveryTime, description, description, detail, discountable, doNotOverrideApprovalStatus, doNotOverwriteBestSeller, doNotOverwriteNewProduct, ean, endLineNumber, erpGroupBuyer, erpGroupSupplier, erpName, erpName, erpShortDescription, erpShor
tDescription, erpStatus, europe1Discounts, europe1Prices, europe1Taxes, exclusiveBrand, exportToMakeUp, extraZoomDisabled, feedType, formulation, formulation, galleryImages, gender, generalPromotionText, generalPromotionText, generalPromotion, giveAway, heartNotes, heartNotes, informativePrice1, informativePrice2, informativePrice3, informativePrice4, informativeText1, informativeText1, informativeText2, informativeText2, informativeText3, informativeText3, ingredients, ingredients, isAvaliableInMultipleShades, logo, manufacturerAID, manufacturerName, manufacturerTypeDescription, manufacturerTypeDescription, markDownMemPrice, markDownPrice, marketingClass, masterBrandRef, maxOrderQuantity, minOrderQuantity, modifiedtime, mrnDepartmentCode, mrnFeatures, mrnFeatures, mrnFinal, mrnPrdVatCode,
mrnTipsAdviceHtml, mrnTipsAdviceHtml, name, name, newProduct, normal, numberContentUnits, offlineDate, olfactives, olfactives, onlineDate, order, orderQuantityInterval, others, owner, packType, packType, pharmacyInfo, pharmacyInfo, picture, prdVatCode, priceQuantity, productOrderLimit, prohibitMemberPoints, rangeName, ranking, recyclingInfo, recyclingInfo, remarks, remarks, segment, segment, seoDescription, seoDescription, sequenceId, shippingInfo, shippingInfo, shortDescription, shortDescription, showPdpContentHubArticles, showReserveAndCollectButton, showVPProms, specialTreatmentClasses, startLineNumber, storageCondition, storageCondition, storage, storage, summary, summary, supplier, supplierAlternativeAID, thumbnail, thumbnails, topNotes, topNotes, unit, uses, uses, vOpeningBusinessRu
le, vSortingBusinessRule, variantType, variants, volume, warnings, warnings, webExclusive, weight, xmlcontent, zoomDisabled] ],{1=ValueEntry('Item2'=null,unresolved=null,ignore=false), 2=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 3=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 4=ValueEntry('<ignore>standard:ProductTaxGroup'=null,unresolved=null,ignore=true), 5=ValueEntry('<ignore>true'=null,unresolved=null,ignore=true), 6=ValueEntry('<ignore>load:ArticleApprovalStatus'=null,unresolved=null,ignore=true), 7=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 8=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 9=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 10=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 11=ValueEntry('<ignore>0'=nul
l,unresolved=null,ignore=true), 12=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 13=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 14=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 15=ValueEntry('<ignore>hybrisProductCatalog'=null,unresolved=null,ignore=true), 16=ValueEntry('<ignore>hybrisProductCatalog:Staged'=null,unresolved=null,ignore=true), 17=ValueEntry('<ignore>BP_101628163'=null,unresolved=null,ignore=true), 18=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 19=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 20=ValueEntry('13.02.2019 09:08:53'=Wed Feb 13 09:08:53 CET 2019,unresolved=false,ignore=false), 21=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 22=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 23
=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 24=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 25=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 26=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 27=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 28=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 29=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 30=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 31=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 32=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 33=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 34=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 35=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 36
=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 37=ValueEntry('<ignore>DEMO MELLE COUTUR.EDP90ML VP'=null,unresolved=null,ignore=true), 38=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 39=ValueEntry('<ignore>DEMO MELLE COUTUR.ED'=null,unresolved=null,ignore=true), 40=ValueEntry('<ignore>Available:IgcErpStatusCode'=null,unresolved=null,ignore=true), 41=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 42=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 43=ValueEntry('<ignore>Item0,Item1'=null,unresolved=null,ignore=true), 44=ValueEntry('<ignore>N:IgcBrandTypeName'=null,unresolved=null,ignore=true), 45=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 46=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 47=ValueEntry('<ignore>IS21MD
:ProductfeedType'=null,unresolved=null,ignore=true), 48=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 49=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 50=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 51=ValueEntry('<ignore>FEMME:ProductGender'=null,unresolved=null,ignore=true), 52=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 53=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 54=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 55=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 56=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 57=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 58=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 59=ValueEntry('<ignore>'=null,unresolved=null,ignore=true)
, 60=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 61=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 62=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 63=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 64=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 65=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 66=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 67=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 68=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 69=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 70=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 71=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 72=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 73=ValueEntry
('<ignore>'=null,unresolved=null,ignore=true), 74=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 75=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 76=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 77=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 78=ValueEntry('<ignore>A:MarketingClass'=null,unresolved=null,ignore=true), 79=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 80=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 81=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 82=ValueEntry('<ignore>13.02.2019 09:08:56'=null,unresolved=null,ignore=true), 83=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 84=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 85=ValueEntry('<ignore>'=null,unresolved=null,ignore=true)
, 86=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true), 87=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 88=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 89=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 90=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 91=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 149=ValueEntry('<ignore>MrnGenericVariantProduct'=null,unresolved=null,ignore=true), 150=ValueEntry('<ignore>'=null,unresolved=null
,ignore=true),
------------------------------------
151=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 152=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 153=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 154=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 155=ValueEntry('<ignore>328'=null,unresolved=null,ignore=true), 156=ValueEntry('<ignore>'=null,unresolved=null,ignore=true), 157=ValueEntry('<ignore>false'=null,unresolved=null,ignore=true)}]
INFO [impex result worker [cj:000002BR]] (000002BC) [ImpExWorker] Returning worker impex result worker [cj:000002BR] to the pool
INFO [impex reader worker [cj:000002BR]] (000002BC) [ImpExWorker] Returning worker impex reader worker [cj:000002BR] to the pool
INFO [hybrisHTTP20] (000002BR) [Importer] Finished 2 pass in 0d 00h:00m:00s:025ms - processed: 1, dumped: 1 (last pass: 1)
WARN [hybrisHTTP20] (000002BR) [Importer] Import aborted after 0d 00h:00m:00s:334ms
ERROR [hybrisHTTP20] (000002BR) [ImpExImportJob] Can not resolve any more lines ... Aborting further passes (at pass 2). Finally could not import 1 lines!
ERROR [hybrisHTTP20] [DefaultImportService] Import has caused an error, see logs of cronjob with code=000002BR for further details

有人可以解释一下问题是什么吗?谢谢

最佳答案

Impex 脚本由两部分组成:

  1. 标题
  2. 数据

这两个可以在 impex 文件中多次出现。

<小时/>

标题

操作:如何处理以下数据:有以下选项:

  • 插入:创建新项目
  • INSERT_UPDATE:创建新项目或更新现有项目
  • 更新:更新现有项目
  • 删除:删除现有项目

项目类型:您要编辑的项目类型(产品、类别、用户...)

属性 您要编辑的所有属性均以分号分隔。

<小时/>

标题的格式如下所示:

OPERATION ITEMTYPE;ATTRIUTE1;ATTRIBUTE2;

在这个例子中,这将是:

INSERT Address ; firstname ; lastname ;

这意味着您尝试创建一个具有名字和姓氏属性的地址类型的新项目。

<小时/>

数据

标题之后是数据。对于标题中的每个属性,您都可以添加数据。将第一个条目留空(以分号开头)。然后按照 header 中属性的顺序添加每个属性的值。

格式:

;value for attribute1;value for attribute2;

上述 header 示例:

;John;Doe;
<小时/>

完整的 Impex 脚本如下所示:

INSERT Address ; firstname ; lastname ;
; John ; Doe ;
<小时/>

复杂数据类型

当属性类型不是基元(字符串、整数...)而是复杂类型时,您需要定义属性来标识要设置给属性的值。示例:如果您想创建价格,则需要一种价格货币。货币是自己的元素类型,因此需要通过元素类型货币的属性来​​识别货币。货币有一个独特的属性,称为“isocode”。因此,您可以使用货币的 isocode 来识别应使用哪种货币。

示例

INSERT PriceRow;...; currency(isocode);
; ; USD ;

使用括号,您可以将属性或逗号分隔的属性列表添加到 header 中的属性中。如果需要多个属性来标识目标值,则这些属性的值用冒号分隔。您还可以像示例中那样嵌套这些表达式:

insert TaxRow ; ... ; catalogVersion(catalog(id),version) ;
; ; hybrisProductCatalog:Staged ;

TaxRow 类型的属性 CatalogVersion 的值由目标类型 CatalogVersion 的属性目录和版本标识。两者之间用逗号分隔。然而,目录(再次)是一种复杂类型,并由其 id 属性标识。标识 CatalogVersion 类型的项目的两个值是“hybrisProductCatalog”和“Staging”。因此,脚本搜索 CatalogVersion 项,该项具有分配有 id hybrisProductCatalog 的 Catalog 和暂存版本。

这些值需要识别恰好一个项目。否则你的脚本将会失败。

<小时/>

独特的值(value)观

使用 INSERT_UPDATE、UPDATE 或 REMOVE 时,您需要确定要更改的项目。您可以通过向 header 添加唯一标识要更改的项目的属性来实现此目的。您可以通过将 [unique=true] 添加到属性来实现这一点。正如您的示例所示:

INSERT_UPDATE Product ; code[unique=true] ; catalogVersion(catalog(id),version)[unique=true] ;
; BP_101628163 ; hybrisProductCatalog:Staged ;

在这种情况下,您可以插入代码为 BP_101628163 且目录版本为 hybrisProductCatalog:Staging 的新产品,或者更改具有这些值的现有产品。

关于java - 杂交 : How to import using impex?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54808544/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com