


{"id":462268,"date":"2026-08-05T14:42:05","date_gmt":"2026-08-05T14:42:05","guid":{"rendered":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/"},"modified":"2026-08-05T14:42:05","modified_gmt":"2026-08-05T14:42:05","slug":"bug-report-in-ansys-forte-24r2-and-25r1","status":"publish","type":"topic","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/","title":{"rendered":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1"},"content":{"rendered":"<p>When a chemical component contains parentheses in its name, there is a bug during CLI import and export.<\/p>\n<p>For example, I have a <code>.ftsim<\/code> project with the components <code>oil(l)<\/code> and <code>oil(vapor)<\/code>. I want to automate part of the setup using the CLI.<\/p>\n<p>My initial approach was to export the data using:<\/p>\n<p><code>forte.sh CLI -project my_project.ftsim -export my_setup.txt<\/code><\/p>\n<p>Then I edited the exported file (for example, to change the pressure and other parameters).<\/p>\n<p>After that, I tried to import the modified file using:<\/p>\n<p><code>forte.sh CLI -project my_project.ftsim -import my_new_setup.txt<\/code><\/p>\n<p>However, the import fails because the file contains the component name <code>oil(l)<\/code>.<\/p>\n<p>The most surprising part is that exporting a file and then importing the exact same file&mdash;without making any changes&mdash;also causes the import to fail.<\/p>\n<p>In other words, the export operation produces a file that cannot be imported back, making the export\/import process non-reversible.<\/p>\n<p>Exception in thread &#8220;main&#8221; com.reactiondesign.core.textio.TokenMgrError: Lexical error at line 481, column 10. &nbsp;Encountered: &#8220;(&#8221; (40), after : &#8220;&#8221;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammarTokenManager.getNextToken(ForteGrammarTokenManager.java:648)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.jj_scan_token(ForteGrammar.java:667)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.jj_3R_7(ForteGrammar.java:521)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.jj_3_4(ForteGrammar.java:384)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.jj_3_3(ForteGrammar.java:391)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.jj_2_3(ForteGrammar.java:234)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:61)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:69)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.section(ForteGrammar.java:69)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.core.textio.ForteGrammar.parse(ForteGrammar.java:38)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.cfd.amg.commands.ImportProjectText.findParameterInTextFile(ImportProjectText.java:311)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.cfd.amg.commands.ImportProjectText.importText(ImportProjectText.java:430)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; at com.reactiondesign.cfd.amg.commands.ImportProjectText.main(ImportProjectText.java:1121)<\/p>\n","protected":false},"template":"","class_list":["post-462268","topic","type-topic","status-publish","hentry","topic-tag-bug-report"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Ansys Learning Forum | Ansys Innovation Space\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Bug report in ANSYS Fort\u00e9 24R2 and 25R1 | Ansys Learning Forum\" \/>\n\t\t<meta property=\"og:description\" content=\"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2026-08-05T14:42:05+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2026-08-05T14:42:05+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Bug report in ANSYS Fort\u00e9 24R2 and 25R1 | Ansys Learning Forum\" \/>\n\t\t<meta name=\"twitter:description\" content=\"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/bug-report-in-ansys-forte-24r2-and-25r1\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"position\":2,\"name\":\"Topics\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/bug-report\\\/#listItem\",\"name\":\"Bug report\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/bug-report\\\/#listItem\",\"position\":3,\"name\":\"Bug report\",\"item\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/bug-report\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/bug-report-in-ansys-forte-24r2-and-25r1\\\/#listItem\",\"name\":\"Bug report in ANSYS Fort\\u00e9 24R2 and 25R1\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/topics\\\/#listItem\",\"name\":\"Topics\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/bug-report-in-ansys-forte-24r2-and-25r1\\\/#listItem\",\"position\":4,\"name\":\"Bug report in ANSYS Fort\\u00e9 24R2 and 25R1\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic-tag\\\/bug-report\\\/#listItem\",\"name\":\"Bug report\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/bug-report-in-ansys-forte-24r2-and-25r1\\\/#webpage\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/bug-report-in-ansys-forte-24r2-and-25r1\\\/\",\"name\":\"Bug report in ANSYS Fort\\u00e9 24R2 and 25R1 | Ansys Learning Forum\",\"description\":\"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/forums\\\/topic\\\/bug-report-in-ansys-forte-24r2-and-25r1\\\/#breadcrumblist\"},\"datePublished\":\"2026-08-05T14:42:05+00:00\",\"dateModified\":\"2026-08-05T14:42:05+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#website\",\"url\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/\",\"name\":\"Ansys Learning Forum\",\"description\":\"Ansys Innovation Space\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/innovationspace.ansys.com\\\/forum\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1 | Ansys Learning Forum","description":"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim","canonical_url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BreadcrumbList","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","position":1,"name":"Home","item":"https:\/\/innovationspace.ansys.com\/forum","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","position":2,"name":"Topics","item":"https:\/\/innovationspace.ansys.com\/forum\/topics\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/bug-report\/#listItem","name":"Bug report"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/bug-report\/#listItem","position":3,"name":"Bug report","item":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/bug-report\/","nextItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/#listItem","name":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1"},"previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/topics\/#listItem","name":"Topics"}},{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/#listItem","position":4,"name":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1","previousItem":{"@type":"ListItem","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/bug-report\/#listItem","name":"Bug report"}}]},{"@type":"Organization","@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization","name":"Ansys Learning Forum","description":"Ansys Innovation Space","url":"https:\/\/innovationspace.ansys.com\/forum\/"},{"@type":"WebPage","@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/#webpage","url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/","name":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1 | Ansys Learning Forum","description":"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#website"},"breadcrumb":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/#breadcrumblist"},"datePublished":"2026-08-05T14:42:05+00:00","dateModified":"2026-08-05T14:42:05+00:00"},{"@type":"WebSite","@id":"https:\/\/innovationspace.ansys.com\/forum\/#website","url":"https:\/\/innovationspace.ansys.com\/forum\/","name":"Ansys Learning Forum","description":"Ansys Innovation Space","inLanguage":"en-US","publisher":{"@id":"https:\/\/innovationspace.ansys.com\/forum\/#organization"}}]},"og:locale":"en_US","og:site_name":"Ansys Learning Forum | Ansys Innovation Space","og:type":"article","og:title":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1 | Ansys Learning Forum","og:description":"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim","og:url":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/","article:published_time":"2026-08-05T14:42:05+00:00","article:modified_time":"2026-08-05T14:42:05+00:00","twitter:card":"summary_large_image","twitter:title":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1 | Ansys Learning Forum","twitter:description":"When a chemical component contains parentheses in its name, there is a bug during CLI import and export. For example, I have a .ftsim project with the components oil(l) and oil(vapor). I want to automate part of the setup using the CLI. My initial approach was to export the data using: forte.sh CLI -project my_project.ftsim"},"aioseo_meta_data":[],"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/topics\/\" title=\"Topics\">Topics<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/bug-report\/\" title=\"Bug report\">Bug report<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBug report in ANSYS Fort\u00e9 24R2 and 25R1\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/innovationspace.ansys.com\/forum"},{"label":"Topics","link":"https:\/\/innovationspace.ansys.com\/forum\/topics\/"},{"label":"Bug report","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic-tag\/bug-report\/"},{"label":"Bug report in ANSYS Fort\u00e9 24R2 and 25R1","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/topic\/bug-report-in-ansys-forte-24r2-and-25r1\/"}],"acf":[],"custom_fields":[{"0":{"_bbp_forum_id":["27792"],"_bbp_topic_id":["462268"],"_bbp_subscription":["716833"],"_bbp_author_ip":[null],"_bbp_last_reply_id":["0"],"_bbp_last_active_id":["462268"],"_bbp_last_active_time":["2026-08-05 14:42:05"],"_bbp_reply_count":["0"],"_bbp_reply_count_hidden":["0"],"_bbp_engagement":["1"],"_bbp_likes_count":["0"],"_btv_view_count":["27"],"application":[null],"emailnotification":[null],"_bbp_topic_status":["unanswered"]},"test":"etienne-tachouzinoutlook-fr"}],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/462268","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/topics\/462268\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=462268"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}