Newtonsoft.Json.JsonSerializationException: Error converting value

Hello,

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:

23.6.1-beta.13324+Branch.release

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

@Valente_Henrique_RTE

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

Cheers

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!

@Valente_Henrique_RTE

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

Cheers

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

1 Like