In this brief post I will describe what looks to be one of the most common problems you may face while executing Informatica Power Center’s workflows.
I have got exactly this problem while working for a customer and it took me long to figure out the reason.
Usually an Informatica mapping that takes data from multiple sources starts with the usage of the Source Qualifier operator that does basically a join between the input tables (in the screenshot we qualify only one input table).

The join query could be user-defined or auto-generated.
While using a user-defined query we have to take care of the number of columns we specify in the select statement that must match the number of columns linked from the Source Definition to the Source Qualifier.
Whenever these numbers mismatch, we get an ORA-01007 at runtime, even if the query itself it’s syntactically and logically correct.

A typical scenario in which you might face this problem could be the following: someone updates a source table metadata definition by adding new columns and then updates the related ETL mapping to include the new columns in the ETL logic. Then asks you to import the new stuff in production.
If the workflow that execute the modified mapping has an overwritten SQL in the Source Qualifier definition and we forget to update it, we may face the problem as well, even if the number of columns specified in the select statement of the related mapping’ Source Qualifier matches the number of linked columns from the Source Definition.
Infact when an overridden SQL is used in the worflow, Informatica executes the overridden script instead of the one from the mapping. So if the worflow is part of a previous release of the software, it still has the old number of columns in the select statement that might not correspond to the numbers of the linked columns from the source definition.