Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I'm trying to migrate data from SQL to PostgreSQL using Talend Open Studio 7.0.1
I created the empty tables at the destination.
Instead creating static components I created a metadata table with "list of tables" to be migrated from source to destination. The table also contains source table name and destination table name.
I used 'tFlowToIterate' to fetch source and destination table names to global variables and next used these global variable names in the 'tDBInput' and 'tDBOutput' but throws the below generic error and could not understand the issue.
However, it works when I try to hardcode the table names without using global variable but fails when using global variables.
Am I missing any step here?
Error:
Error in the component's propertiesstmt_tDBOutput_1 cannot be resolved
pstmt_tDBOutput_1 cannot be resolved
pstmt_tDBOutput_1 cannot be resolved
pstmt_tDBOutput_1 cannot be resolved to a variable
pstmt_tDBOutput_1 cannot be resolved
pstmt_tDBOutput_1 cannot be resolved to a variable
pstmt_tDBOutput_1 cannot be resolved
I guess I should not be using 'tDBOutput' component. Could you please specify what components are required?
I am not sure how this would work if source and destination tables are on different databases.
Could you unfold more pointers for your suggestion?
I think I understood your hint but facing issues due to lack to knowledge on Talend.
I have attached the screenshots in a document for your reference.
My Steps:
I created connections for both source and destination.
Now on source, I use the query shared by you.
Now how to load this query to string and execute on the destination.
My SQL level is good(7 out of 10) but I'm very new to Talend, not more than 15 days of working experience.
I'm learning Talend through multiple ways like YouTube videos, other community posts and blogs.
Thank you.
Thanks for your detailed explanation.
However, I already learnt how these components work and also transformed data in a sample run.
As per the previous attachment, I'm struggling to create varchar using tDBRow, pass it to destination and execute the Varchar there.
This is the area which I need your help.
Thank you.