Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
i just realized that though i got rid of errors being displayed, most of my exported cells are empty now.
say i have a view with 3 columns: title + 2 custom fields. only the title will be output, for every other custom text field i see the following log entries
Notice: Undefined property: stdClass::$field_field_hw_dbmsnr in views_handler_field_field->get_items() (line 622 of /.../modules/views/modules/field/views_handler_field_field.inc).
Warning: Invalid argument supplied for foreach() in views_handler_field->advanced_render() (line 936 of /.../modules/views/handlers/views_handler_field.inc).
Comments
Comment #1
Damien Tournoud CreditAttribution: Damien Tournoud commentedRetitling.
This is because Views data export hacks around Views' execution model, and does not call the proper hooks at the proper time.
Comment #2
Dutchie78 CreditAttribution: Dutchie78 commentedFor me, when turning off 'Batched export' it works
Comment #3
realityloopTurning off Batched worked for me too
Comment #4
cartagena CreditAttribution: cartagena commentedThat worked. I just updated views, views data export and views bulk operations to latest dev releases (as of today, June 9) and still had the problem until I turned off the batch export. I have just under 2,000 records...what will happen as the database grows? Thanks!
Comment #5
tripper54 CreditAttribution: tripper54 commentedsubscribe
Comment #6
xlyz CreditAttribution: xlyz commentedsame problem.
subscribing.
Comment #7
olbion CreditAttribution: olbion commentedSame problem
Comment #8
Woodside CreditAttribution: Woodside commentedSame issue, thanks for figuring this out, was driving myself nuts.
Comment #9
modstore CreditAttribution: modstore commentedSame problem, works without batch. But keen for the fix as will have lots of records in the future.
Comment #10
that0n3guy CreditAttribution: that0n3guy commentedAhh, I didn't notice this issue. Just spent like 30 min messing with it :) . Subscribing.
Comment #11
jsenich CreditAttribution: jsenich commentedSubscribing.
Comment #12
jsenich CreditAttribution: jsenich commentedComment #13
Steven Jones CreditAttribution: Steven Jones commentedThis is critical chaps, and I might just have time to take a look soon!
Comment #14
Steven Jones CreditAttribution: Steven Jones commentedEasy peasy, fixed in dev, and I'll roll a new release in a bit.
Comment #15
jsenich CreditAttribution: jsenich commentedWorks for me, thanks!
Comment #16
afreen.k CreditAttribution: afreen.k commentedTurning off batch works for me too.... thanks!
Comment #17
Steven Jones CreditAttribution: Steven Jones commentedComment #19
kaleumakant CreditAttribution: kaleumakant commentedI am also facing same issue of missing fields when i have selected batch process for exporting records. it is working fine for normal export (without batch export) but timesout due to large number of records.