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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Bypass County /State Validation for Customer Import - DIXF - D365FO

(0) ShareShare
ReportReport
Posted on by 2,032

Hi,

I duplicated CustCustomerV3 entity and added few logic as per our requirement.

Is there a way I can bypass the validation of County/State when importing Customer.  The system should accept any values given for the state/County.

I tried writing the logic in MapEntityToDatasource using 

if (_dataSourceCtx.name() == dataEntityDataSourceStr(ABCCustCustomerV3Entity, LogisticsPostalAddressBaseEntity))
{
_dataSourceCtx.skipValidateWrite(true);
}

It is not bypassing. I am getting error when I import with invalid county

80015.error.PNG

Any idea how this can be done?

I have the same question (0)
  • Suggested answer
    Rahul Mohta Profile Picture
    21,032 on at
  • Verified answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Anitha,

    I am not sure if you can bypass validation as it will try to write the address data into the LogisticsPostalAddress table. The insert method is throwing this error and not validateWrite.

    The only I can think of is to write into Country/State table(s) in case the data provided does not exist in them beforehand.

  • Suggested answer
    AnithaEswaran Profile Picture
    2,032 on at

    Thanks Gunjan. I bypassed this validation and incorporated the insert logic as well.

    Posted the steps in my blog also.

    anithasantosh.wordpress.com/.../

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

News and Announcements

Season of Giving Solutions is Here!

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 679 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 421 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 282 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans