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

Announcements

News and Announcements icon
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

    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans