CX as Code: Error: Flow publish failed (Bot Flow)

Good Morning,

I'm getting erros when publishing a Bot Flow using GC terraform provider "genesyscloud_flow"... and doesn´t know which is the problem. I get this error from time to time, in occasions just by running again terraform commands it gets fixed, but now I can´t avoid the error.

│ Error: Flow publish failed. JobID: 1a2c1d0c-0cb8-43d1-a967-780c3440cd6d, tracing messages: [map[dateTime:2022-09-26T11:02:52.967Z text:found both 'ensureAudioInPrompts' and 'promptMediaToValidate' properties defined for the 'prompt settings'. The 'ensureAudioInPrompts' property is now deprecated, so using configuration from 'promptMediaToValidate'. type:Warning] map[dateTime:2022-09-26T11:03:00.580Z text:createAsync - failed to create. -- [Name:'Summit-IntentModuleIntermediate-Home', Type:'ArchFlowBot'] type:Error] map[dateTime:2022-09-26T11:03:00.580Z text:saveAsync - creation failed. -- [Name:'Summit-IntentModuleIntermediate-Home', Type:'ArchFlowBot'] type:Error] map[dateTime:2022-09-26T11:03:00.580Z text:publishAsync - could not save the flow named 'Summit-IntentModuleIntermediate-Home' (id: '__script_flow__25f36ec2-8d90-4b00-a21f-58cba5597dc3')
│ - ERROR! saveAsync - creation failed. -- [Name:'Summit-IntentModuleIntermediate-Home', Type:'ArchFlowBot'] -- [Name:'Summit-IntentModuleIntermediate-Home', Type:'ArchFlowBot'] type:Error] map[dateTime:2022-09-26T11:03:00.655Z text:find 'flow name' by value of 'Summit-IntentModuleIntermediate-Home' - no matches for 'Summit-IntentModuleIntermediate-Home' -- [ArchNetworkValueRetrieval] type:Error] map[dateTime:2022-09-26T11:03:00.655Z text:promise unhandled exception caught.  Error: no matches -- [ArchAsyncTracker] type:Error] map[dateTime:2022-09-26T11:03:00.656Z text:setting the Archy exit code to 99 type:Error] map[dateTime:2022-09-26T11:03:00.656Z text:session startup initialization for startWithAuthToken complete.  Caught unhandled exception waiting for callback function returned promise to resolve. -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.com', Region:'us-east-1', ArchSessionId:'', OrgName:'', OrgId:''] type:Error] map[dateTime:2022-09-26T11:03:00.657Z text:ArchSession.startWithAuthToken - Caught unhandled exception during callback function execution.  Ending session.  Exception info: - ERROR! publishAsync - could not save the flow named 'Summit-IntentModuleIntermediate-Home' (id: '__script_flow__25f36ec2-8d90-4b00-a21f-58cba5597dc3')
│ - ERROR! saveAsync - creation failed. -- [Name:'Summit-IntentModuleIntermediate-Home', Type:'ArchFlowBot'] -- [Name:'Summit-IntentModuleIntermediate-Home', Type:'ArchFlowBot'] -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.com', Region:'us-east-1', ArchSessionId:'', OrgName:'', OrgId:''] type:Error] map[dateTime:2022-09-26T11:03:00.657Z text:ending the Session.  Setting the exit code to 99. -- [ArchSession, Environment:'prod', Host:'apps.mypurecloud.com', Region:'us-east-1', ArchSessionId:'', OrgName:'', OrgId:''] type:Error] map[dateTime:2022-09-26T11:03:00.658Z text:An error occurred. type:Error] map[dateTime:2022-09-26T11:03:00.659Z text:failed to publish the flow named 'Summit-IntentModuleIntermediate-Home'. type:Error] map[dateTime:2022-09-26T11:03:00.659Z text:Architect Scripting session ended in error ( code: 99 ) type:Error] map[dateTime:2022-09-26T11:03:00.659Z text:Error(s) and warning(s) encountered. type:Error] map[dateTime:2022-09-26T11:03:00.659Z text:Architect Scripting errors and warnings will be listed above. type:Warning] map[dateTime:2022-09-26T11:03:00.709Z text:exit code: 99 type:Error]]
│
│   with genesyscloud_flow.IntentClientModuleIntermediate-v1,
│   on resources_flow.tf line 53, in resource "genesyscloud_flow" "IntentClientModuleIntermediate-v1":
│   53: resource "genesyscloud_flow" "IntentClientModuleIntermediate-v1" {

If anyone could help me I would appreciate. Thanks.

Miguel.

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