Hi All
I have a strange issue with one of the DS jobs
Here is the design
I grab three columns from one of the tables say A ,B ,C and pass them on to hashed file which is then used for lookup .
A is typically pARTY id for me and it gives me a value of 0 in the hashed file for a perticular B and C VALUES, but , when I check the actual database it has 'xxxxxx' numeric value , this happens to only a few records though..
Can anybody help me out to figure out what the problem could be.
Thanks
Problem with Hashed file
Moderators: chulett, rschirm, roy
A couple of things to check:
- Make sure you create and read the hashed file with identical metadata, including the keys
- If there are any duplicates in your source then the hashed file will only retain the last record. Hence its quite possible that you are look at one record in the database and the hashed file is showing the nth record which your failing to see in your source. Do a group by on the key and count(*) with "having count(*) > 1" at the end of your sql against your source database.
And yea, Welcome Aboard
- Make sure you create and read the hashed file with identical metadata, including the keys
- If there are any duplicates in your source then the hashed file will only retain the last record. Hence its quite possible that you are look at one record in the database and the hashed file is showing the nth record which your failing to see in your source. Do a group by on the key and count(*) with "having count(*) > 1" at the end of your sql against your source database.
And yea, Welcome Aboard
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Yes my metadata for party_id was different . In the input it is numeric(20) and in output decimal(20). I am guessing that this is the problem. Needs to do the testing.
Thanks!
Thanks!
DSguru2B wrote:A couple of things to check:
- Make sure you create and read the hashed file with identical metadata, including the keys
- If there are any duplicates in your source then the hashed file will only retain the last record. Hence its quite possible that you are look at one record in the database and the hashed file is showing the nth record which your failing to see in your source. Do a group by on the key and count(*) with "having count(*) > 1" at the end of your sql against your source database.
And yea, Welcome Aboard