Flows deployment failure through AWS CodePipeline

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[archy_setParticipantData_1]'
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

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

Hi Jon,

Thanks for the quick response.

I have shared the yaml files with you for review.

Regards,
Manju

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 "$client_id" --clientSecret "$client_secret" --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[ archy_setParticipantData_1]** '
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


@ManjuR,

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

Thanks,
Jon

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

Thanks,
Jon

we are using Archy 2.28.0 version

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

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

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.