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 » Cardinality with Index

Post new topic  Reply to topic
 Cardinality with Index « View previous topic :: View next topic » 
Author Message
manoj5007
PostPosted: Thu Jul 03, 2014 12:46 am    Post subject: Cardinality with Index Reply with quote

Acolyte

Joined: 15 May 2013
Posts: 64

Hi,

I have requirement to count the occurence of Date field in the message and so I have the below statement in my ESQL code.
DECLARE count INTEGER CARDINALITY(InRef.NS1:XYZ.NS1:Date[]);

Though there is no warnings/errors during compile time but at the time of deployment I am encountering the below error:

" BIP2493E:
Illegal type for parameter '1' of the function 'CARDINALITY'. A list is required.

The expression supplying the parameter must evaluate to a value of a suitable type. The given expression cannot possibly do so.

Correct the syntax of your ESQL expression in node..."

I am not sure what's wrong with this syntax.
Back to top
View user's profile Send private message
gs
PostPosted: Thu Jul 03, 2014 1:40 am    Post subject: Reply with quote

Master

Joined: 31 May 2007
Posts: 254
Location: Sweden

InRef, what is it a reference to? Sounds like the reference might be at fault.
Back to top
View user's profile Send private message
manoj5007
PostPosted: Fri Jul 04, 2014 2:48 am    Post subject: Reply with quote

Acolyte

Joined: 15 May 2013
Posts: 64

The InRef references to InputRoot.XMLNSC.Data

Please correct me if my understanding is wrong,

The broker identifies the datatype as list with help of [] and so here the broker should have identified the statement under cardinality as list and the error shouldn't have been encountered but I am not sure why the error has been encountered.

DECLARE count INTEGER CARDINALITY(InRef.NS1:XYZ.NS1:Date[]);
Back to top
View user's profile Send private message
McueMart
PostPosted: Fri Jul 04, 2014 5:50 am    Post subject: Reply with quote

Chevalier

Joined: 29 Nov 2011
Posts: 490
Location: UK...somewhere

Stick a trace node before your compute node and trace {Root}.

We'll then be able to help you for sure
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 » Cardinality with Index
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.