Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

LogisticsElectronicAddress - update conflict exception for non-phone numbers

Posted on by 11
Hello:
 
I am attempting to update an email record in LogisticsElectronicAddress table from the CustTable form and received the following error message:
 
/Cannot edit a record in Communication details (LogisticsElectronicAddress). An update conflict occurred due to another user process deleting the record or changing one or more fields in the record./
 
I do not receive such an error when I try to update a record with method type Phone - my change is accepted.  I have attempted to call reread() and disableCache() before modifying the record and calling the LogisticsElectronicAddress.update() method - still the same error.   I have also attempted using the select forUpdate clause in place of the update() call and included the RecVersion in my select statement - still the same error.
 
Is there any way to tell where this other 'user process' is originating?  I do not have any batch jobs running on separate server.  
 
Thank you in advance.
  • Verified answer
    Community member Profile Picture
    Community member 11 on at
    LogisticsElectronicAddress - update conflict exception for non-phone numbers
    I was actually able to resolve it on my own.  I had to disable optimistic currency control (OCC) at the table level AND include the table buffer in the same tts level as the update call.
  • Community member Profile Picture
    Community member 11 on at
    LogisticsElectronicAddress - update conflict exception for non-phone numbers
    Hello:
     
    I ran through code with the debugger - there is only one update method call.  It always errors when super() is called in LogisticsElectronicAddress.update(), so I am unable to see what operation is causing the issue.  It also errors when I use doUpdate().

    I have also tried to update values directly by opening the table in the AOT.  Again, it works for Type = Phone, but nothing else. 
     
    I still do not understand why update conflict happens for some records but not others - shouldn't an update conflict occur on any update to the table?
     
    Thank you again.
  • GirishS Profile Picture
    GirishS 27,803 Super User on at
    LogisticsElectronicAddress - update conflict exception for non-phone numbers
    Hi,
     
    Have you debugged the code?
    May be the update is calling 2 times - One will be from your custom update and another one from standard update.
    Please debug to get better understanding about the issue.
    If possible, please post the update code here.
     
    Thanks,
    Girish S.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans