Issue adding a header to a csv (generated using CsvWriter) in which each row summarises key information about a given trial #2211
Replies: 3 comments 1 reply
-
|
Please attach your workflow. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Hi Bruno, I can't share my full workflow as it is closely adapted from someone else's code who is not ready to make it public. However, would this code snippet be enough to go on? Please let me know if I can clarify anything based on this. |
Beta Was this translation helpful? Give feedback.
-
|
I would need to be able to see how you are instantiating the CsvWriter from the upper level of the workflow. By you error description it sounds like you are restarting the writer on every trial (using SelectMany perhaps?). If this is the case, you need to make sure you have a different name each time you open the file or that you set it to override or append mode. If this is not the behavior you want, and you want to save all rows to the same file, consider moving the CsvWriter outside the SelectMany (or whatever higher order operator you are using). Hope it helps! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have written an expression transform which successfully maps each behaviour subject to the appropriate name, and when I use the following parameters:


this gives the following error message:
I can avoid this error message by setting append to 'True' and Overwrite to 'False', however now every trial creates one header row and one row with data.:

How can I ammend my workflow such that I can create a table with 1 header row and 1 row of data per trial without any errors?
Beta Was this translation helpful? Give feedback.
All reactions