Skip to main content

Notifications

Announcements

No record found.

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

  • Verified answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 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,745 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

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,642 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,371 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans