[This workflow sometimes works and sometimes does not](https://metafacture.org/playground/?flux=%22https%3A//oersi.org/resources/api/search/oer_data/_search%3Fq%3Dcreator.location.address.addressRegion%3A%2522North%2520Rhine-Westphalia%2522%2BOR%2Bcreator.affiliation.location.address.addressRegion%3A%2522North%2520Rhine-Westphalia%2522%2BOR%2Bpublisher.location.address.addressRegion%3A%2522North%2520Rhine-Westphalia%2522%2BOR%2BsourceOrganization.location.address.addressRegion%3A%2522North%2520Rhine-Westphalia%2522%26size%3D9999%22%0A%7C+open-http%28accept%3D%22application/json%22%29%0A%7C+as-records%0A%7C+decode-json%28recordPath%3D%22hits.hits.%2A._source%22%29%0A%7C+fix%28transformationFile%29%0A%7C+flatten%0A%7C+encode-csv%28includeHeader%3D%22true%22%29%0A%7C+write%28%22nrw-resources.csv%22%29%0A%3B&transformation=move_field%28%22id%22%2C%22@id%22%29%0Amove_field%28%22@id%22%2C%22id%22%29%0A%0Amove_field%28%22name%22%2C%22@name%22%29%0Amove_field%28%22@name%22%2C%22name%22%29%0A%0Acopy_field%28%22creator%5B%5D.%2A.name%22%2C%22creatorName.%24append%22%29%0Ajoin_field%28%22creatorName%22%2C%22%2C+%22%29%0Aunless+exists%28%22creatorName%22%29%0A++++add_field%28%22creatorName%22%2C%22%22%29%0Aend%0A%0Acopy_field%28%22contributor%5B%5D.%2A.name%22%2C%22contributorName.%24append%22%29%0Ajoin_field%28%22contributorName%22%2C%22%2C+%22%29%0Aunless+exists%28%22contributorName%22%29%0A++++add_field%28%22contributorName%22%2C%22%22%29%0Aend%0A%0Acopy_field%28%22about%5B%5D.%2A.prefLabel.de%22%2C%22aboutLabels.%24append%22%29%0Ajoin_field%28%22aboutLabels%22%2C%22%2C+%22%29%0Aunless+exists%28%22aboutLabels%22%29%0A++++add_field%28%22aboutLabels%22%2C%22%22%29%0Aend%0A%0Amove_field%28%22publisher%5B%5D%22%2C+%22@publisher%22%29%0Ado+list%28path%3A%22@publisher%22%2C%22var%22%3A%22%24i%22%29%0A++++unless+exists%28%22publisher.2%22%29%0A++++++++copy_field%28%22%24i.name%22%2C%22publisher%5B%5D.%24append.name%22%29%0A++++++++copy_field%28%22%24i.id%22%2C%22publisher%5B%5D.%24last.id%22%29%0A++++++++unless+exists%28%22publisher%5B%5D.%24last.id%22%29%0A++++++++++++add_field%28%22publisher%5B%5D.%24last.id%22%2C%22%22%29%0A++++++++end%0A++++end%0Aend%0A%0Aunless+exists+%28%22publisher%5B%5D%22%29%0A++++add_array%28%22publisher%5B%5D%22%29%0A++++add_field%28%22publisher%5B%5D.%24append.name%22%2C%22%22%29%0A++++add_field%28%22publisher%5B%5D.%24last.id%22%2C%22%22%29%0A++++add_field%28%22publisher%5B%5D.%24append.name%22%2C%22%22%29%0A++++add_field%28%22publisher%5B%5D.%24last.id%22%2C%22%22%29%0Aend%0A%0Aunless+exists+%28%22publisher%5B%5D.2%22%29%0A++++add_array%28%22publisher%5B%5D%22%29%0A++++add_field%28%22publisher%5B%5D.%24append.name%22%2C%22%22%29%0A++++add_field%28%22publisher%5B%5D.%24last.id%22%2C%22%22%29%0Aend%0A%0Acopy_field%28%22inLanguage%5B%5D%22%2C%22inLanguage.%24append%22%29%0Ajoin_field%28%22inLanguage%22%2C%22%2C+%22%29%0Aunless+exists%28%22inLanguage%22%29%0A++++add_field%28%22inLanguage%22%2C%22%22%29%0Aend%0A%0Amove_field%28%22mainEntitiyOfPage%5B%5D%22%2C+%22@mainEntitiyOfPage%22%29%0Ado+list%28path%3A%22@mainEntitiyOfPage%22%2C%22var%22%3A%22%24i%22%29%0A++++unless+exists%28%22mainEntitiyOfPage%5B%5D.2%22%29%0A++++++++copy_field%28%22%24i.name%22%2C%22mainEntitiyOfPage%5B%5D.%24append.provider.name%22%29%0A++++++++copy_field%28%22%24i.id%22%2C%22mainEntitiyOfPage%5B%5D.%24last.id%22%29%0A++++end%0Aend%0A%0Aunless+exists+%28%22mainEntitiyOfPage%5B%5D%22%29%0A++++add_array%28%22mainEntitiyOfPage%5B%5D%22%29%0A++++add_field%28%22mainEntitiyOfPage%5B%5D.%24append.provider.name%22%2C%22%22%29%0A++++add_field%28%22mainEntitiyOfPage%5B%5D.%24last.id%22%2C%22%22%29%0A++++add_field%28%22mainEntitiyOfPage%5B%5D.%24append.provider.name%22%2C%22%22%29%0A++++add_field%28%22mainEntitiyOfPage%5B%5D.%24last.id%22%2C%22%22%29%0Aend%0A%0Aunless+exists+%28%22mainEntitiyOfPage%5B%5D.2%22%29%0A++++add_array%28%22mainEntitiyOfPage%5B%5D%22%29%0A++++add_field%28%22mainEntitiyOfPage%5B%5D.%24append.provider.name%22%2C%22%22%29%0A++++add_field%28%22mainEntitiyOfPage%5B%5D.%24last.id%22%2C%22%22%29%0Aend%0A%0Amove_field%28%22dateCreated%22%2C%22@dateCreated%22%29%0Amove_field%28%22@dateCreated%22%2C%22dateCreated%22%29%0Aunless+exists%28%22dateCreated%22%29%0A++++add_field%28%22dateCreated%22%2C%22%22%29%0Aend%0A%0Amove_field%28%22datePublished%22%2C%22@datePublished%22%29%0Amove_field%28%22@datePublished%22%2C%22datePublished%22%29%0Aunless+exists%28%22datePublished%22%29%0A++++add_field%28%22datePublished%22%2C%22%22%29%0Aend%0A%0Aretain%28%22id%22%2C%22name%22%2C+%22datePublished%22%2C%22dateCreated%22%2C%22mainEntitiyOfPage%5B%5D%22%2C%22inLanguage%22%2C%22publisher%5B%5D%22%2C%22aboutLabels%22%2C%22contributorName%22%2C%22creatorName%22%29) If it works it creates a new file for download. If it does not work the webapp shows idefinetly this: 
This workflow sometimes works and sometimes does not
If it works it creates a new file for download. If it does not work the webapp shows idefinetly this: