Search code examples
informatica-powercenter

informatica execute sql in sql transformation


Background: I am really new. Informatica Developer for PowerCenter Express Version: 9.6.1 HotFix 2

I want to execute a t-sql statement as one step in a work flow:

    truncate table dbo.stage_customer

I tried create a mapping, add a sql transformation on it. Input above query in sql query window. I added the mapping to a workflow of just start, the mapping, and the end. When I validate the flow I got this error:

    The group [Input] in transformation xxx must have at least one port

I have no idea what ports are needed since this (the truncate statement) basically doesn't need input or output.


Solution

  • if you would like to truncate a target table before loading why don't you use the in-built option present in session properties?

    goto workflow manager-> open session->mapping tab->click on target table listed left side->choose the property "Truncate table option" just enable it

    to answer you question, I think you have to connect at least one input and output port into SQL transformation (because it is not unconnected). Just create dummy ports and try again

    try this article - click here