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

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

'Effective:' can only be updated to today or a value in future in change tracking mode.

(0) ShareShare
ReportReport
Posted on by 455

I'm getting this error when trying to update a record in LogisticPostalAddress. Encountered it when using dirParty.createOrUpdatePostalAddress call but I confirmed the same behavior in a simple test job. The error happens within update call so I cannot trace it all the way through. Has anyone seen something similar?

Here's the job's code.

    LogisticsPostalAddress address =  LogisticsPostalAddress::findRecId(5637172374);
    ttsBegin;
    address.ZipCode = "45386";
    address.selectForUpdate(true);
    address.ValidFrom = DateTimeUtil::utcNow();
    address.ValidTo = DateTimeUtil::maxValue();
    address.validTimeStateUpdateMode(ValidTimeStateUpdate::CreateNewTimePeriod);
    address.update();
    ttsCommit;


*This post is locked for comments

I have the same question (0)
  • Verified answer
    Community Member Profile Picture
    on at
    RE: 'Effective:' can only be updated to today or a value in future in change tracking mode.

    Hello Alex

    You cannot update both date fields at the same time.

    This white paper may help you update date effective records such as in LogisticsPostalAddress table:

    Regards
    Hans-Peter

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Tocauer Profile Picture

Martin Tocauer 4

#1
Community Member Profile Picture

Community Member 4

#3
Nayyar Siddiqi Profile Picture

Nayyar Siddiqi 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans