cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

UserGroupModel with uid 'XXXXXXXXXX' not found!

Former Member
0 Likes
5,155

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

Hello Gaurav,

Did you try troubleshooting that error in Hybris Administration Console?

  1. 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.

  2. Enable JDBC tracking and reproduce error. Confirm query send to database is correct.

    To access JDBC logging:

    1. Open second tab and go to HAC -> Access Monitoring-> Database-> JDBC Logging.

    2. Click both Enable Logging and Start Logging.

    3. Repeat actions that caused the error.

    4. Back in HAC click “Download log” - search for queries related to the error.

Best Regards, Marta

Answers (2)

Answers (2)

Former Member

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

ritumbharathakur
Explorer
0 Likes

Hi Nithish

It didn't help me.

alemasetto
Participant
0 Likes

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);