Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello folks,
I want to read a table from MySQL and write to PostgreSQL. Setup 1 works fine. But Iwant to use the tDBConnection in Setup 2 and this doesn't work. Can please someone help? NO ERROR or WARNING
in Setup 1 I can see in DataGrip the table and in Setup 2 it doesn't appear.
Setup 1:
Use:
tDBInput MySQL -- Row (Main) -- tDBInput PostgreSQL
Explanation:
works fine. Use Repository for both.
Setup 2 (same Database):
Use:
tDBConnection MySQL -- Trigger (On Component OK) -- tDBConnection PostgreSQL -- tDBInput MySQL -- Row (Main) -- tDBOutput PostgreSQL -- Trigger (On Component OK) -- tDBClose PostgreSQL -- Trigger (On Component OK) -- tDBClose MySQL
WORKS NOT
Explanation:
tdBConnection MySQL |- Repository (Connection successful)
tdBConnection PostgreSQL |- Repository (Connection successful)
tDBInput MySQL |- Use existing connection
tDBOutput PostgreSQL |- Use existing connection; give table a name; Drop table if exists and create; Action on data Insert; Sync columns ...
-- DOESN'T WORK BUT NO ERROR NO WARNING
Job XXX ended at 10:28 09/10/2018. [exit code=0]
Need Help PLEASE
Hi,
Thanks for the detailed screenshot. I couldn't follow the description written in the screenshot but I believe you are trying to explain the issue.
Could you please change your job like below and let me know whether it is working? I would recommend to use tSubJobOk instead of tComponentOk for your use case.
If my answer has helped to resolve the issue, could you please mark the topic as resolved and closed? Kudos are also welcome 🙂
One last note is that you can easily attach your screenshots to Talend forum by using the camera icon shown above.
Warm Regards,
Nikhil Thampi
Hi,
Could you please share a screen shot of your job for better clarity of your issue?
One quick thing I could recommend is to use OnSubJob Ok rather than On Component Ok in your flow. But a screen shot will help us to understand your job flow better.
Warm Regards,
Nikhil Thampi
Hello,
thank you for response. I tried with OnSubJob Ok. But was not successful. It works with MySQL fine but not with Postgres.
Hi,
Thanks for the detailed screenshot. I couldn't follow the description written in the screenshot but I believe you are trying to explain the issue.
Could you please change your job like below and let me know whether it is working? I would recommend to use tSubJobOk instead of tComponentOk for your use case.
If my answer has helped to resolve the issue, could you please mark the topic as resolved and closed? Kudos are also welcome 🙂
One last note is that you can easily attach your screenshots to Talend forum by using the camera icon shown above.
Warm Regards,
Nikhil Thampi
Hi,
Problem is solved. Thank you!