Tuesday, April 8, 2008

"Cannot generate query no valid fields projected from the Source Qualifier" generating a SQL Override in a Source Qualifier

Problem Description

After clicking on the Generate SQL button in a SQL override the following error is encountered:

Cannot generate query because there are no valid fields projected from the source qualifier


Solution
The output ports of the Source Qualifier must be connected to another transformation in the mapping.
Only the ports that are connected to another transformation will be included in the SELECT clause of the SQL that is generated. To resolve do the following:
  1. Close the SQL Override window.

  2. Connect the ports from the Source Qualifier to the next transformation in the mapping.

  3. Create the SQL Override.

3 comments:

Neha Desai said...

Thank you for posting the solution, I am begginer..you rsolution helped me!!! :)

Unknown said...

The solution was helpful. Thank you for posting.

Unknown said...

and for me it was helpfull too. many thanks