Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Tuesday, July 1, 2025 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: External Smart Part Lookups throwing "Object reference not set to an instance of an object."
Brett Bender
Posts: 5
 
External Smart Part Lookups throwing "Object reference not set to an instance of an object."Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 Dec 09 5:22 PM
I have been making modifications to the OOTB Insert Contact/Account screen. I have added a lookup control that is giving me problems. It throws a null reference exception ("Object reference not set to an instance of an object") when I try to do the following:

obj.BusinessArea = this.lkuBusinessArea.LookupResultValue.ToString();

I have tried different properties on the lookups, and done general error checking (For instance, I am sure someEntity exists, as well as SomeProperty in the database and AA both). My other custom controls (text fields, picklists) work fine. But for both the user control and the lookup, trying to access LookupResultValue throws the error, and I am at a loss as to why. If it makes any difference, the regular lookup is in DropDownDisplay mode.

When I change the dropdown to a regular dialog lookup, the dialog won't populate. SLXProfiler does not show any SQL firing to populate it, and i get the following error in the event viewer:
Exception caught during the processing of a message

Verb: GET
Uri: http://testserver/slxclient/slxdata.ashx/slx/crm/-/namedqueries?name=ctl00_MainContent_InsertContact_lkuBusinessArea&format=json&count=true&entity=AreaUnitProduct&where=0 eq 1&meta=true&_dc=1260225742505&start=0&limit=150

Original Message: could not resolve property: AreaUnitProductId of: Sage.SalesLogix.Entities.AreaUnitProduct [select AreaUnitProduct.id,AreaUnitProduct.AreaUnitProductId,AreaUnitProduct.BusinessArea,AreaUnitProduct.BusinessUnit from Sage.SalesLogix.Entities.AreaUnitProduct AreaUnitProduct where 0 = 1]

Stack Trace: at NHibernate.Persister.Entity.AbstractPropertyMapping.ToType(String propertyName)

The property name of the entity I am looking up is indeed AreaUnitProductId (as is the display name in AA). I double-checked in administrator and also SQL Management studio, all references to that field are AreaUnitProductId (Not Id or ID). I am at a loss as to how to fix this issue. Is it possible there is something wrong with the entity? Should I consider deleting it / dropping tables and recreating it?

Anybody have any other ideas?
[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2025 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 7/1/2025 1:23:21 PM