Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, June 27, 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: error creating relationship to address
vaughn poulson
Posts: 28
 
error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 02 Mar 09 5:13 PM
I have a custom entity with a property for addressid.
I'm trying to create a relationship based on this field to the address table.
I get this error when i try to do it:
===================================

An application exception has occurred.

===================================

Value cannot be null.
Parameter name: key (mscorlib)

------------------------------
Program Location:

at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
at System.Linq.Enumerable.d__1d`1.MoveNext()
at System.Linq.Enumerable.d__a4`1.MoveNext()
at System.Linq.Enumerable.d__1d`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Sage.Platform.Orm.Entities.EntityNameCreationService.GenerateUniquePropertyName(OrmEntity entity, String baseName)
at Sage.Platform.Orm.Entities.EntityNameCreationService.CreateName(OrmEntity entity, Type objectType, String baseName)
at Sage.Platform.Orm.Entities.OrmRelationship..ctor(OrmEntity parentEntity, OrmEntity childEntity, String cardinality, OrmEntityProperty parentProperty, OrmEntityProperty childProperty, CascadeOption cascadeOption)
at Sage.Platform.Orm.Entities.OrmEntity.CreateChildRelationship(OrmEntity child, String cardinality, OrmEntityProperty parentProperty, OrmEntityProperty childProperty, CascadeOption cascadeOption)
at Sage.Platform.AdminModule.EntityModel.EntityModelCommands.NewRelationshipCommand(Object sender, EventArgs args)
at Sage.Platform.Application.UI.Command.OnExecuteAction(Object sender, EventArgs e)
at Sage.Platform.Application.UI.CommandAdapter.FireCommand()
at Sage.Platform.Application.UI.EventCommandAdapter`1.InvokerEventHandler(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I can create a relationship to other enitties like contact, but not the address.
[Reply][Quote]
Venkatesh
Posts: 72
 
Re: error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 03 Mar 09 10:23 PM
I too have this kind of problem while creating relationship with Address and Owner Entity. It looks like it is a serious bug in Saleslogix. I created one XML file with following information and I named it as "Address.Owner.of8466d7677b43dc8c1e8b75d9ff45cd.relationship.xml" and added under Entity Model -> Relationships (I generated this file using SLX 7.2.2 AA)
?xml version="1.0"?
relationship xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" id="0f8466d7-677b-43dc-8c1e-8b75d9ff45cd" lastModifiedUtc="2009-02-28T16:58:46.6853112Z" cardinality="1:M" parentEntityId="9e78204b-7eab-4274-9137-34e5cd2c3433" childEntityId="dfca3267-2f5b-4970-813b-5aeb9ea75649"
extendedMetaData /
ExtendedPropertiesCollection
extendee type="Sage.Platform.Orm.Entities.OrmRelationship" /
/ExtendedPropertiesCollection
parentProperty id="f566702a-f1a6-4814-ad23-bcf89b06779b" lastModifiedUtc="2009-02-28T16:58:44.4353112Z" name="Owner" audited="false" displayCategory="Intermediate" isNullable="true" include="true"
ExtendedPropertiesCollection
extendee type="Sage.Platform.Orm.Entities.OrmRelationProperty" /
/ExtendedPropertiesCollection
SystemDataType guid="2f770d03-c93c-4605-8ae8-7cdae04830d7"
RelationshipDataType /
/SystemDataType
/parentProperty
childProperty id="36e23fb1-f1e8-48d0-a743-db1959fafdff" lastModifiedUtc="2009-02-28T16:54:19.9821862Z" name="Property4" audited="false" displayCategory="Intermediate" isNullable="true" include="false"
ExtendedPropertiesCollection
extendee type="Sage.Platform.Orm.Entities.OrmRelationProperty" /
/ExtendedPropertiesCollection
SystemDataType guid="2f770d03-c93c-4605-8ae8-7cdae04830d7"
RelationshipDataType /
/SystemDataType
/childProperty
column
OrmRelationshipColumn id="01abe056-31c7-41fb-bdb2-2196e7cf781e" parentPropertyId="3c46dea0-80aa-40e9-aa56-b0c08ab6b066" childPropertyId="178ebc9c-d165-4d4c-af7d-0315701aa611" ordinal="0" /
/column
/relationship
Now during compilation and deployment, I am not getting any kind of error, but while opening the Account List View it is not loading the group information.


Is this a known Issue? Has anybody reported to Sage?

[Reply][Quote]
Doug Evenhouse
Posts: 66
 
Re: error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 10 Mar 09 6:59 PM
We have the same issue trying to create a M-1 relationship from the Opportunity table to Address. No matter what, it always complains about a "Value cannot be null." Seems to be specific to the Address table.

Anyone have an idea on this? We looked at manually creating an XML file for the relationship but it looks ugly and difficult to get right with all the guids and such.

We will contact SalesLogix soon if we can't make progress here shortly.
[Reply][Quote]
Doug Evenhouse
Posts: 66
 
Re: error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 07 May 09 1:18 AM
SalesLogix has logged this issue as defect 1-68012. At this time it is an open issue that should be resolved in a future hot fix.
[Reply][Quote]
Mark Dykun
Posts: 297
 
Re: error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 08 May 09 6:55 AM
Doug does this at all have to do that you have to set the entity Id as well? Is it possible that you are not assigning a value there (2 ids that need assignment address, and entity).

Mark
[Reply][Quote]
Doug Evenhouse
Posts: 66
 
Re: error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 09 May 09 12:07 AM
In my case I wanted to create a M:1 relationship from Opportunity.AddressId (a field I added) to Address.AddressId. Any attempt to do so crashed AA (7.5.1). I'm told this was not an issue in 7.5.0. The problem is with Application Architect building the relationship using the "New Relationship" wizard, not with defining the relationship in code. Am I understanding you correctly Mark? I reported the issue to SalesLogix and they were able to reproduce it, apparently, and declared it a defect, as I mentioned.
[Reply][Quote]
Wiley S.
Posts: 52
 
Re: error creating relationship to addressYour last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 14 Jun 12 12:13 PM
fiogf49gjkf0d

Could someone expand on this issue a little?


 


I have a similar problem and I am wondering if it is related to this.


My address form won't save on the OpportunityDetails page.


The relationships exist to Address but nothing ever persists when you save the data.


The page returns no errors.  The address values show in the form but when you hit the Save button, the Opportunity record saves and the address field clears itself and saves nothing.


 

[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): 6/27/2025 9:03:46 PM