I am having an issue loading items into a rule from a view using Load a list of entity objects from a VBO View. I have also tried installing the latest dev version ( 7.x-3.4+18-dev ) and the issue still appears to be there.. I have been running the rule as it is for years but after the upgrade to 3.4 it seems to have stopped working..

Seems similar or the same as this issue https://www.drupal.org/node/2853029

Please help I need these rules functional..

Thanks..

CommentFileSizeAuthor
#8 2019-03-21_0223.png372.15 KBchalk
#8 2019-03-21_0218.png210.71 KBchalk
#6 2960424-6.patch608 bytespgrond

Comments

wipeout_dude created an issue. See original summary.

joelpittet’s picture

Version: 7.x-3.4 » 7.x-3.x-dev
Status: Active » Postponed (maintainer needs more info)
Issue tags: +Needs issue summary update

Can you explain the issue further in the issue summary? What error are you getting?

wipeout_dude’s picture

Hi,
I have a rules that call VBO views that should return all the nodes that need processing by the rule.. The rule then runs a loop on the returned results and does what it needs to do.. These rules have worked fine for ages but somewhere in a recent update it has stopped working and it seems the VBO view is not returning any results for the rule to loop through.. I don't know when exactly it stopped working because its only just been brought to my attention..

Errors being logged are..
- Unable to get a data value. Error: Invalid data value given. Be sure it matches the required data type and format. Value at node(): .
- Unable to evaluate action views_bulk_operations_action_load_list.
- Unable to get variable entity_list, it is not defined.
- Unable to evaluate loop.

wipeout_dude’s picture

Status: Postponed (maintainer needs more info) » Active
brianbrarian’s picture

I encountered the same errors after recently updating to 3.4. While troubleshooting, I noticed that my VBO view/display wasn't showing up in the "Load a list of entity objects from a VBO View" dropdown in my Rules action set edit UI. A bunch of other views were listed, just not the one I was using in the action set.

My steps to resolving were:

1. Create an entirely new view for the VBO view/display and select that in my Rules action set. But afterwards I still got the "Unable to ..." errors when executing the action set.

2. Implement patch #8 from https://www.drupal.org/node/2853029 or update VBO to 7.x-3.5. (Success either way; the fix from the patch is in 3.5.)

I'm not sure that step 1 was necessary, but I first tried to fix things by tinkering with my view (tried saving my old VBO display, cloning the old display, and cloning the old view before creating a new view) before I searched d.o for the errors and found wipeout_dude's issue posted.

pgrond’s picture

StatusFileSize
new608 bytes

The upgrade to 7.x-3.5 is not working as expected in my case. My result object in views_bulk_operations_action_load_list does not have a property $vbo->real_field. It has a property $vbo->field_alias though, containing the correct id. I seems logical it is the field_alias from views.

wipeout_dude’s picture

Mine all seems to have started working again after updating all modules to the latest round of updates.. I guess something in there fixed it..

chalk’s picture

StatusFileSize
new210.71 KB
new372.15 KB

I can try to explain a nature of the bug: it appears when a field with identifier is not from a View's base table, for example from a joined (via "Relations") table.

In our project we use the OG module + a Rule that uses the views_bulk_operations_action_load_list() to fetch a list of UID. But the base table of a View that is used by the Rule is not "users". The base table is "og_membership". The View contains a relation to the "users" table.

See my screens:

1
2

The #6 patch solves the issue for me.

chalk’s picture

Status: Active » Needs review
JoOneSheep’s picture

Version: 7.x-3.x-dev » 7.x-3.5

My rule was working fine in 3.3, but following update direct to 3.5 has stopped working, similar problem to Brianbrarian, when they said "I noticed that my VBO view/display wasn't showing up in the "Load a list of entity objects from a VBO View" dropdown in my Rules action set edit UI. A bunch of other views were listed, just not the one I was using in the action set."

joelpittet’s picture

Version: 7.x-3.5 » 7.x-3.x-dev

All issues are worked on in the dev branch.

elektrorl’s picture

Make sure that the VBO field is loaded in the Master display. In the Views module settings, it is possible to force this Master display.

codeyourdream’s picture

I can confirm the patch from #6 fixes the issue in 7.x-3.x dev branch.