Well know error while saving web part

naimish_hitnaimish_hit Member Posts: 111
edited 2006-03-27 in Navision e-Commerce
Error during Modify (20): Another user has modified the record for this Object after you retrieved it from the database. Enter your changes again in the Web Part.

What cause this error?

With Best Regards,

NAimish Dave
Naimish Dave
(Software Engineer)

Comments

  • IHateLinuxIHateLinux Member Posts: 223
    Hi,

    this is caused as it states: Another user has modified the record in the database.

    Because of the nature of the NAS, he is getting the record and afterwards he knows nothing any longer about the record version information.

    This means when one person is modifying the data in EP and another person is modifying the same record in Navision the following scenario may happen:
    A.) First NAV user save record, second NEP user save the record
    -> Changes of NAV user would be overwritten
    B.) First EP, second NAV user
    -> The NAV user will get a warning, that someone else has modified the record. He gets this because the client has internally access to a timestamp of the record and therefore he checks before commiting the data in the DB if the timestamp is still the same as when he got the record from the db

    Solution:
    In EP each transmitted record gets a HashValue calculated over the complete record.
    This information is sent to the backend when the user wants to do any modification. The NAS is first calculating the HashValue of the current record in NAV and if the both values are matching he knows that no one else has modified the record in the meantime. Then he can start his modification.

    Clear enough?

    HTH,
    Rainer
  • krikikriki Member, Moderator Posts: 9,115
    Check also my reply in this topic : http://www.mibuso.com/forum/viewtopic.php?t=10128
    Regards,Alain Krikilion
    No PM,please use the forum. || May the <SOLVED>-attribute be in your title!


Sign In or Register to comment.