For a deeper look into our World Check One API, look into:

Overview |  Quickstart |  Documentation |  Downloads

question

Upvotes
Accepted
1 0 0 1

secondaryFields[1].dateTimeValue' has an invalid value

API Used: World check one API and World check one API v2.44(checked with both)

Language: java

Environment : windows

Response from API : INFO: [{"error":"INVALID_MESSAGE_FIELD_FORMAT","cause":"Message field '.secondaryFields[1].dateTimeValue' has an invalid value."}]

API accessed : cases/screeningRequest

GSON and ObjectMapper used for serialization
Error : Cannot deserialize instance of ScreeningStatusRequest when requesting.
ScreeningStatusResponse same issue occuring when dateTimeValue removed from request.


ScreeningStatusRequest and ScreeningStatusResponse are generated from io.swagger.codegen.v3 via maven.

Kindly help resolving deserialization issue or at least help with an alternate way.

Thank you



world-checkdatedeserialize
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@waqar.khan

Hi,

Thank you for your participation in the forum.

Are any of the replies below satisfactory in resolving your query?

If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.

Otherwise please post again offering further insight into your question.

Thanks,

AHS

@waqar.khan

Hi,

Please be informed that a reply has been verified as correct in answering the question, and marked as such.

Thanks,

AHS

Upvotes
Accepted
1.4k 5 2 2

Hi @waqar.khan

It looks like your secondaryFields "SFCT_2" has invalid values, hence you were getting the error. Therefore, kindly refer the below screenshot for desired values.


1660897865914.png
Moreover, kindly let us know if you have any additional questions and concerns.



1660897865914.png (19.1 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
1 0 0 1

Request Object
<-------------------------------------------------------------------------------->

{"groupId":"5jb6xeu1xuo61ggav7n1iqovv","entityType":"INDIVIDUAL","caseId":"","providerTypes":["WATCHLIST"],"caseScreeningState":{"WATCHLIST":"INITIAL"},"name":"James Smith","nameTransposition":false,"secondaryFields":[{"typeId":"SFCT_1","value":"MALE"},{"typeId":"SFCT_2","dateTimeValue":{"timelinePrecision":"ON","pointInTimePrecision":"DAY","utcDateTime":316310400000,"timeZone":null}},{"typeId":"SFCT_3","value":"USA"},{"typeId":"SFCT_4","value":"AUS"},{"typeId":"SFCT_5","value":"ABW"}]}
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.