Legacy Dev Forum Posts

 View Only

Sign Up

Participant Model: UnrecognizedPropertyException on wrapupExpected

  • 1.  Participant Model: UnrecognizedPropertyException on wrapupExpected

    Posted 06-05-2025 18:10

    skansakar | 2016-08-09 15:01:24 UTC | #1

    I am getting a following exception when trying to map the notification message for conversation ("topicName":"v2.users.520fcd40-e7e3-460c-9101-b138a10f4d07.conversations")

    Based on the model defined @ https://developer.mypurecloud.com/api/rest/client-libraries/java/latest/Participant.html, notification message should not have 'wrapupExpected' field for Participant but it is gettting returned.

    Is this a config setting which can be switched off for our Organisation?

    15:30:16,588 ERROR [stderr] (Grizzly(1)) com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "wrapupExpected" (class com.mypurecloud.sdk.model.Participant), not marked as ignorable (32 known properties: "wrapupTimeoutMs", "userId", "endTime", "name", "queueId", "participantType", "callbacks", "startTime", "externalContactId", "calls", "attributes", "videos", "locale", "id", "ani", "purpose", "userUri", "consultParticipantId", "wrapupRequired", "wrapup", "wrapupPrompt", "socialExpressions", "address", "monitoredParticipantId", "connectedTime", "evaluations", "groupId", "queueName", "wrapupSkipped", "emails", "chats", "dnis"])


    tim.smith | 2016-08-09 14:54:59 UTC | #2

    The notification messages are not necessarily the same schema as the API resources; they are defined separately. You can retrieve the schema for notifications from GET /api/v2/notifications/availabletopics or view them on the Available Topics page.


    skansakar | 2016-08-09 15:15:36 UTC | #3

    quote="tim.smith, post:2, topic:270, full:true"] You can retrieve the schema for notifications from GET /api/v2/notifications/availabletopics or view them on the [Available Topics page. [/quote]

    GET /api/v2/notifications/availabletopics : only gives me a list of topic rather than a schema?

    Yes, I can see teh schema on the Available Topic page but is there any model defined for these schemas and available to use on SDK?


    tim.smith | 2016-08-09 15:23:51 UTC | #4

    Use the expand parameter:

    <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/85774e005f5e73ec9eb2eb2617fafef5906b2f9e.png" width="690" height="297">


    skansakar | 2016-08-10 11:32:10 UTC | #5

    Ok. So I got the schema and created POJOs.

    The schema definition has the 'connectedTime' as type: integer and "format":"utc-millisec" but the converter is trying to parse it from String? Should I not be getting a Integer back? Am I missing something?

    11:40:51,862 ERROR [stderr] (Grizzly(1)) com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of java.lang.Integer from String value ("2016-08-10T10:39:58+0000"): not a valid Integer value

    11:40:51,863 ERROR [stderr] (Grizzly(1)) at [Source: {"topicName":"v2.users.520fcd40-e7e3-460c-9101-b138a10f4d07.conversations","version":"2","eventBody":{"id":"5c51a927-0dcc-4cdb-89d5-249853c1dd8e","participants":[{"id":"122337c6-de14-4b62-863e-585bbf46dd98","connectedTime":"2016-08-10T10:39:58+0000","name":"United Kingdom",


    tim.smith | 2016-08-10 18:13:40 UTC | #6

    It appears that the dates are ISO-8601 strings, as is standard across the API. I have created API-1831 to have the schema definition corrected.


    skansakar | 2016-08-12 12:50:26 UTC | #7

    @tim.smith Do you know when this is likely to be fixed?


    tim.smith | 2016-08-12 14:58:41 UTC | #8

    It's been submitted to the dev team, but they haven't reviewed it yet. Since you're generating the classes yourself, you can just modify the datatypes to be what you need until this is fixed.


    system | 2017-08-28 19:26:16 UTC | #9


    This post was migrated from the old Developer Forum.

    ref: 270