I selected HTTP Content Type to CSV and created a simple template. The file generated had the csv extension but with html content. Is it a bug or am I doing something wrong?
Solved! Go to Solution.
Ahโฆ I see the misunderstanding now.
To create a CSV file, the template file has to be strictly a text file with no extension (CSV Test_BodyTemplate_20190930_185916) which was generated when I used Create template button. I was using the Google doc as a template file which leads to generating the CSV file with html content.
Following
@Phil Any thoughts?
Hi Steve,
Can you provide the exact steps to reproduce the problem?
I tried a simple case and it seemed to work.
I assume I am not doing exactly what you are doing.
Sorry for the late reply.
File name generated was 2019.38.30ST20190926_195127_228.csv
Workflow Definition
Hi Steven,
I guess I am going to need more information to diagnose the problem.
Can you provide:
Hi Phi,
I can replicate it with the simpler app setup.
Hi Steven,
I can see that you have a body template in HTML format.
Can you tell me the steps that got you into that state?
Once in that state, if I click โCreateโ , the system creates a CSV text file template as it should.
Phil
Only thing I did was, triggering update on a row of the table. That, in turn, triggerred the workflow and generated the file.
I narrowed down the cause of the bug.
If the template contains only the current-table columns, the generated file is correct.
โIDโ,โNameโ,โRefreshโ
โ<<[ID]>>โ,"<<[Name]>>","<<[Refresh]>>"
However, if any loop to read rows from a related table, the workflow will no longer generate a valid csv file.
โIDโ,โNameโ,โRefreshโ
โ<<[ID]>>โ,"<<[Name]>>","<<[Refresh]>>"
<<Start:[Related Items]>>"<<[Category]>>","<<[ID]>>","<<[Count]>>"<<End>>
Hi Steven,
I am sorry, my question was not clear.
I understand why you are getting HTML output from the template. That is occurring because the generated template is HTML.
I am trying to determine the exact steps you followed to create the template. It appears that we are creating the wrong type of template in some circumstance. I am not sure how that happened. That is what I am trying to clarify with you.
If you were to click the Create" button now, the system would create a new text file template that would generate a CSV file.
Thanks again for your help.
Ahโฆ I see the misunderstanding now.
To create a CSV file, the template file has to be strictly a text file with no extension (CSV Test_BodyTemplate_20190930_185916) which was generated when I used Create template button. I was using the Google doc as a template file which leads to generating the CSV file with html content.
Exactly Steven.
User | Count |
---|---|
42 | |
29 | |
28 | |
14 | |
14 |