# The ".fcsv" file generated by the cli cannot be load by Slicer

**URL:** <https://discourse.slicer.org/t/the-fcsv-file-generated-by-the-cli-cannot-be-load-by-slicer/25288>\
**Category:** Feature requests\
**Created:** [September 16, 2022, 4:28am UTC](https://discourse.slicer.org/t/the-fcsv-file-generated-by-the-cli-cannot-be-load-by-slicer/25288 "2022-09-16T04:28:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![wpgao](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Post date:** [September 16, 2022, 4:28am UTC](https://discourse.slicer.org/t/the-fcsv-file-generated-by-the-cli-cannot-be-load-by-slicer/25288/1 "2022-09-16T04:28:28Z")

</div>

I had developed an CLI, which finally outputs a point list into a fcsv file. The xml of CLI is written like “\<pointfile fileExtensions=”.fcsv" coordinateSystem=“lps”\>\<name\>node\</name\>\<label\>points\</label\>\<longflag\>file\</longflag\>\<channel\>output\</channel\>\</pointfile\>"

However, Slicer cannot load it automatically and report following errors:  
"vtkMRMLMarkupsJsonStorageNode::ReadDataInternal:Error parsing the file’/tmp/Slicer-deep/HJEFE\_vtkMRMLMarkupsFiducialNodeB.fcsv

vtkMRMLStorageNode::ReadData:Failed to read node from file name '/tmp/Slicer-deep/HJEFE\_vtkMRMLMarkupsFiducialNodeB.fcsv"

Any suggestion is welcome. Thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 16, 2022, 5:08am UTC](https://discourse.slicer.org/t/the-fcsv-file-generated-by-the-cli-cannot-be-load-by-slicer/25288/2 "2022-09-16T05:08:10Z")

</div>

See an example of a CLI module producing markup file as output [here](https://github.com/Slicer/Slicer/blob/20830465655c3f07e40bf569b619ac14ae448f02/Modules/CLI/ExecutionModelTour/ExecutionModelTour.cxx#L146-L154). I would recommend to use .mrk.json format instead of the legacy .fcsv file, as the json file format is much more robust and flexible.

---

<div class="post-metadata">

**Author:** ![wpgao](https://avatars.discourse-cdn.com/v4/letter/w/8e8cbc/32.png) [@wpgao](https://discourse.slicer.org/u/wpgao)\
**Post date:** [September 16, 2022, 2:55pm UTC](https://discourse.slicer.org/t/the-fcsv-file-generated-by-the-cli-cannot-be-load-by-slicer/25288/3 "2022-09-16T14:55:45Z")

</div>

It works! Many thanks!

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [March 21, 2023, 2:15am UTC](https://discourse.slicer.org/t/the-fcsv-file-generated-by-the-cli-cannot-be-load-by-slicer/25288/4 "2023-03-21T02:15:27Z")

</div>


