web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

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

(0) ShareShare
ReportReport
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)

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Alexander Ermakov Profile Picture
    28,096 on at

    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

  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Patel,

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

    Thanks

    Suresh

  • Verified answer
    kvp_patel Profile Picture
    217 on at

    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.

  • Verified answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at

    Check this link might be your list is customized

    community.dynamics.com/.../88517

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans