Open Studio - Defining Schema at Run Time.

One Star

Open Studio - Defining Schema at Run Time.

I have a requirement to provide the schema at runtime and I realized that it's possible for a few scenarios and NOT for others. Let me explain:
When I attempt to TRUNCATE a table using the tPostgresqlRow component, I'm able to (as shown below).

However, when I use an existing connection to INSERT data into a table I get the following error: 


ERROR: relation "customer" does not exist
  Position: 13ERROR: relation "customer" does not exist
  Position: 13ERROR: relation "customer" does not exist
  Position: 13


I noticed an article on Talend -> "Can I define a schema at run time?" Is this why my INSERT doesn't work, while TRUNCATE works as I can specify the Schema Name?
What's the workaroud? The feature of being able to provide schema name at runtime will be a great way for me to get my work done.
Moderator

Re: Open Studio - Defining Schema at Run Time.

Hi,
What does your schema look like? Unknown column structure that you have to define it at run time?

Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Best Practices for Using Context Variables with Talend – Part 1

Learn how to do cool things with Context Variables

Blog

Migrate Data from one Database to another with one Job using the Dynamic Schema

Find out how to migrate from one database to another using the Dynamic schema

Blog

Best Practices for Using Context Variables with Talend – Part 4

Pick up some tips and tricks with Context Variables

Blog