I am parsing XML data with a long GREL expression, but while the preview shows the result I expect, the column produced has only blank cells. Do you have an idea of why?
I am starting with data like "SDC 12-4142", then harvesting an API by using this URL:
The most common reason for the type of behavior that you describe is
that the preview window is showing an array, which OpenRefine can't
store in a cell, but I just tried your expression with OpenRefine
3.7.6 and it worked fine for me.
Here's what I did:
Created a project from the clipboard and pasted your URL into the window
Used Add column by fetching URL to get the XL
Used Add column based on this column with your GREL expression
Confirmed that it produced your desired result.
On the other hand, if I leave of the final join('|'), the preview
window shows [ "2 disques compacts", "1 disque compact (55 min 19 s)"
] which is an array that's not storable (we should probably highlight
this fact a little better in the preview window).
There is a similar issue with other unstorable intermediary types (JSON object, XML elements).
We need a better mechanism for signalling to the user that these are not storable in a cell.