52
Views
3
Comments
[MongoDB] Error parsing infinity value - MongoDB Date to Outsystems Date
mongodb
Web icon
Forge asset by OutSystems Lab

Hello,

I am currently implementing the MongoDB on my application. The connection is fine and working but I am facing this error:


Failed to deserialize JSON to User_Reviews:
Error parsing Infinity value. Path 'review_date', line 1, position 193.


And base on my own understanding, it seems like the Date format on MongoDB is not "compatible" with the Date format of OS.

I tried to set my JSON Serialize/Deserialize to use the unix time translation as Barduino suggested on this question but still getting the same error.

Is there any workaround on this one?

UserImage.jpg
Barduino

Hi Gab,

It is hard to understand what is going on from your description.

So the next best thing I recommend is for you to take a look at the demo app, it has recently (ish) been updated to include a date.

One question though, how is that date created on the Mongo Side?



2021-04-30 02-02-19
Gab Globio

The solution for me was setting the structure attribute data type as Text and not Date Time.

2021-05-18 02-27-17
Manish Gupta
Champion
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.