We're updating the issue view to help you get more done. 

CreateUser Error in scheduler

Description

Please change from PortalController.GetCurrentPortalSettings() as it comes null in scheduler to PortalSettings(portalid), you are calling it in CreateUser(ref userinfo) method

internal static void UpdateUser(int portalId, UserInfo user, bool loggedAction, bool clearCache)
{
portalId = UserController.GetEffectivePortalId(portalId);
user.PortalID = portalId;
MembershipProvider.Instance().UpdateUser(user);
if (loggedAction)
{
EventLogController eventLogController = new EventLogController();
eventLogController.AddLog(user, PortalController.GetCurrentPortalSettings(), UserController.GetCurrentUserInfo().UserID, "", EventLogController.EventLogType.USER_UPDATED);
}
if (clearCache)
{
DataCache.ClearUserCache(portalId, user.Username);
}
}

QA Test Plan

Status

Assignee

Bing Wu

Reporter

karamjeet singh

Severity

Show Stopper

Triage

Triaged

Fixed in Build

7.2.2.237

Includes Code Fix

Yes

Documentation Required

No

Story Points

1

Components

Sprint

None

Fix versions

Affects versions

7.2.1

Priority

High