Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
OperationVetoedException - when updating an existing document
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Paul Hinett  
View profile  
 More options Jun 8 2012, 6:40 pm
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Fri, 8 Jun 2012 23:40:44 +0100
Local: Fri, Jun 8 2012 6:40 pm
Subject: OperationVetoedException - when updating an existing document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 8 2012, 7:55 pm
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sat, 9 Jun 2012 00:55:27 +0100
Local: Fri, Jun 8 2012 7:55 pm
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 9 2012, 2:06 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sat, 9 Jun 2012 09:06:42 +0300
Local: Sat, Jun 9 2012 2:06 am
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing document

Can you update to 960 ? 951 is unstable, and it has a bug related to unique
contraints.

On Sat, Jun 9, 2012 at 2:55 AM, Paul Hinett <p...@ukcreativedesigns.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 9 2012, 5:15 am
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sat, 9 Jun 2012 10:15:44 +0100
Local: Sat, Jun 9 2012 5:15 am
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

I did this before, that is what caused the issue (I think).

I have updated to build 960 again and I'm running from the debug console,
still getting the same problem.

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 09 June 2012 00:55
To: ravendb@googlegroups.com
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 9 2012, 6:26 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sat, 9 Jun 2012 13:26:46 +0300
Local: Sat, Jun 9 2012 6:26 am
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing document

Any way to repro?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 9 2012, 6:31 am
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sat, 9 Jun 2012 11:31:37 +0100
Local: Sat, Jun 9 2012 6:31 am
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

It's not doing this locally on dev machine, only on production server with
any save to an existing 'Account' document.

I would do a backup/restore to my local machine to test, but it takes over
24 hours.

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 11:27
To: ravendb@googlegroups.com
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Any way to repro?

On Saturday, June 9, 2012, Paul Hinett wrote:

I did this before, that is what caused the issue (I think).

I have updated to build 960 again and I'm running from the debug console,
still getting the same problem.

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Paul Hinett
Sent: 09 June 2012 00:55
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 9 2012, 6:38 am
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sat, 9 Jun 2012 11:38:49 +0100
Local: Sat, Jun 9 2012 6:38 am
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

This is only happening on old documents by the way, newly created documents
seem to be working fine by the looks of it.

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 11:27
To: ravendb@googlegroups.com
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Any way to repro?

On Saturday, June 9, 2012, Paul Hinett wrote:

I did this before, that is what caused the issue (I think).

I have updated to build 960 again and I'm running from the debug console,
still getting the same problem.

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Paul Hinett
Sent: 09 June 2012 00:55
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 9 2012, 6:46 am
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sat, 9 Jun 2012 11:46:18 +0100
Local: Sat, Jun 9 2012 6:46 am
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

It seems to also only do this for specific documents, I'm not entirely sure
which ones exactly or if there is any pattern to this, but some save ok,
some don't.

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 11:27
To: ravendb@googlegroups.com
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Any way to repro?

On Saturday, June 9, 2012, Paul Hinett wrote:

I did this before, that is what caused the issue (I think).

I have updated to build 960 again and I'm running from the debug console,
still getting the same problem.

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Paul Hinett
Sent: 09 June 2012 00:55
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 9 2012, 7:02 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sat, 9 Jun 2012 14:02:24 +0300
Local: Sat, Jun 9 2012 7:02 am
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing document

Is it possible that you don't have the right metadata On those docs?
Can you get a failing doc, data + metadata ? Can you test on that?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 9 2012, 5:45 pm
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sat, 9 Jun 2012 22:45:15 +0100
Local: Sat, Jun 9 2012 5:45 pm
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

I have noticed something weird.

In the actual unique constraint document of a working one, this is how it
looks:

{

  "RelatedId": "accounts-40132"

}

And a none working one:

{

  "Id": "accounts-155"

}

Why is one using RelatedId, and the other Id?

Is this maybe the issue?

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 12:02
To: ravendb@googlegroups.com
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Is it possible that you don't have the right metadata On those docs?

Can you get a failing doc, data + metadata ? Can you test on that?

On Saturday, June 9, 2012, Paul Hinett wrote:

It seems to also only do this for specific documents, I'm not entirely sure
which ones exactly or if there is any pattern to this, but some save ok,
some don't.

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 11:27
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Any way to repro?

On Saturday, June 9, 2012, Paul Hinett wrote:

I did this before, that is what caused the issue (I think).

