Legacy Dev Forum Posts

 View Only

Sign Up

Flows deployment failure through AWS CodePipeline

  • 1.  Flows deployment failure through AWS CodePipeline

    Posted 06-05-2025 19:35

    ManjuR | 2024-06-17 15:26:38 UTC | #1

    Hi All,

    We are deploying Inbound and InQueue call flows through Archy tool via AWS CodePipeline. Few of the call flows are getting deployed successfully and few are getting failed with the following error.

    setting the Archy exit code to 100 4058 - ERROR! session startup initialization for startWithClientIdAndSecret complete. Caught unhandled exception waiting for callback function returned promise to resolve. -- [ArchSession, Environment:'prod', Host:'apps.*', Region:'ca-central-1', ArchSessionId:'HyDU**', OrgName:'**', OrgId:'*****']* 4059 - ERROR! ArchSession.startWithClientIdAndSecret - Caught unhandled exception during callback function execution. Ending session. Exception info: expected a string but got a boolean value for: 'true' 4060 Path: '/inqueueCall/startUpTaskActions/actions/evaluateScheduleGroup[?]/closed/actions/setParticipantData[_archysetParticipantData1_]' 4061 Property name: 'name'. -- [ArchSession, Environment:'prod', Host:'apps.*', Region:'ca-central-1', ArchSessionId:'HyDU**', OrgName:'**', OrgId:'****']* 4062 - ERROR! ending the Session. Setting the exit code to 99. -- [ArchSession, Environment:'prod', Host:'apps.*', Region:'ca-central-1', ArchSessionId:'HyDU**', OrgName:'**', OrgId:'****']* 4063 An error occurred. 4064 4065

    We are able to deploy the failed call flows through Archy command line successfully, but the same flow is getting failed via AWS CodePipeline deployment.

    Any help will be highly appreciated. Thanks in advance !!!

    Regards, Manju


    jon.vansteen | 2024-06-17 18:22:33 UTC | #2

    Hi @ManjuR,

    Thanks for reaching out. Could you send a snippet of your YAML that the processing is failing on? It appears to be having an issue here: '/inqueueCall/startUpTaskActions/actions/evaluateScheduleGroup[?]/closed/actions/setParticipantData[archy_setParticipantData_1]' with that set participant data action.

    Thanks, Jon


    ManjuR | 2024-06-17 19:36:42 UTC | #3

    Hi Jon,

    Thanks for the quick response.

    I have shared the yaml files with you for review.

    Regards, Manju


    ManjuR | 2024-06-18 02:26:04 UTC | #4

    If we are exporting Inqueue flow from Architect -> In-Queue Call Flow -> Export -> Export as .yaml YAML file: outputs: closed: actions:

                  • setParticipantData:

    name: CallTransferToMenu attributes:

                        • attribute:

    name: lit: InqClosedTrans value: lit: Yes …… …… ……

    holiday: actions:

                  • setParticipantData:

    name: CallTransferToMenu attributes:

                        • attribute:

    name: lit: InqHolidayTrans value: lit: Yes

    We are exporting the Inqueue flow from AWS CodeCommit using the following command : ./archy export --flowName "$name" --flowType "$type" --exportType yaml --outputDir ~/infosys/ --location "$location" --clientId "$clientid" --clientSecret "$clientsecret" --force

    YAML file: outputs: closed: actions:

                  • setParticipantData:

    name: CallTransferToMenu attributes:

                        • attribute:

    name: lit: InqClosedTrans value: lit: true …… …… …… holiday: actions:

                  • setParticipantData:

    name: CallTransferToMenu attributes:

                        • attribute:

    name: lit: InqHolidayTrans value: lit: true

    The setParticipant Data value is getting changed from “Yes” to “true” and when we are deploying this InQueue call flow through Archy tool via AWS CodePipeline, we are getting the following exception:

    4058 - *ERROR! session startup initialization for startWithClientIdAndSecret complete. Caught unhandled exception waiting for callback function returned promise to resolve.* -- [ArchSession, Environment:'prod', Host:'apps. ', Region:'ca-central-1', ArchSessionId:'HyDU*', OrgName:'', OrgId:'']

    4059 - *ERROR! ArchSession.startWithClientIdAndSecret -* *Caught unhandled exception during callback function execution. Ending session. Exception info: expected a string but got a boolean value for: 'true'*

    4060 Path: '*/inqueueCall/startUpTaskActions/actions/evaluateScheduleGroup[?]/closed/actions/setParticipantData[* *archysetParticipantData1]* ' 4061 Property name: 'name'. -- [ArchSession, Environment:'prod', Host:'apps.', Region:'ca-central-1', ArchSessionId:'HyDU*', OrgName:'', OrgId:'']* 4062 - *ERROR! ending the Session. Setting the exit code to 99.* -- [ArchSession, Environment:'prod', Host:'apps.', Region:'ca-central-1', ArchSessionId:'HyDU*', OrgName:'', OrgId:'']* 4063 *An error occurred*.

    Enclosing the YAML snippet for reference

    ![InqueueSnippet

    690x313](upload://glEtZM40iPMhpk3GwPxjo0cKoqO.png)

    ![YAMLExportIssue

    690x304](upload://f6VrbNpIdmaIadPl1aUr5SInny8.jpeg)


    jon.vansteen | 2024-06-18 12:15:09 UTC | #5

    @ManjuR,

    Thanks for providing the YAML. I will check this out today and get back to you when I have more information.

    Thanks, Jon


    jon.vansteen | 2024-06-18 13:24:46 UTC | #6

    @ManjuR what version of Archy are you using in your AWS CodePipeline?

    Thanks, Jon


    ManjuR | 2024-06-18 13:43:12 UTC | #7

    we are using Archy 2.28.0 version


    jon.vansteen | 2024-06-18 16:41:33 UTC | #8

    Hi @ManjuR,

    Is there anything happening after the yaml file is created and before attempting to publish the flow? Also, could you try exporting the flow via Archy not in AWS CodePipeline?

    I created a flow with a similar set participant data action where the value was set to Yes and am seeing that in the YAML when exporting via Archy.

    Thanks, Jon


    ManjuR | 2024-06-18 19:40:41 UTC | #9

    Hi Jon,

    *Is there anything happening after the yaml file is created and before attempting to publish the flow? Also, could you try exporting the flow via Archy not in AWS CodePipeline?*

    This is the execution sequence CodePipeline -> Stage 1 AWS CodeBuild -> this will export YAML files from Source Genesys Cloud to AWS S3 bucket Stage 2 AWS Lambda -> This Lambda function will move YAML files from AWS S3 to AWS CodeCommit

    Our Observations: In Stage 1, when YAML files are exported from Genesys Cloud to AWS S3 (In setParticipantData, string value "Yes" is passed as is)

    In Stage 2, *when YAML files are moved from AWS S3 to CodeCommit, the string value in setParticipantData is getting updated to boolean ("true")*

    In Stage 3, when we try to deploy this YAML files from CodeCommit to Target Genesys Cloud, it's getting failed

    We are facing issue in Stage 2, when YAML files are moved from AWS S3 to AWS CodeCommit

    Note: We exported the flow from Archy tool, it worked for us


    system | 2024-07-18 18:43:21 UTC | #10

    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: 26810