Community
Showing results for 
Search instead for 
Do you mean 
Reply

ACT2011 Premium error message: Cannot assign type Act.Framework.Contacts.Contact from Act.Framework.Companies.Company

Copper Super Contributor
Posts: 34
Country: United Kingdom

ACT2011 Premium error message: Cannot assign type Act.Framework.Contacts.Contact from Act.Framework.Companies.Company

We have made a VM copy of our live ACT2008 Premium database and upgraded it to 2011.

 

On using the ACT desktop client (we don't get this problem with the web interface), browsing Companies or just swicthing between layouts when looking at a single Company, we get this error

"Cannot assign type Act.Framework.Contacts.Contact from Act.Framework.Companies.Company

Parameter name: item"

 

The full debug error is at the end of this message. We have applied the latest hotfix etc but the error persists. Any ideas what is causing this and how to fix?

 

Thanks

 

System.ArgumentException: Cannot assign type Act.Framework.Contacts.Contact from Act.Framework.Companies.Company

Parameter name: item

   at Act.Framework.MutableEntities.MutableEntityFieldDescriptor.GetMutableEntity(Object item)

   at Act.Framework.MutableEntities.MutableEntityFieldDescriptor.GetValue(Object item)

   at Act.UI.PickList.PickListEditor.ValidateEdit()

   at Act.UI.PickList.MutableEntityFieldEditor.ValidateEdit()

   at Act.UI.Utilities.DetailViewValidator.control_Validating(Object sender, CancelEventArgs e)

   at Act.UI.Utilities.DetailViewValidator.ValidateControls(Boolean showErrorDialog)

   at Act.UI.Utilities.DetailViewValidator.HasErrors(Boolean showErrorDialog)

   at Act.UI.Companies.Views.CompanyDetailView.BeforeChangeCompanies(Object sender, CancelEventArgs e)

   at Act.UI.Companies.Views.CompanyDetailView.RefreshView()

   at Act.UI.Companies.Views.CompanyBaseView.Refresh(String commandID)

   at Act.UI.ActApplication.ExecuteCommand(String command)

   at Act.UI.ActApplication.BarItemClick(Object sender, EventArgs e)

   at DevComponents.DotNetBar.DotNetBarManager.90(BaseItem 2H1)

   at DevComponents.DotNetBar.BaseItem.RaiseClick()

   at DevComponents.DotNetBar.DotNetBarManager.I0(eShortcut 2JC)

   at DevComponents.DotNetBar.DotNetBarManager.8G(IntPtr 2J9, IntPtr 2JA, IntPtr 2JB)

   at DevComponents.DotNetBar.04.NP(IntPtr 2UD, IntPtr 2UE, IntPtr 2UF)

   at DevComponents.DotNetBar.05.PreFilterMessage(Message& m)

   at System.Windows.Forms.Application.ThreadContext.ProcessFilters(MSG& msg, Boolean& modified)

   at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

   at System.Windows.Forms.Application.ThreadContext.System.Windows.Forms.UnsafeNativeMethods.IMsoComponent.FPreTranslateMessage(MSG& msg)

   at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)

   at System.Windows.Forms.Application.Run(Form mainForm)

   at Act.Application.SingletonApp.Run(Form startupForm)

   at Act.Application.Act.Main(String[] args)

Copper Contributor
Posts: 29
Country: USA

Re: ACT2011 Premium error message: Cannot assign type Act.Framework.Contacts.Contact from Act.Framework.Companies.Company

The cause of this error is attempting to copy layout elements from another entity (usually Contacts) to a Company layout.  If you remove the fields that were copied from a non-Company layout, the problem will go away.