1 testing & debugging in informatica powercenter
TRANSCRIPT
2
Agenda
What do we test in Informatica? Preparing to test Different types of problems Solutions to problems Using the debugger Where to look for problem causes Common problems and their solutions
3
Testing – What needs to be tested?
Format Examples:
File length Number formats Representation of NULL
Logic Examples:
Calculation results Results of logical conditions
4
Testing – Preparing for battle
Prepare test plan Grant appropriate file permissions Prepare test data
5
Types of problems
Format related“What is this junk data?!!!””My file looks ugly!!”
Logic related“Why am I getting a different output? I am SURE my
logic is correct”
OthersWorkflow failsNo session log written
6
Fighting it out…
Format related problems
Solution: File length – Check port length/precision Number formats – Check port
length/precision Representation of NULL – check session
properties
39
Where to look?
1. Session property in Workflow monitor
2. Session log
3. Session property in Workflow designer
4. Debugger
59
Fighting it out…
Common problems and causes
SNo Problem Solution
1 Workflow fails at the beginning itself Check monitor session properties if file access problems exist
2 Workflow fails at the beginning itself, no file access problems
Check SQL syntax in source qualifiers
3 Workflow fails for some reason Check session log. If necessary, run session in ‘verbose’ mode
4 Data is being truncated for some reason
Check port length
5 Logical equality/inequality operators do not seem to work
Trimming is needed/Check data type
6 Logical conditions are getting executed wrongly
Check if NULL checks have been performed
7 Numbers are being read from flat file. Corresponding calculation results are wrong
Check length/precision of ports
8 During debugging, all ports get null value
Some fatal error has occurred. Eg: division by zero, invalid date