javier.delolmo | 2021-07-28 17:12:09 UTC | #1
Hi, I'm pipeline Archy for deployment between different organizations (DEV and PROD) and I want to replace all the elements of the development flow that start with the word "DEV" with elements that are called exactly the same but instead of starting with " DEV "start with" PROD ", however I use the substitutions functionality in an options.yml file, however when I go to publish the flow it gives me the following error:
error encountered loading yaml from file '/home/admin/WORKFlujoArchy.yaml'. Exception information: can not read an implicit mapping pair; a colon is misse d at line 158, column 45: ... name: {{env}}BBVA_Inbound
substitutions: env: PROD division: PROD
fragment of the flow where the transfer is made to the queue:
-transferToAcd: name: Transfer to ACD targetQueue: lit: name: {{env}}BBVAInbound preTransferAudio: exp: AudioPlaybackOptions(ToAudioBlank(100), true) failureTransferAudio: exp: AudioPlaybackOptions(ToAudioBlank(100), true) priority: lit: 0 preferredAgents: noValue: true languageSkill: noValue: true failureOutputs: errorType: noValue: true errorMessage: noValue: true
How can I do this type of substitution? It is not possible to have the elements with the same names in both organizations because we want to have more than one environment in each organization (for example QA and PROD)
jon.vansteen | 2021-07-28 17:27:51 UTC | #2
Hi @javier.delolmo,
You will need to wrap the {{env}}_BBVA_Inbound in quotes within the YAML like so: "{{env}}_BBVA_Inbound" and this should get it working for you! Let me know if you have any other issues or if this does not work for you!
Thanks, Jon
javier.delolmo | 2021-08-06 16:51:06 UTC | #3
thanks @jon.vansteen, works perfect!
system | 2021-09-05 16:51:09 UTC | #4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 11609