locked
Combining Entity.RowVersion and UpdateRequest for setting ownerid in CRM 2016 On -Premise RRS feed

  • Question

  • Hi All - I am trying to use the new Entity.RowVersion property to retrieve and do an update if the row version matches. I am aslo trying to use the recommendation to use the UpdateRequest instead of Assign request to set the ownerid on the entity record. When I combine these two, even though the row version remains the same, the update request (ConcurrencyBehavior.IfRowVersionMatches is set) fails with the Fault Exception that the row version did not match. Any idea if this is an unsupported combination? I am on CRM 2016 On prem and the SDK version is 8.1.0.359 and ownerid is the only attribute I am updating)

    Thanks in advance.

    Tuesday, November 1, 2016 10:49 PM

All replies

  • Hi,

    You may refer the below blog for reference:

    http://www.inogic.com/blog/2016/04/optimistic-concurrency-control-from-dynamics-crm-2015-update-1/

    Let us know if this helps.

    Thanks!

    Sam


    Inogic | Blog | news@inogic.com

    If this post answers your question, please click "Mark As Answer" on the post and "Mark as Helpful"

    Wednesday, November 2, 2016 9:50 AM
  • Sam, there are many blogs and articles which are repeating the same example of updating fields other than ownerid and it works fine.

    The challenge is when we try to combine the two features:

    1. Use the row version to check if the record is still valid for an update

    2. Use the recommendation for using the UpdateRequest instead of AssignRequest message to assign ownership in CRM 2016 on-premise.

    When we combine this, the UpdateRequest throws a Fault Exception that RowVersion does not match.

    Thanks

     
    Wednesday, November 2, 2016 2:51 PM