on 2018 Feb 26 10:24 AM
Hi Team, We have B2B site and on the login page we have option of changing the B2B unit from the b2b selector. One exception is coming intermittently : but uid exists in the database
sevicelayer.exceptions.UnknownIdentifierException: UserGroupModel with uid 'XXXXXXXX' not found!] with root cause de.hybris.platform.servicelayer.exceptions.UnknownIdentifierException: UserGroupModel with uid 'XXXXXXXXXXXX' not found! at de.hybris.platform.servicelayer.user.impl.DefaultUserService.validateNotNull(DefaultUserService.java:440) at de.hybris.platform.servicelayer.user.impl.DefaultUserService.validateNotNull(DefaultUserService.java:431) at de.hybris.platform.servicelayer.user.impl.DefaultUserService.getUserGroupForUID(DefaultUserService.java:234) at de.hybris.platform.servicelayer.user.impl.DefaultUserService.getUserGroupForUID(DefaultUserService.java:241) at de.hybris.platform.b2b.services.impl.DefaultB2BUnitService.getUnitForUid(DefaultB2BUnitService.java:385) at de.hybris.platform.b2b.services.impl.DefaultB2BUnitService.getUnitForUid(DefaultB2BUnitService.java:1) at de.hybris.platform.b2b.company.impl.DefaultB2BCommerceUnitService.getUnitForUid(DefaultB2BCommerceUnitService.java:141)
could you please help me here ?
Regards, Gaurav
Request clarification before answering.
Hello Gaurav,
Did you try troubleshooting that error in Hybris Administration Console?
In HAC->Console->Flexible Search -
Run first: "SELECT * FROM {UserGroupModel}" and then "SELECT * FROM {UserGroupModel} WHERE {uid}= '0100025397'. Confirm both type and row are accesible.
Enable JDBC tracking and reproduce error. Confirm query send to database is correct.
To access JDBC logging:
Open second tab and go to HAC -> Access Monitoring-> Database-> JDBC Logging.
Click both Enable Logging and Start Logging.
Repeat actions that caused the error.
Back in HAC click “Download log” - search for queries related to the error.
Best Regards, Marta
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This can be because of the personalization rules on b2bunit. Try to troubleshoot in following way.
Open hmc/backoffice
Go to System -> Personalization
Search with identifier as "branch_restriction"
Disable this.
Retest your functionality after clearing caches
I hope this will resolve your issue
Thanks
Nithish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you programmatically change the b2bunits associated to a b2bcustomer, refresh the branch in session otherwise you could have side effects (eg. with b2busergroup_restriction).
modelService.save(b2bCustomerModel);
b2bUnitService.updateBranchInSession(sessionService.getCurrentSession(), b2bCustomerModel);
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 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.