I have updated to build 960 again and I'm running from the debug console,
still getting the same problem.

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 09 June 2012 00:55
To: ravendb@googlegroups.com
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul<


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 10 2012, 3:21 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sun, 10 Jun 2012 10:21:10 +0300
Local: Sun, Jun 10 2012 3:21 am
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing document

Yes, we had a breaking change there, where we changed Id -> RelatedId
You can fix this by changing this.

On Sun, Jun 10, 2012 at 12:45 AM, Paul Hinett <p...@ukcreativedesigns.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Paul Hinett  
View profile  
 More options Jun 10 2012, 6:07 am
From: "Paul Hinett" <p...@ukcreativedesigns.com>
Date: Sun, 10 Jun 2012 11:07:49 +0100
Local: Sun, Jun 10 2012 6:07 am
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing document

Seems like an unnecessary breaking change?

Is there a list of breaking changes anywhere that I can check through when
upgrading server builds?

What would be the recommended way to loop through all the invalid unique
constraint documents and updating the Id field to RelatedId?

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 09 June 2012 22:45
To: ravendb@googlegroups.com
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I have noticed something weird.

In the actual unique constraint document of a working one, this is how it
looks:

{

  "RelatedId": "accounts-40132"

}

And a none working one:

{

  "Id": "accounts-155"

}

Why is one using RelatedId, and the other Id?

Is this maybe the issue?

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 12:02
To: ravendb@googlegroups.com
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Is it possible that you don't have the right metadata On those docs?

Can you get a failing doc, data + metadata ? Can you test on that?

On Saturday, June 9, 2012, Paul Hinett wrote:

It seems to also only do this for specific documents, I'm not entirely sure
which ones exactly or if there is any pattern to this, but some save ok,
some don't.

From: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
[mailto:ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');> ] On Behalf
Of Oren Eini (Ayende Rahien)
Sent: 09 June 2012 11:27
To: ravendb@googlegroups.com
<javascript:_e(%7b%7d,%20'cvml',%20'ravendb@googlegroups.com');>
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing
document

Any way to repro?

On Saturday, June 9, 2012, Paul Hinett wrote:

I did this before, that is what caused the issue (I think).

I have updated to build 960 again and I'm running from the debug console,
still getting the same problem.

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 09 June 2012 00:55
To: ravendb@googlegroups.com
Subject: RE: [RavenDB] OperationVetoedException - when updating an existing
document

I can reproduce this from the Silverlight management studio too, load up the
document, modify and save it.get the same error.

I have downgraded the server to build 951 just to check if it fixes it, but
it doesn't which is strange.

I'm not 100% sure it was build 951 I was using previously to be quite
honest, but it was around the 24th May i downloaded the latest build I was
using.

This is affecting a large proportion of my site currently when saving any
document related to a user account.

Paul

From: ravendb@googlegroups.com [mailto:ravendb@googlegroups.com] On Behalf
Of Paul Hinett
Sent: 08 June 2012 23:41
To: ravendb@googlegroups.com
Subject: [RavenDB] OperationVetoedException - when updating an existing
document

Hi,

Just upgraded to build 960 stable from 951, both client, server and bundles.

On a simple procedure of loading an existing document by id, updating 1
property (a DateTimeOffset property) I am getting an exception from the
UniqueConstraint bundle.

I can't seem to reproduce this locally on my dev machine but only on my
production server.

var account = _documentSession.Load<Account>(command.AccountId);

account.LastNotificationReadDate = DateTimeOffset.Now;

Raven.Database.Exceptions.OperationVetoedException: PUT vetoed by
Raven.Bundles.UniqueConstraints.UniqueConstraintsPutTrigger because: Ensure
unique constraint violated for fields: ArtistName, EMail

Has anything changed that could cause this, it was working fine before the
upgrade to latest stable.

Paul<


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Oren Eini (Ayende Rahien)  
View profile  
 More options Jun 10 2012, 6:10 am
From: "Oren Eini (Ayende Rahien)" <aye...@ayende.com>
Date: Sun, 10 Jun 2012 13:10:39 +0300
Local: Sun, Jun 10 2012 6:10 am
Subject: Re: [RavenDB] OperationVetoedException - when updating an existing document

http://issues.hibernatingrhinos.com/<http://issues.hibernatingrhinos.com/dashboard>
can
give the breaking changes.

It was needed because Id is the default identifier property.

For updating, you can use:
http://ravendb.net/docs/http-api/http-api-multi
http://ravendb.net/docs/client-api/partial-document-updates

On Sun, Jun 10, 2012 at 1:07 PM, Paul Hinett <p...@ukcreativedesigns.com>wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »