Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Lookup Component Returning 1 Record only. I was expecting Multiple

$
0
0
Pretty straightforward. I am dealing with a tree and so the developers want the data put into a specific format.

I need to take table1.Fullmenu and return it's submenus. This should be easy because I have table 2 listing menus and submenus.

However when I do the lookup it returns one record, instead of the 8 I am expecting. (in order to trouble shoot, I've limited the data set, once I solve this it will run for hundreds of records and expect to return thousands.)

I haven't found anything yet in my searches, but has this ever happened to any one before?

My Sql for testing shows more than 1 record should be returned (very simple):

select

distinct*
from usermodules us, onlymenus onme
where us.fullmenu = onme.menu
and us.fullmenu ='GL.main.menu'

So in SSIS (withing the Data Flow)
I open the usermodules table through OLE DB Source
select distinct FullMenu
from usermodules
where fullmenu is not null
and fullmenu = 'GL.main.menu'
order by FullMenu asc

(I've tried other methods as well - ie. grabbing the full table and under columns only selecting FullMenu... all results are the same)

the I insert a lookup where FullMenu = Menu, and returning SubMenu.

Only 1 record is return (ie. added to the data flow, as I add as new column). It is a correct record which is added, but what happened to the rest of them?

Thoughts please?


Thanks!!

Viewing all articles
Browse latest Browse all 24688


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>