Alok_Tibrewal | 2017-11-13 05:18:20 UTC | #1
Hi,
I have taken following steps.
- Added Web service Data Action integration. My service don't have specific authentication so I simply added it.
- Created Action, defined contracts, define configuration and then Test it there in Data action. It executed properly, data action called my service and I am able to view result at my service end.
- Went to Architect and used that data action in the flow.
4: Now when ever we call it always goes straight to Failure. Not able to understand what is going worng and how to debug it.
Any assistance in this will help.
Regards Alok
Jason_Mathison | 2017-11-13 14:21:52 UTC | #2
Please open up a support ticket so that someone can look at this issue in depth.
anon47876146 | 2017-11-13 14:25:03 UTC | #3
In your ticket, it would be best to include the orgId and if possible the conversationId you were testing with. If the conversationId is unknown, a rough time estimate would be very helpful!
Alok_Tibrewal | 2017-11-14 03:59:24 UTC | #4
Hi,
I represent Everlon Corporation.
OrgID: 4a0c886b-a45f-46ca-a2b8-a4bad7cb8bb4
I am unsure how to open support ticket.
Inside Inbound Call flow there is a script named SMS Web Service Test. It is using call data action named SMS Gateway Test.
This data action is executing properly when you call it. You can give any value to test it. On wrong values it will return
{ "code": "NORECORD", "message": "Invalid Survey Info. No Record Found.", "status": "FAILED" }
But when I am executing the same via Inbound call flow it is straight going to failure.
Now please let me know how to debug the issues.
Is there any logs gets created which we can access to see what is happening on the call flow?? If so how I can access those logs.
Regards Alok
tim.smith | 2017-11-14 15:18:35 UTC | #5
Alok_Tibrewal, post:4, topic:2090
I am unsure how to open support ticket.
Please see the Resource Center for details on opening a ticket with PureCloud Support: https://help.mypurecloud.com/articles/contact-purecloud-care/
Jason_Mathison | 2017-11-14 16:16:20 UTC | #6
The primary tool for debugging issues is test mode in the administrative UI. If I understand you correctly, your data action is working in test mode, but having failures when you use the same action inside of a script.
Does your action immediately return failure if you hard code a working input value to your action inside of your script?
Alok_Tibrewal | 2017-11-14 17:43:55 UTC | #7
Yes,
My action immediately go to failure once i hard code the action in the script.
Yes, action runs fine in test mode in the UI. It fails in scripts.
regards
Alok_Tibrewal | 2017-11-14 17:56:23 UTC | #8
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/98d012f066547e00a9efaa49751479ae184d0744.PNG" width="690" height="451"><img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/b8cfc781615217d651ad91aa0fb9c35cfd93741b.PNG" width="690" height="326">
I have added two image. One for action which shows execute properly.
Other in architect which straight goes to failure.
Jason_Mathison | 2017-11-14 18:10:23 UTC | #9
Scripts and Architect use the flattened output of the action. If you check the "Flatten Output" checkbox in test mode does it still succeed?
Alok_Tibrewal | 2017-11-14 18:15:04 UTC | #10
Yes, it works,
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/b5b7d6987a4243a80fed4c4b8807e219a5bbbf0f.PNG" width="392" height="465">
regards
Jason_Mathison | 2017-11-14 19:06:24 UTC | #11
In our logs we can see your successful tests of your action, but your attempt to call a data action from architect is not reaching the Data Action service. This implies that the issue is happening in the processing of your flow. When you run through your flow are you hearing the audio sequence that you set in the failure path? I'm asking because if a flow has a major problem it will go through "Event Handling" -> "Error Event".
Alok_Tibrewal | 2017-11-15 04:59:49 UTC | #12
Yes,
I am hearing audio flow.
What all I tested:
- On failure I put a simple message and it played the simple message and disconnected.
- On failure I put Call.Ani and it played my Ani.
- On failure I put Task.csMessage it says that error occured. Tasks.csMessage is response parameter variable.
So I think the way I am setting this up it is not executing at all. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/1fb0690c6f7fcd32597e2aa116d566e747e896e6.PNG" width="376" height="337">
I hear initial greeting and failure message. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/ed1efa279010256a194f4ecc470593e3012eab22.PNG" width="608" height="499">
Regarding flow: It is very simple flow, just initial greeting and straight call the data action and then play success, failure or timeout message. <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/bc7fa41290d35cd176532e6a1e8342494de10eac.PNG" width="690" height="476">
Regards Alok
Jason_Mathison | 2017-11-15 13:55:10 UTC | #13
call.ani would typically return something like tel:+13172222222 or sip:+13172222222
Have you tested your endpoint with values like that?
Jason_Mathison | 2017-11-15 15:20:46 UTC | #14
One other thing that I would be curious to see is your input contract.
Jason_Mathison | 2017-11-16 15:28:48 UTC | #15
It looks like as of this morning you are now able to run custom actions from an architect flow. Is everything working for you now? If so, what did you change to get it to work?
Alok_Tibrewal | 2017-11-17 04:19:33 UTC | #16
I have no idea.
I started again from scratch. I created another action at my web service. I created a new action at your end. This time I took just one parameter input and one parameter output. Tested it and then tested in work flow and it worked. Then I made another dummy function with two input and one output, tested it and it worked.
My original is still not working and strange thing is that all my functions are pointing to same service I created and all are done using same principal, it just had 5 input parameter and 3 output parameter. On test it is working but on flow it is still going to failure.
I will definately let you know if I found the issue it is happening for, but in the mean time I will re-work on my logics with lesser number of input and output parameters.
Regards Alok
Alok_Tibrewal | 2017-11-21 15:00:30 UTC | #17
I found the issue.
I used ANI as number in input contract. While testing action I used phone number only.
But in architect they give ANI value as "tel: Number" and it is not actually a number but string.
It is causing action to fail to execute immediately as Call.Ani is not getting parsed properly.
I hope they provide some error message here so that we know parsing number failed for this variable in input contract to help we developer to find issue fast and fix it. :innocent:
Regards Alok
Jason_Mathison | 2017-12-21 15:28:11 UTC | #18
We have verified that putting in a string (Call.ANI) into an input that is expecting a number will result in the action taking the action's failure path prior to making the REST call.
The architect team has been putting in quite a bit of work to improve our ability to diagnose architect flow errors. At this point the information is only available internally. If you run into another issue like this contact support, as they should be able to get more detailed description of what went wrong.
system | 2018-01-21 15:28:11 UTC | #19
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: 2090