WaqarM | 2023-06-14 21:46:59 UTC | #1
Hi there!
I am using Archy to create a flow from yaml. I have successfully used this process with a different yaml file.
I am getting this error when working with the current yaml file:
2023-06-14T16:57:26.447Z: [INFO] Command: 'publish'
2023-06-14T16:57:26.449Z: [ERROR] unable to find 'Common.IdentifiedDsID' on the action 'callCommonModule' named 'Call Common Module GetDSProfile'. YAML:
I exported a working flow as yaml to use as the starting point for creating the new flow, and then modified fields as needed.
Here is the relevant portion of the yaml file:
actions:
name: Update Data for Debug statements:
variable: Flow.logTaskName value: lit: 'TASK: Get DS Profile'
name: Call Common Module GetDSProfile commonModule: EMEAComModGetDSProfileNXT: verlatestPublished: inputs: Common.IdentifiedDsID: exp: Flow.IdentifiedDsID Common.CountryCode: exp: Flow.CountryCode Common.CLIDOutcome: noValue: true outputs: Common.IdentifiedDsID: noValue: true
Here is the relevant part of the debug log file:
2023-06-14T16:57:25.193Z: [INFO] - async processing for setCommonModuleFlowByIdAsync complete. Callback function execution complete.[36m -- [TrackingID:25, Name:'Call Common Module DSId', Type:'ArchActionCallCommonModule'][39m
2023-06-14T16:57:25.193Z: [INFO] - async processing for getFlowInfoByFlowNameAsync complete. Callback function returned promise successfully resolved.[36m -- [ArchFactoryFlows][39m 2023-06-14T16:57:25.546Z: [INFO] - [35mresponse received - statusCode:202, statusMessage:Accepted, correlationId:86d9c795-64e6-4be1-9f2b-cf1e74d0258a[39m[36m -- [POST::https://api.mypurecloud.de/api/v2/flows/actions/validate?flow=xxxx&flowType=commonmodule][39m 2023-06-14T16:57:25.705Z: [INFO] - calling url[36m -- [GET::https://api.mypurecloud.de/api/v2/flows/xxxx/validate/22010f4f-e593-4c3e-8086-16a57c5299e5][39m 2023-06-14T16:57:26.076Z: [INFO] - [35mresponse received - statusCode:200, statusMessage:OK, correlationId:b8b86995-2d15-44cb-bb66-d9963ffa9602[39m[36m -- [GET::https://api.mypurecloud.de/api/v2/flows/xxxx/validate/22010f4f-e593-4c3e-8086-16a57c5299e5][39m 2023-06-14T16:57:26.348Z: [INFO] - async processing for setCommonModuleFlowByIdAsync complete. Calling callback function.[36m -- [TrackingID:35, Name:'Call Common Module GetDSProfile', Type:'ArchActionCallCommonModule'][39m 2023-06-14T16:57:26.349Z: [DEBUG] setting property name for processing - 'inputs' 2023-06-14T16:57:26.350Z: [DEBUG] pushing path str - 'inputs' 2023-06-14T16:57:26.351Z: [DEBUG] result processing path Path: '/inboundCall/tasks/task[Get DS Profile216]/actions/callCommonModule[_archycallCommonModule15_]/commonModule/EMEAComModGetDSProfileNXT/ver_latestPublished/inputs' Property name: 'inputs' 2023-06-14T16:57:26.352Z: [DEBUG] processing yaml setting of 'Common.IdentifiedDsID'
2023-06-14T16:57:26.353Z: [DEBUG] setting property name for processing - 'Common.IdentifiedDsID' 2023-06-14T16:57:26.354Z: [ERROR] setting the Archy exit code to 100 2023-06-14T16:57:26.359Z: [DEBUG] popping property name for processing - 'Common.IdentifiedDsID'
2023-06-14T16:57:26.360Z: [DEBUG] processing yaml setting of 'Common.CountryCode'
2023-06-14T16:57:26.362Z: [DEBUG] setting property name for processing - 'Common.CountryCode' 2023-06-14T16:57:26.363Z: [DEBUG] popping property name for processing - 'Common.CountryCode'
I notice that the preceding call for a common module returns a statusCode = 202. I don't think that is causing this issue but mentioning just in case.
I have verified that the common module has this input and that it is spelled correctly.
Any suggestions for what to try, or what information you would need to see?
Thanks!
system | 2023-07-15 21:46:16 UTC | #2
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20449