on 05-31-2016 4:25 PM
b2bUnitService.getUnitForUid(uid) returns NULL value, however using flexi query the Unit can be seen in the result. Any ideas why ?
Thanks.
Hi, Did you find any solution of this? I can also see this null error for valid uid, at code-line:
final B2BUnitModel unitForUid = getCompanyB2BCommerceService().getUnitForUid(uid);
Is it Bug, or some permission issue with the user ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
b2bUnitService.getUnitForUid(uid)
calls
UserService
to get the b2bUnit.
Have, you overridden UserService ?
More info at DefaultB2BUnitService (you will need a Decomiler to check this class) :
unit = (B2BUnitModel)getUserService().getUserGroupForUID(uid, de/hybris/platform/b2b/model/B2BUnitModel);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
if the uid passed to get the business unit is not available then it will return null. You may be check that if you still have the issue please elaborate your question in detail
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
6 | |
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.