方法调用impex.exportItems

2020-09-19 14:47发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中) ----扩展名:核心----类...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


----扩展名:核心----类型:雇员----

%impex.setTargetFile("" Employee.csv"");"

nsert_update Employee;&Item; @password [translator = de.hybris.platform.impex.jalo.translators.UserPasswordTranslator]; CN; DN; Europe1PriceFactory_UDG(code,itemtype(code)); Europe1PriceFactory_UPG(code,itemtype(code)) ); Europe1PriceFactory_UTG(code,itemtype(code)); addresses(&Item); authorizedToUnlockPages [allownull = true]; carts(code); creationtime [forceWrite = true,dateformat = dd.MM.yyyy hh:mm:ss]; creditRating (code,itemtype(code)); creditRatingTimestamp [dateformat = dd.MM.yyyy hh:mm:ss]; csAgentPerformingOnBehalfUid; defaultPaymentAddress(&Item); defaultShipmentAddress(&Item); description; domain; encodedPassword; europe1Discounts(&Item); hmcLogin lastLogin [dateformat = dd.MM.yyyy hh:mm:ss]; ldapaccount [allownull = true]; ldaplogin; ldapsearchbase; legacyPK; loginDisabled [allownull = true]; name; orders(code,versionID); orgEncodedPassword; owner(&Item );密码; passwordAnswer;密码编码; passwordQuestion; paymentInfos(&Item); profilePicture(catalogVersion(catalog(id),version),code); sessionCurrency(isocode); sessi onLanguage(isocode); uid [unique = true,allownull = true]; userprofile(&Item)"#%impex.exportItems("" Employee"",false);"

15.02.06 11:53:55:867在主脚本处出现错误第5行:在5处执行代码行时出错:源文件:内联评估:``impex.exportItems(" Employee",false);'': 方法调用impex.exportItems

我看不出这是怎么回事?

6条回答
haha101010
2020-09-19 15:20

我对SearchRestricton有相同的问题。 请找到导出脚本和异常信息。

insert_update SearchRestriction; code [unique = true]; active; principal(uid); restrictedType(code);查询"#%impex.exportItems(""从{SearchRestriction}中依次按{code},{ 主体},{restrictedType}"",Collections.EMPTY_MAP,Collections.singletonList(Item.class),true,true,-1,-1);"

以及执行的相应日志

原因:de.hybris.platform.impex.jalo.ImpExException:执行代码行3时出错:源文件:内联评估:``impex.exportItems("从{SearchRestriction}中依次选择{pk},按{ code},{princi。。。``:方法调用impex.exportItems

在de.hybris.platform.impex.jalo.ImpExReader.legacyExecute(ImpExReader.java:3209)〜[impexserver.jar :?]在de.hybris.platform.impex.jalo.ImpExReader.execute(ImpExReader。 java:3148)〜[impexserver.jar :?],位于de.hybris.platform.impex.jalo.ImpExReader.execute(ImpExReader.java:3117)〜[impexserver.jar :?],位于de.hybris.platform.impex。 jalo.ImpExReader.processCodeLine(ImpExReader.java:3022)〜[impexserver.jar :?]在de.hybris.platform.impex.jalo.ImpExReader.readLine(ImpExReader.java:1931)〜[impexserver.jar :?]在 de.hybris.platform.impex.jalo.exp.Exporter.runScriptBasedExport(Exporter.java)上的de.hybris.platform.impex.jalo.exp.Exporter.exportInternal(Exporter.java:541)〜[impexserver.jar :?] :244)〜[impexserver.jar :?]在de.hybris.platform.impex.jalo.exp.Exporter.export(Exporter.java:182)〜[impexserver.jar :?] ... 98更多

原因:bsh.TargetError:源文件:内联评估:" impex.exportItems("按{code},{princi。。。}从{SearchRestriction}顺序中选择{pk},方法调用impex。 exportItems

at bsh.BSHMethodInvocation.eval(BSHMethodInvocation.java:97)〜[bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java: 102)〜[bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41] at bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)〜[bsh-2.0b5.jar:2.0b5 2005- 06-12 04:50:41]在bsh.Interpreter.eval(Interpreter.java:645)〜[bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]在bsh.Interpreter.eval (Interpreter.java:739)〜[bsh-2.0b5.jar:2.0b5 2005-06-12 04:50:41]在bsh.Interpreter.eval(Interpreter.java:728)〜[bsh-2.0b5.jar :2.0b5 2005-06-12 04:50:41]位于de.hybris.platform.impex.jalo.ImpExReader.legacyExecute(ImpExReader.java:3194)〜[impexserver.jar :?]位于de.hybris.platform。 impex.jalo.ImpExReader.execute(ImpExReader.java:3148)〜[impexserver.jar :?]位于de.hybris.platform.impex.jalo.ImpExReader.execute(ImpExReader.java:3117)〜[impexserver.jar :? ]在de.hybris.platform.impex.jalo.ImpExReader.processCodeLine(ImpExReader.java:3022)〜[impexserver.jar :?] 在de.hybris.platform.impex.jalo.ImpExReader.readLine(ImpExReader.java:1931)〜[impexserver.jar :?]在de.hybris.platform.impex.jalo.exp.Exporter.exportInternal(Exporter.java: 541)〜[impexserver.jar :?]在de.hybris.platform.impex.jalo.exp.Exporter.runScriptBasedExport(Exporter.java:244)〜[impexserver.jar :?]在de.hybris.platform.impex。 jalo.exp.Exporter.export(Exporter.java:182)〜[impexserver.jar:?]

一周热门 更多>