Hi,
I have found a solution for here:
Powershell 7: using ampersand (&) in string literals - Stack Overflow
Everywhere you look, you see ` (backtick), but since it is in an argument for another shell, Some other things apply. Those are stated in the Stack Overflow link.
It works when doing '"blabla&yesyes"', so single quote ' and then double quote ".
Now to look into the powershell script, to make this happen.
Thanks a lot for responding to me.
For me, this is solved.
Kind regards,
Addie
------------------------------
A.D. van den Heuvel
Engineer
------------------------------
Original Message:
Sent: 06-19-2025 04:29
From: Stephen Collins
Subject: Export and Publish not working when flow or filename has &
Thanks for trying that, unfortunately, I am debugging this issue on a mac so theres some differences here but, I can reproduce the export issue while using an ampersand in the flow name. I was able to solve it by escaping with backslash. like so stephen\&test. Seems that does not work on windows.
If you haven't already, can you try using the power shell escape char the backtick `.
I can see from my debugging, on the mac at least, that if the ampersand is not escaped then the full value of the flow name never even reaches archy, it's not in the node command line arguments global.process.argv.
https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_quoting_rules?view=powershell-7.5
Let me know how it works out
------------------------------
Stephen Collins
Software Engineer
Original Message:
Sent: 06-18-2025 13:07
From: A.D. van den Heuvel
Subject: Export and Publish not working when flow or filename has &
Hi Stephen,
Yes, i tried \ and ' ' and " ", and every combination i know of. I also asked AI for some examples to escape the &. But nothing worked.
I really think the problem is with the Archy code, seeing a & in the name of the flow. When exporting trying to save it as blabla&yesyes.yaml. Or trying to read a yaml file with the & in the name.
Because if i remove the & from the name when publishing, there is no issue. Even though within the yaml, there is an & in the flow name.
But, maybe, someone else can try publishing a yaml file with an & in the name, using powershell. Maybe i overlooked something.
------------------------------
A.D. van den Heuvel
Engineer
Original Message:
Sent: 06-18-2025 11:25
From: Stephen Collins
Subject: Export and Publish not working when flow or filename has &
Hi
Can you try escaping the ampersand in the --flowName parameter like so, blabla\&yesyes.
Kind Regards,
Stephen
------------------------------
Stephen Collins
Software Engineer
Original Message:
Sent: 06-13-2025 07:50
From: A.D. van den Heuvel
Subject: Export and Publish not working when flow or filename has &
Hi,
Maybe somebody knows an answer. I have possibly a bug.
I use powershell to run archy. When exporting a flow with an & in the name, archy gives an error. For instance:
Flow name is: 'blabla&yesyes' (i tested with ' or " or with nothing, the error stays)
The error is: the flow names 'blabla' of type inboundcall (does not matter what kind it is) does not exist
It is removing everything if a & is seen.
When exporting to yaml from the genesys architect website, there is no issue with saving.
But if i then try to publish the flow with the & in the name, the same thing happens.
I think archy has a bug "internally".
Kind regards,
Addie van den Heuvel
#Archy
------------------------------
A.D. van den Heuvel
Engineer
------------------------------