ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unable to copy the null value from DFDL tag to XML namespace

Post new topic  Reply to topic
 Unable to copy the null value from DFDL tag to XML namespace « View previous topic :: View next topic » 
Author Message
ksrocks9
PostPosted: Wed Apr 06, 2016 3:33 pm    Post subject: Unable to copy the null value from DFDL tag to XML namespace Reply with quote

Apprentice

Joined: 11 Mar 2015
Posts: 35

Sorry for not describing my issue properly

Last edited by ksrocks9 on Thu Apr 07, 2016 7:36 am; edited 1 time in total
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 07, 2016 12:05 am    Post subject: Re: Unable to copy the null value from DFDL tag to XML names Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

ksrocks9 wrote:
Null value is not coping to XML namespace from DFDL (Mesaege from mainframe) .
SET OutputRoot.XMLNSC.ShopName.(XMLNSC.Attribute)Code = InputRoot.DFDL.Shop.CODE;

I am getting <ShopName> insted of <ShopName Code=""> namespace Code is missing.

Thanks in advance

Try
Code:
set OutputRoot.XMLNSC.Shopname.(...)... VALUE =.....

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
timber
PostPosted: Thu Apr 07, 2016 12:52 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

You are not using the correct words to describe your problem.
- The value "" is an empty string and not a null value. A null value is something quite different.
- Code="" is an attribute, not a namespace.

So you should have said:
"I am copying an empty string value into an XML attribute, and the attribute is not appearing in the output XML."

I think this is what is happening:
- The field reference InputRoot.DFDL.Shop.CODE does not exist in InputRoot, so it evaluates to NULL
- The attribute is not created in OutputRoot.XMLNSC because ESQL cannot create an attribute from a non-existent field.

Your next steps should be
- insert a Trace node into the message flow before the Compute node
- Set the Pattern to ${Root}
- Set the Destination to File
- Post the Trace node output here
That will show you ( and us )what InputRoot.DFDL looks like.

For bonus points:
- Set the Trace node Destination to User Trace
- take a debug-level user trace ( mqsichangetrace, mqsireadlog, mqsiformatlog ). The problem will be highlighted in the trace output.
Back to top
View user's profile Send private message
ksrocks9
PostPosted: Fri Apr 08, 2016 8:55 am    Post subject: Reply with quote

Apprentice

Joined: 11 Mar 2015
Posts: 35

Thanks for your help Timber and fjb.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Unable to copy the null value from DFDL tag to XML namespace
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.