Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV forum
Answered

A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.

Posted on by 217

A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.
--- Exception Dump ---
Caught Exception: [Microsoft.Dynamics.Integration.AdapterAbstractionLayer.AdapterException] A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.
Stack trace:
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CallCrmExecuteWebMethod(OrganizationRequest request)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.UpdateEntity(Entity entity)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.WriteParentEntity(Object value, String queryProperty)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.WriteParentEntity(Object value)
at Microsoft.Dynamics.Integration.Service.Tasks.RecordWork.DoRecordWork(DbMap map, Object key, OperationType operationType, DateTime startTime, String loggingSourceName)

Inner Exception: [System.ServiceModel.FaultException`1[Microsoft.Xrm.Sdk.OrganizationServiceFault]] A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.
Stack trace:

Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at Microsoft.Xrm.Sdk.IOrganizationService.Execute(OrganizationRequest request)
at Microsoft.Xrm.Sdk.Client.OrganizationServiceProxy.ExecuteCore(OrganizationRequest request)
at Microsoft.Dynamics.Integration.Adapters.Crm2011.CrmObjectProvider.CallCrmExecuteWebMethod(OrganizationRequest request)

Categories:
  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.

    Check this link might be your list is customized

    community.dynamics.com/.../88517

  • Verified answer
    kvp_patel Profile Picture
    kvp_patel 217 on at
    RE: A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.

    Thank You Suresh,

    Configuration NAV 2015 on-premises To CRM 2016 Online Whenever pull the data NAV Customer Card to Account

    Severity : Warn

    Status : Attempting to integrate

    Key : <<GUID>>Customer:<<Code>>

    Map : NAV Customer Card to Account

    Description : A validation error occurred.  The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,640 on at
    RE: A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.

    Patel,

    Please describe your issue in detail, when are you getting this error  and what are you trying to do ?

    Thanks

    Suresh

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: A validation error occurred. The value of 'addresstypecode' on record of type 'customeraddress' is outside the valid range.

    Please check if any of the values in that field in the table have NULL or corrupted value, usually it is the main reason.

    Check also: msdn.microsoft.com/.../microsoft.xrm.sdk.messages.updaterequest.aspx

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,339 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,177 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans