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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Insert not supported with the values specified for 'Effective' and 'Expiration

(0) ShareShare
ReportReport
Posted on by 484

What would cause such error?

Cannot create a record in Addresses (LogisticsPostalAddress). Insert not supported with the values specified for 'Effective' and 'Expiration'. New record overlaps with multiple existing records

I can't find the error in D365 labels..to look for references. How can i find it?

I have a custom service that updates or creates an address using logisitcsPostalAddressHistoricalCDSV2Entity

I have the same question (0)
  • Mohit Rampal Profile Picture
    12,565 Moderator on at

    Hi, There might be existing records in this effective and expiration period.

  • Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    It comes from kernel logic for date-effective tables.

    You're trying to insert a record with invalid values. It it was allowed, it would cause having several addresses valid at the same time.

  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at
  • DELDYN Profile Picture
    484 on at

    Hi Martin,

    I tried to reproduce by creating addresses that are valid at the same time, but I didn't get any error.

    When then would such error appear?

    image-_2800_7_2900_.png

    Hi Girish,

    Based on ur first link, i tried to add an address that is between an existing period but I didn't get an error as well

    image-_2800_8_2900_.png

  • Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    Your screenshots show addresses for different locations.

  • DELDYN Profile Picture
    484 on at

    Hi Martin,

    If i try to insert record with same data or by changing street only for example, it's going to override it because logisticsPostalAddressHistorecalCDSV2Entity ValidTimeStateEnabled = no

    But i tried to change validFrom so that it creates history, it worked so i still can't reproduce the error. can you please tell me the repro steps?

    image-_2800_9_2900_.png

  • Martin Dráb Profile Picture
    237,972 Most Valuable Professional on at

    Now you have the same location, but different period.

    The unique index isn't violated because the records didn't have the same combination of Location and ValidFrom.

  • DELDYN Profile Picture
    484 on at

    Hi martin,

    But as i said, if location and validFrom are the same, then it will never create a new record and it will just update it(maybe it uses correction). As it the validTimeStateEnabled property for this entity is no.

    So i tried multiple times but got no errors.

    In order to create new records, validFrom needs to be different it seems

  • DELDYN Profile Picture
    484 on at

    Any idea?

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

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 429 Most Valuable Professional

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 239 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans