back to top

Saleslogix 8.1 Web Access Tab Throws Null Reference Error

 I recently had a client experiencing a problem access the Contact’s Web Access tab.  Whenever the tab was opened, an error would be thrown.  The underlying error in the event log looked like this:

 2014-06-11 15:07:24,400 [38] ERROR SlxClient.ContactPage – Saleslogix Web Client unhandled exception during async postback [Saleslogix Error Id=SLX9F9FFFDDFBC8305C]
{
  “slxErrorId”: “SLX9F9FFFDDFBC8305C”,
  “mitigation”: “AjaxErrorResponse (576)”,
  “date”: “2014-06-11T15:07:24”,
  “utc”: “2014-06-11T22:07:24”,
  “message”: “Object reference not set to an instance of an object.”,
  “source”: “ASP.AccountDetails, App_Web_tf5rhnry, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null”,
  “type”: “System.NullReferenceException”,
  “stackTrace”: ”   at ASP.AccountDetails.quickformload0(Object sender, EventArgs e)rn   at ASP.AccountDetails.OnFormBound()rn   at Sage.Platform.WebPortal.SmartParts.EntityBoundSmartPart.OnPreRender(EventArgs e)rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Control.PreRenderRecursiveInternal()rn   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)”,
  “targetSite”: “Void quickformload0(System.Object, System.EventArgs)”,

Never mind that the error references the AccountDetails.  The Web Access custom smart part incorrectly defines itself as Account Detail.

The real problem turned out to be a deprecated call to the  userOptions service.  This service is used to access the SLXWEBUSERINFO table and read the data from there to determine if the web access checkbox on the Web Access tab should be checked or not.

This call is made within the quickformload0 method of the WebAccess.ascx

 Prior to 8.1 this was how the call was made:

        WebUserOptionsService userWebOptions = ApplicationContext.Current.Services.Get<IUserOptionsService>() as WebUserOptionsService;                    
        strOption = userWebOptions.GetPlatformOption(“CONTEXT:webticketcust”, “”, false, “n”, “”, EntityContext.EntityID.ToString());      

       
This code, if left in place returns a null reference expception.  Instead the correct new 8.1 code is:

        var userOptions = ApplicationContext.Current.Services.Get<IUserOptionsService>(true);
        strOption = userOptions.GetPlatformOption(“CONTEXT:webticketcust”, “”, false, “n”, “”, EntityContext.EntityID.ToString());

Contact Customer FX for your CRM project
We let our expertise speak for itself - let us know how our all-star team can help on your CRM project
About the Author
Kris Halsrud
Kris Halsrud
Kris Halsrud is a Senior Analyst / Developer for Customer FX Corporation.

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Infor CRM SLX 10.0: Delegate Ownership Changes for “Everyone” Records

Learn how the new EveryoneOwnerAssignment secured action in Infor CRM SLX 10.0 allows designated users to change ownership of Everyone-owned records without requiring Administrator access.

Related Articles

Infor CRM Sync for Exchange: Action Required by August 31, 2026

Using Infor CRM Sync for Exchange with Microsoft 365? Your Exchange administrator must update tenant settings by August 31, 2026 to prevent sync disruption.

[Webinar] What’s Coming Next for Infor CRM SLX and Why v10 Matters

See what’s coming next for Infor CRM SLX, including new marketing workflows, automation improvements, and reasons to consider upgrading to v10.

Disable Caching in Infor CRM SLX Web Client

In the rare case caching is causing issues in the Infor CRM SLX web client, it is possible to disable specific types of caching by making edits using Application Architect, and then deploying.

Exploring AI Options for Infor CRM v10

I've started taking a closer look at the AI capabilities built into Infor CRM v10. Over the next several posts, I'll share what I learn. From the built-in features and supported AI providers to implementation considerations, costs, and practical use cases.

Related Videos