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
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:
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156