SOLVED

Re: 609 Error Code - REST API

Go to solution
Alejandro_Deguz
Level 2

609 Error Code - REST API

Hello,

 

I am trying to make a simple Lead update post via Postman to the Marketo API that updates firstName based a lookupField of serialPerson (custom field). I keep getting a 609 - "Unexpected character ('-' (code 45)) in numeric value: expected digit (0-9) to follow minus sign, for valid numeric value" Error Code.

 

My Content-Type is set to application/json and my request is:

{
"action": "createOrUpdate",
"lookupField": "serialPerson",
"input": [{
"serialPerson": 6523,
"firstName": "test"
}]
}

 

Does anyone know what this message is referring to?

1 ACCEPTED SOLUTION

Accepted Solutions
Alejandro_Deguz
Level 2

Re: 609 Error Code - REST API

I have solved the issue and is within Postman. I was adding my JSON payload in the body as "form-data". It needed to be in "raw".

 

https://stackoverflow.com/questions/44582670/json-parsing-error-in-springboot 

View solution in original post

6 REPLIES 6
SanfordWhiteman
Level 10 - Community Moderator

Re: 609 Error Code - REST API

I assume you're POSTing to /rest/v1/leads.json (best to include that information to avoid confusion).

 

Is serialPerson an Integer field in Marketo? The underlying problem is a Jackson (JSON deserialization) error like you might see if had a hyphen on its own, outside of a string and not right before a number, but I don't see a hyphen anywhere in your code, which is weird. 

Alejandro_Deguz
Level 2

Re: 609 Error Code - REST API

Hi Sanford,

 

Yes, I am posting to /rest/v1/leads.json and serialPerson is an integer data type. I do not a have a hyphen for the value in serialPerson and the payload is very simple.

SanfordWhiteman
Level 10 - Community Moderator

Re: 609 Error Code - REST API

Can you quote it, as a test?

Alejandro_Deguz
Level 2

Re: 609 Error Code - REST API

I added quotes, but got the same error.

 

Alejandro_Deguz_0-1598391004369.png

 

Alejandro_Deguz
Level 2

Re: 609 Error Code - REST API

I have solved the issue and is within Postman. I was adding my JSON payload in the body as "form-data". It needed to be in "raw".

 

https://stackoverflow.com/questions/44582670/json-parsing-error-in-springboot 

SanfordWhiteman
Level 10 - Community Moderator

Re: 609 Error Code - REST API

Ah, because the MIME separator -- is composed of hyphens, yes, it needs to be only JSON on the wire!