I have a table who's data I want to increase:Header tableTranID StoreNo1 10 2 103 104 205 206 207 30
Desired results:TranID StoreNo1 10 2 103 104 205 206 207 308 40 9 4010 4011 5012 5013 5014 6015 7016 7017 70
I have an SSIS package that pumps data from the original back into itself, and updates the storeNo and TransactionID (as tranID is unique). The original transactional data is doubled with each iteration, using the original data set to generate the new set of stores and transactions for those stores. However, I don't want the data to double with each iteration, I ONLY want to repeat the original dataset with each iteration:StoreNo NoOfTrans10 320 330 1Iteration 1:NoOfTrans662Iteration 2,3,4.....:NoOfTrans9, 12, 15 (so NOT 12, 24, 48, .....)9, 12, 15 (so NOT 12)3, 9, 12, (so NOT 4, 8, 16, ...........)
I have a store mappings table that contains the new store mappings:Iteration 1:StoreNo NewStoreNo10 4020 5030 60This is updated the second time round to generate the new storeNos:Iteration 2:StoreNo NewStoreNo10 7020 8030 90
I use a lookup component in the data flow to replace the StoreNo with the NewStoreNo. However, on the second iteration, I get the following error:Error: 0xC0209029 at Data Flow Task, Lookup [181]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "component "Lookup" (181)" failed because error code 0xC020901E occurred, and the error row disposition on "output "Lookup Output" (183)" specifies failure on error. Error: 0xC0047022 at Data Flow Task, DTS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Lookup" (181) failed with error code 0xC0209029. The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. I presumed this occurred because the data (in red below) that I created in the first iteration does not have a StoreNo match in the reference table:TranID StoreNo1 10 2 103 104 205 206 207 308 40 9 4010 4011 5012 5013 5014 60
I changed the error output to ignore the failure, expecting the values that DO match to still be successful. However, this is not the case. The second iteration produces NO RESULTS???!?What can I do to change this? Hearty head pats