on ‎2020 Aug 14 11:12 PM
Hi All,
We are facing one issue where bulk edit in Back office is not working only for type Customer. Please find the attached stack trace :
ERROR [hybrisHTTP24] [DefaultWidgetInstanceManager] Error during send output
de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: No attribute with qualifier savedCarts found.
at de.hybris.platform.servicelayer.type.impl.DefaultTypeService.getAttributeDescriptor(DefaultTypeService.java:201) ~[coreserver.jar:?]
at com.hybris.backoffice.bulkedit.renderer.BulkEditAttributesSelectorRenderer.isManyToOneRelation(BulkEditAttributesSelectorRenderer.java:144) ~[classes/:?]
at com.hybris.backoffice.bulkedit.renderer.BulkEditAttributesSelectorRenderer.canBeAppliedForManyItems(BulkEditAttributesSelectorRenderer.java:139) ~[classes/:?]
at com.hybris.backoffice.bulkedit.renderer.BulkEditAttributesSelectorRenderer.lambda$2(BulkEditAttributesSelectorRenderer.java:110) ~[classes/:?]
Request clarification before answering.
The root cause: there is no such attribute in the system for the Customer type.
One of the possible solutions is to exclude "savedCarts" attribute from the Bulk Edit Wizard. See the Backoffice configuration below:
<context type="Customer" merge-by="type" component="bulk-edit-wizard">
<wz:flow id="bulkEditWizard" title="bulkedit.wizard.title" size="large">
<wz:step id="step1" label="bulkedit.wizard.step.select.attributes" sublabel="bulkedit.wizard.step.select.sublabel">
<wz:content id="step1.content">
<wz:custom-view id="attributesSelector" lang="zul" merge-mode="replace">
<wz:renderer spring-bean="bulkEditAttributesSelectorRenderer">
<wz:parameter>
<wz:name>bulkEditFormModelKey</wz:name>
<wz:value>bulkEditForm</wz:value>
</wz:parameter>
<wz:parameter>
<wz:name>excludedQualifiers</wz:name>
<wz:value>savedCarts,modifiedtime</wz:value>
</wz:parameter>
</wz:renderer>
</wz:custom-view>
</wz:content>
<wz:navigation>
<wz:cancel/>
<wz:next visible="bulkEditForm.attributesForm.chosenAttributes?.size()>0"/>
</wz:navigation>
</wz:step>
</wz:flow>
</context>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.