One Star

tESBConsumer does not understand null value

Hello, i am trying to make a simple service where i input person_code and date in the request. Since date is optional it shouldnt be converting it, but i get this error:

The formatter threw an exception while trying to deserialize the message: There was an error while trying to deserialize parameter http://tempuri.org/:request. The InnerException message was 'There was an error deserializing the object of type DataTransmission.Envelopes.BitesRequest. The value '' cannot be parsed as the type 'DateTime'.'. Please see InnerException for more details.
Can someone tell me how i could make it optional for ESBconsumer to not convert optional fields?
this is my job
6 REPLIES
Moderator

Re: tESBConsumer does not understand null value

Hi spiderman,
The screenshot is too small to see it clearly.
Could you please upload your screenshot by talend forum Image Upload Section?
For registered users, please click on "post reply" (not through the quick post") and pay more attention on the limitation(20 images per post, each image must be less then 1024x768 pixels and 200 KB, .png is preferred)
This would be easier for you and more convenient for other users than pasting urls.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tESBConsumer does not understand null value

having trouble using your image upload feature. so i just added a link of a larger image. http://s22.postimg.org/64vxmvypr/process.png
Moderator

Re: tESBConsumer does not understand null value

Hi,
Could you please indicate the build version you're using?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tESBConsumer does not understand null value

I am using Talend Open Studio ESB v5.4.1.r111943
Moderator

Re: tESBConsumer does not understand null value

Hi,
We will make a testing for your issue on Talend Open Studio ESB v5.4.1.r111943 then come back to you asap.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: tESBConsumer does not understand null value

It seems that the problem is in the request of service i am trying to get response from.
I tried to pass null value in the DATE field of request using SOAPUI, and the same error appeared as when i tried to do the same with talend. So i added a namespace (http://www.w3.org/2001/XMLSchema-instance) and assigned an attribute i:nil="true" to the DATE tag, and i got a response.
The question now is how i add a prefixed attribute in talend? when i add i:nil attribute in tXMLMap i get the error displayed in picture2. How should i add an attribute with assigned namespace in tXMLMap?