Hi,
We use TN6.0.1 with MS SQL server database. We have configured few Custom Attributes and those are captured by TN. When searched for specific value of Custom Attribute, the record though is not returned. I checked the query that TN use to get the results and found that it includes a Custom Attribute listed next to the attribute chosen in the where condition. I dont know, why it happens.
Query extracted from TN is below. My intention is to search for specific OrderNo. But it includes OrderDate (bda_0.AttributeID = ‘c0a8f8f7f70d759e00009a55’), another Custom Attribute in the select list and also in where condition.
SELECT
d.DocID,
d.DocTimestamp,
t.TypeName,
s.CorporationName AS SenderCorp,
s.OrgUnitName AS SenderUnit,
r.CorporationName AS ReceiverCorp,
r.OrgUnitName AS ReceiverUnit,
d.RoutingStatus,
d.UserStatus,
d.NativeID,
d.GroupID,
d.ConversationID,
bda_0.StringValue AS “OrderDate”,
bda_1.StringValue AS “OrderNo”
FROM
BizDocTypeDef t,
Partner s,
Partner r,
{oj BizDoc d
LEFT OUTER JOIN BizDocAttribute bda_1 ON d.DocID = bda_1.DocID AND bda_1.AttributeID = ‘c0a8f8f8f70d0b0500044413’},
BizDocAttribute bda_0
WHERE
d.DocTypeID = t.TypeID AND
d.SenderID = s.PartnerID AND
d.ReceiverID = r.PartnerID AND
d.DocID = bda_0.DocID AND bda_0.AttributeID = ‘c0a8f8f7f70d759e00009a55’ AND
d.DocTimestamp > {ts ‘2004-06-01 00:00:00.0’} AND
d.DocTimestamp < {ts ‘2004-07-01 00:00:00.0’} AND
bda_0.StringValue = ‘04/PO/1001’
Any help to overcome this problem?
Regards,
Krishnan
#webMethods#Integration-Server-and-ESB#B2B-Integration