Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Error when attempting to create a contact within an account

1 view
Skip to first unread message

Martin

unread,
Oct 5, 2006, 12:38:47 PM10/5/06
to
I am trying to create contacts from within an account entity but keep
getting error "System.ArgumentException: The parameter is incorrect." when I
try to save it.

I have copied the stack trace below. If someone could help me fix this I
would appreciate it.

[ArgumentException: The parameter is incorrect.]
Microsoft.Crm.Platform.ComProxy.CRMContactClass.Create(CUserAuth& Caller,
String Contact) +0
Microsoft.Crm.Application.Platform.Contact.InternalCreate(String xml) +31
Microsoft.Crm.Application.Platform.Entity.Create() +109
Microsoft.Crm.Application.Forms.AppForm.RaiseDataEvent(FormEventId
eventId) +405
Microsoft.Crm.Application.Forms.EndUserForm.Initialize(Entity entity) +56
Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity,
String formId, String formType) +83
Microsoft.Crm.Application.Forms.CustomizableForm.Execute(Entity entity)
+12
Microsoft.Crm.Web.SFA.ContactDetailPage.ConfigureForm() +238
Microsoft.Crm.Application.Controls.AppPage.OnPreRender(EventArgs e) +30
System.Web.UI.Control.PreRenderRecursiveInternal() +62
System.Web.UI.Page.ProcessRequestMain() +1499


Aami

unread,
Oct 5, 2006, 1:05:11 PM10/5/06
to
Hi Morten ,

Its because of wrong mapping. So try the following steps :


1- Open Microsoft CRM Web Client

2- Go to Settings --> Customization --> "Customize entities"

3- Select "Contact" --> Relationships

4- Select the following relationship

Primary entity: "Account"
Related entity: "Contact"
Type of behavoir: "System"

5- Open the relationship --> mapping

6- Delete the following two mappings as they are not needed:

Source Schema name: "Address1_addressid"
Target Schema name: "Address1_addressid"


Source Schema name: "Address2_addressid"
Target Schema name: "Address2_addressid"

7- Close Window --> Save and close

8- Publish all customizations

/Aami

Martin

unread,
Oct 5, 2006, 1:15:40 PM10/5/06
to
Aami,

Thanks, that did the trick!

I am little confused as to how those mappings got added as I never created
them?

Thanks again.

"Aami" <a...@netpartner.dk> wrote in message
news:1160067911.1...@i3g2000cwc.googlegroups.com...

0 new messages