Newtonsoft.Json.JsonSerializationException: Error converting value


I am using the HubSpot CRM connector (it’s in PREVIEW stage).
I am using the activity List Records inside Hubspot CRM Scope with select object Deals. Everything works fine, and I receive the records except when the field Dealstype is maintained on the Hubspot deal that its being communicated. When that happens I receive the following exception:


Source: Generated

Message: One or more errors occurred.

Exception Type: System.AggregateException

System.AggregateException: One or more errors occurred. —> Newtonsoft.Json.JsonSerializationException: Error converting value “CONSIGNAÇÃO/CONSIGNATION” to type ‘System.Nullable`1[UiPath.HubspotCRM.IntegrationService.Client.DealsPropertiesDealtype]’. Path ‘[0].properties.dealtype’, line 19, position 44. —> System.ArgumentException: Requested value ‘CONSIGNAÇÃO/CONSIGNATION’ was not found. at Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, NamingStrategy namingStrategy, String value, Boolean disallowNumber)
at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)

Can someone help me?

Additional information:


As per error and you explaination…looks like the field is null and internally the returned json is not being parsed because of the null value in the field…and as it is in preview mostly this is to be an issue to be reported


Hello @Anil_G

I do not think the value comes null, it comes with CONSIGNAÇÃO/CONSIGNATION.
If I change the deal, for example for one with the value B2C in the same field, I receive the same message but where you read CONSIGNAÇÃO/CONSIGNATION it will be B2C.
You talked about report the issue, where I can do it? My first contact was to UiPath support and they said that because it was in preview I should report it in the forum.

Thank you!


While creating the topic you have an option to select report issue


Thank you @Anil_G
I created the topic HubSpot Connector - Newtonsoft.Json.JsonSerializationException: Error converting value

1 Like