Legacy Dev Forum Posts

 View Only

Sign Up

Data only appears when Flatten output unchecked

  • 1.  Data only appears when Flatten output unchecked

    Posted 06-05-2025 18:41

    husseinco | 2018-12-12 04:07:11 UTC | #1

    Hello and good day All,

    I have a wired issue in the sense when I test my Data Action with the Flatten output checked an empty fields appears and when I unchecked it I can see the data, and when I publish the Action and links it with a script in the IVR I'm unable to show any data in the script.

    Any hints on how to solve this issue would be appreciated

    Regards, Hussein


    Jason_Mathison | 2018-12-12 04:45:12 UTC | #2

    Hi Hussein,

    Can you export your script and post it to this thread so we can see what is going on? Feel free to redact anything sensitive in your action. If that isn't possible then please open a case with customer care to work through your issue.

    --Jason


    husseinco | 2018-12-12 05:11:14 UTC | #3

    Hi @Jason_Mathison

    Here is the script (Please note that I have changed the script extension to JSON for the sake of uploading it to forum)

    <a class="attachment" href="/forum/uploads/db6296/original/2X/f/f8fdffe31191ca4b089ca1f8b5038550edae10c0.json">InboundCall(1).json</a> (53.2 KB)

    and this is my Action <a class="attachment" href="/forum/uploads/db6296/original/2X/f/f28c327bfdec8e135565ce7e27679c5f601cafeb.json">RetrieveCustomerInfoByPhoneNo-2018121280725.custom.json</a> (5.9 KB)

    Please note that this topic is pertaining to this is post https://developer.mypurecloud.com/forum/t/write-input-from-user-to-sql/3683/22?u=husseinco

    in the sense if I unchecked the flatten box then I can see the data otherwise it's empty

    Regards,

    Hussein


    Jason_Mathison | 2018-12-13 20:50:54 UTC | #4

    Hi Husseinco,

    When you said that "an empty fields appears", do the first fields have values but once you get to "feedbacks" all of the fields are empty?

    There is an issue with your action when it comes to the translationMapDefaults. You are setting everything that isn't found to "UNKNOWN". This will cause an error if any of the numeric fields don't have a value. I had to change my translation map to this to get it to work in my testing:

    "translationMapDefaults": { "feedbackambience": "-1", "feedbackcomment": "\"UNKNOWN\"", "feedbackid": "\"UNKNOWN\"", "feedbackfood": "-1", "feedbackservice": "-1", "feedbackcleanliness": "-1", "feedbacktotal": "-1" },

    I will submit a ticket for the UI bug that I see. If fixing the translationMapDefaults issue doesn't fix the scripts problem then you may be best off opening a ticket with customer care so they can capture an example of the problem.

    --Jason


    husseinco | 2018-12-14 10:35:53 UTC | #5

    Jason_Mathison, post:4, topic:4167
    When you said that "an empty fields appears", do the first fields have values but once you get to "feedbacks" all of the fields are empty?

    Exactly the issue lies within the feedbacks, client, stats sections as for the first section it's working fine as you can see below

    Plus I have changed the translationMapDefaults to the one provided above but still the same result.


    Jason_Mathison | 2018-12-14 13:52:28 UTC | #6

    I have submitted a bug for the UI issue where Feedbacks etc do not show result values in the UI. To be clear, I am pretty sure that this is a UI bug so it should not be causing any actual problems for Architect or Scripts.

    I would recommend contacting Customer Care for the scripts problem in order to gather the information needed to troubleshoot the problem.

    --Jason


    husseinco | 2018-12-16 04:52:01 UTC | #7

    Thank you @Jason_Mathison I have already opened a ticket with Customer Care.


    husseinco | 2018-12-25 08:58:52 UTC | #8

    Hi @Jason_Mathison

    have checked the configuration in the Architect and script many times and they are fine, even though when I use the API to retrieve the interaction attributes it become empty as well.


    Jason_Mathison | 2019-01-03 14:48:34 UTC | #9

    One thing I want to verify, are using the output of the data action to set participant data? AFAIK only participant data is stored and available after a flow ends.

    If that isn't the issue, then I would recommend creating a new thread in the architect room and attaching an export of your flow so they can help you sort out why your attributes are not making it out of architect.

    --Jason


    husseinco | 2019-01-03 20:18:57 UTC | #10

    Hi Jason, I managed to solve the issue it was due to the response I'm getting back from the source it was taking so long to fetch the data, but now it's working fine.

    Thank you for your usual support.

    Regards, Hussein


    system | 2019-02-03 20:19:01 UTC | #11

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