Skip to main content
Nintex Community Menu Bar
Question

System.Exception: Unable to deserialize value Int64 to SmartobjectName.


Forum|alt.badge.img+1

After successfully adding a Web Service to the End Points web service and generating SmartObjects.

anytime I try to run the Deserialize method I get an error "System.Exception: Unable to deserialize value Int64 to SmartObjectName. at SourceCode.SmartObjects.Services.Endpoints.Common.Extensions.TypeExtensions.”

 

 

this is the screenshot of error from Service Instance debug.

 

 

I am using the same value with SOAPUI and getting a valid response from the API.

 

When I entered this JSON format, I get No error but there’s No Output response.

{"$type":"body, Get_Applicant_Info, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null","employeeId":"**********"}

 

the idea of this API I need to send employeeId and get all other employee information.

 

Translate
Did this topic help you find an answer to your question?

3 replies

Forum|alt.badge.img
  • Nintex Employee
  • 4 replies
  • February 13, 2024

What type of data is employeeId?  Is it maybe expecting it to be a number when it should be a string/text?

Translate

Forum|alt.badge.img+1
  • Author
  • Rookie
  • 4 replies
  • February 13, 2024
Mark_Wilbert wrote:

What type of data is employeeId?  Is it maybe expecting it to be a number when it should be a string/text?

Thanks for your replay!

the employeeId has string datatype.

 

In addition, I tried to use “Deserialize Typed Array“ method from “ApplicanInfo” smartobject there’s No system error, but no response neither.

 

Translate

Forum|alt.badge.img
  • Nintex Employee
  • 4 replies
  • February 13, 2024

It may help to turn SmartObject logging https://help.nintex.com/en-us/k2five/icg/5.5/Content/configure/SmOLogging.htm

To try to get a better view on what’s going on.  It may be that the service is returning something like a 400 or 404 and that’s why it can’t deserialize it.  In the service instance, there may be a setting for showing errors.

 

If that still does not work, you may need to look at the request using Fiddler, but this approach is bit more involved - 

 

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings