19
Views
6
Comments
Solved
Error serializing to Json: ' ', hexadecimal value 0x0B, is an invalid character
Question
Application Type
Reactive
Service Studio Version
11.53.33 (Build 61790)
Platform Version
11.15.0 (Build 35681)

I have a text stored in a string type attribute, with the value (no spaces at start or end):

I use the System Serialize Json action to send the record externally:

The result from this serialization returns this value with a few strange characters:

Afterwards, when trying to send this record through an API, I get the following error in service center:

Any ideas?

2020-10-26 08-15-55
Laia Ferrando Ferragud
Solution

Yes, I could finally figure it out where was it and how to get rid of it

2023-08-28 07-00-10
Paulo Torres
Champion

Hi,

What's the field type of your structure from API?

2020-10-26 08-15-55
Laia Ferrando Ferragud

Hi,

A list of Pair Key-Value, where the Key is the name of the attribute, and the value its content:

For example, in this case the Key would be: Subtopic 

and the value should be: 

Authorizes the release of 248.100€ for \"SC Cybersecurity Libraries for Mobile Apps\". 

But with the error it's:

Authorizes the release of 248.100€ for \"SC Cybersecurity Libraries for \u000bMobile Apps\". 

2023-08-28 07-00-10
Paulo Torres
Champion

Value it's a text?

2020-10-26 08-15-55
Laia Ferrando Ferragud

It is, yes

2023-08-28 07-00-10
Paulo Torres
Champion

Hexadecimal value 0x0B, is an invalid character. Line 1, position 429. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

I believe you have some strange character in database, no?

2020-10-26 08-15-55
Laia Ferrando Ferragud
Solution

Yes, I could finally figure it out where was it and how to get rid of it

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.