Output schema
Hi, I'm having 2 issues with output schema definition:
- I can't make
transformations.unwind work, the table only shows undefined values -> Is there a working example I can check somewhere?
- When instead using transformations.flatten, it seems the table can't show fields with array or object format, it shows undefined instead. Am I missing something here?
For reference, my result is formatted like this, and i want to unwind/flatten the data part:
And I'd like the table to show the columns:
- "metadata" as object (this works)
- "url" as link (works only when using flatten, not unwind)
- "title" as text (same)
- "attributes" as array (shows undefined)
Here is the docs I've been using https://docs.apify.com/platform/actors/development/actor-definition/output-schema7 Replies
Please provide your exact reproduction (JSON with output_schema).
It should be straightforward and shouldn't cause any issues. The documentation is clear and simple, so there might be a mistake in your JSON structure.
Hi @Oleg V. , thanks for your answer.
Here is my output definition:
As you see (first image) the price should be an object but is instead undefined, even though the price json is present in the full data (second image).


If i try using
unwind with this config:
then it's all undefined
unwind usage should look like this:
And not
try to debug it with smaller / simpler output object. and then increase complexity step by step (I mean add nested obj, and so on...).
check this working example for inspiration:
Ofc my bad for the typo, I did use "unwind" as a key, but still could not make it work.
If i do
"unwing": ["data"], and data contains a url field, what should i list in the fields? I've tried url and data.url adn both end up undefined.
In your example with flatten none of the fields are of type array or object (they are image, text or number only), which are the types I'm having trouble with...So with
unwind I'm able to move children into a parent object as expected, but in the table view it always appears as undefined. What should be in the field list when using unwind?


Any insight on this @Oleg V.?