We have data exports from two different systems. We use vbo_export, to export data from Drupal and for Moodle there is a similar module. We take these two XLS exports and put them in excel so we can do some data massaging before converting to csv. On a mac, we convert the finished excel into a csv. This works just fine on a mac and when we open it up, the values all display. However, when we share this output with other team members who use windows, they notified us that all the drupal data was absent.

Easy replication steps (tested on Windows 10 Excel 2013)

  • modules installed: webform, webform_view, & vbo_export
  • have a view created with vbo export to xlsx
  • On a pc with excel, download the results
  • Save the results as csv
  • Reopen the results to see blank data

Comments

robpowell created an issue. See original summary.

robpowell’s picture

StatusFileSize
new600.63 KB
new770.22 KB

It seems like there is some cruft being added to the excel field

For example, here is the mac excel with the values working:

Here is the windows version that doesn't work:

again, same file different OS rendering different output.

In the mac screenshot, you can see the rows from vbo_export are formatted oddly (ie. left aligned or have a line break). I wonder if this cruft is making it so it can't render in windows.

Here are some stack overflows posts that may help:

graber’s picture

Did you check the actual values outputted from your fields to the view? Looks like some of them are numbers only and other contain some extra characters.

robpowell’s picture

Issue summary: View changes
StatusFileSize
new763.54 KB
new755.51 KB

@graber thanks for following up with me. So I guess there's a couple of things to think about in terms how my webform submissions are getting into these csvs. Here are all the contact points:

  1. user submits webform
  2. webform_views renders into view
  3. vbo_exports grabs view data and sends to phpexcel
  4. phpexcel renders the data into xlsx format

I can confirm that the data in the database is pristine. When I look at the view the above outputs are based on, I see the data rendered correctly. One thing I do find a bit odd is when I export the data in xlsx, each field seems to have a line break or space after the value.

Clicking into excel cells and highlighting extra space

This is what is leading me to an encoding issue or random cruft. Regarding the mac screenshot above, I was trying to call out that odd formatting of the rows that were merged in from the vbo_export. Here is a new screenshot with those rows highlighted.

xlsx with highlighted rows where data is from vbo_export

robpowell’s picture

Alright, I put a little more thought into this and decided if I could test vbo_export with a non webform_view and get the same results then it is a vbo issue. I went ahead and updated the content view and removed the default bulk operator and added vbo_export. When I opened the csv in pc, I was able to see the data. So the best I can tell, this is not a vbo_export issue.

robpowell’s picture

graber’s picture

Category: Bug report » Support request