I have a few hundred nodes of which I want to modify a value. Hence I created a view (see attachment) with a VBO field. The resulting list is correct (filtering works). When I select one item / all of this page / all, then click "modify entity values" and define the values I get a page like that:

You selected the following 0 items:

...and 722 more.

[Confirm] [cancel]

If I click [Confirm] I see a progress bar taking a long time pretending to process 722 nodes but then back in the view nothing has changed.

CommentFileSizeAuthor
failing_view.txt12.07 KBTim-Erwin
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

bojanz’s picture

Status: Active » Closed (duplicate)
Tim-Erwin’s picture

Status: Closed (duplicate) » Active

I can't see how this is a duplicate. In the issue you link to, the option "Number of entities to load at once" is not set, in my view it is. I also tried setting it to 1 because it says I should do so in case I experience problems, but still nothing* happens.

*) pretends to do something, uses CPU cycles and causes hd I/O but doesn't change any value

bojanz’s picture

Okay, it just looked the same then.
I'll try to reproduce the next time I work on VBO.
You can try the 3.1 release to see if anything changed in the behavior.

ilreports’s picture

I've been having the exact same issue that @Tim-Erwin described. It appears to go through the process of modifying entity values but makes no changes. I've tried doing one node at a time, small groups, large groups; all with the same result. I'm currently using the 3.1 release.

bojanz’s picture

Is it possible that the items are skipped because of permission issues?
(Does it work if you use the view as admin?)
That's the only reason why a node could be skipped.

I can't reproduce it in any way.

bojanz’s picture

Issue summary: View changes
Status: Active » Postponed (maintainer needs more info)

So, let me know.

bojanz’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No further information provided.

notanumber6789’s picture

I am experiencing the same issue with VBO 7.x-3.3 while trying to modify the value of a text field in a custom entity created with ECK.

Everything seems to work as expected, after clicking confirm the bulk operation appears to execute and I receive the confirmation "Performed Modify entity values on X items", but no values are in fact modified.

I am attempting this as the admin user 1 to avoid any permissions issues.

Perhaps related I noticed the available tokens list only shows site tokens, despite having entity token enabled. I have tried modifying the value of my text field with tokens and with plain text - in both cases it appears to work, but no values are modified.

The option "Number of entities to load at once" was set to 10 by default, I tried setting it to 1 as suggested. I have also tried selecting a single record for modification, nothing works.

Can this issue be re-opened? Is there a workaround or fix I can try?

Thanks for the help.

GarChris’s picture

After deleting a taxonomy vocabulary with over 8,000 terms I ended up with that many "ghost" terms in my database not assigned to any vocabulary. Even though they showed up in Views, Views Bulk Operations could not act on them. Selecting the terms and pressing
"execute" gives: "You selected the following 0 items" and VBO fails silently.

To remove these terms:

  1. Create a view of all taxonomy terms on the site and add the field Taxonomy term: Term ID
  2. FILTER CRITERIA: Taxonomy term: Vocabulary (not in EXISTING VOCABULARY, ...) (select all vocabularies)
  3. BACK UP DATABASE
  4. RUN the following, replacing the term id with yours: DELETE FROM taxonomy_term_data

    WHERE tid BETWEEN 9765 AND 42369

This was specific to Taxonomy, but it might apply to other entities as well

artsakenos’s picture

Version: 7.x-3.0 » 7.x-3.3
Status: Closed (cannot reproduce) » Active

I have the same issue, i put some more information.

The Issue:
VBO Succesfully updates the node property, the node is correctly saved with the correct property set up.
As a consequence the exposed filter correctly select the items, but when you edit the node the former value is reported.

Debug:
The node seems to be correctly saved. The property is correctly set up.
But, implementing a _form_alter is possible to see that the entity object is not set propertly.
This leads to a wrong value during the edit of the item (which is cause data loss if user saves the node without re-setting the value).

Note that, if the field value is edited without using vbo, the correct new value is saved.
It is obvious but it was not at soon as I found this discrepancy on the website data.

I am working on a solution, if any suggestions please comment.

mattyboy57’s picture

I am getting the same problem. It states that the entities were updated and yet they are not. Using the same versions as Tim above. But not always!

I have some list-fieldss used in the user profile which can be VBO edited by one role. Even as Admin I find that they are variable in whether the VBO actually changes the value. I have tried one at a time, setting value to 1, and changing "separate button" to "drop down"

I also have a total problem with a "delete entities" VBO where none of the entities are deleted

I recently added the Additional Aggregation Views Module and some Permission modules related to subscribing to notifications so I will disable these and see if that affects anything.

ericwongcm’s picture

I experienced something similar, i.e. Drupal says it is updated but nothing happens and it seems to originate from the code changes to 7.x-3.3 as a result of this..
https://www.drupal.org/node/2516688

If I go back to 7.x-3.2, VBO works fine.
Something needs to be done to roll back the change or implement the fix differently.

Note: I was using VBO to change the Ubercart order status.

Duplicate issue: https://www.drupal.org/node/2537244

jas1988’s picture

Facing same issue nodes just get proceed but no values changes even when logged-in with admin user 1

I have tested with new view and modified permissions it works fine with newer version as well !

vaccinemedia’s picture

I have a view of taxonomy terms in order to bulk update their meta tags. I have two issues here:
The first one is that the token [term:description] is not allowed for the meta description field.
The second one is that on bulk updating the terms with new or default meta tags the change is not shown on the front end. The meta tags are all the same as they were before. HOWEVER, if I edit the term, I can see the new values in the edit form and upon saving the term the new values are then reflected on the website. It appears that the term is being updated but not saved by VBO?