Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I was reading a JSON file with 1441 records and tried to load it to MySQL server. After loading, I can see that only 1369 rows are inserted. I checked schema to see whether there is any truncation issue and found no issues. Can anyone help me with this?
Hello
After you tmssql component use tjavarow
and try to use this code
Number of records successfully loaded : " + ((Integer)globalMap.get("tMSSqlOutput_1_NB_LINE_INSERTED"))
In talend studio to the left of it, you will have outline in that all the components will be appeared try to use them
Please find picture attached
Hi @amruthqs4talend,
Can you pls check the connection in the sql builder of the tmysqloutputbulkexec component.. and pls check
append option and action on table and action on data....
Here is the link for output component: https://help.talend.com/reader/hCrOzogIwKfuR3mPf~LydA/7cjWwNfCqPnCvCSyETEpIQ
One of the reason could also be that the after the insertion the commit for them isnt done.
Pls do get back to Community,if necessary.
Thanks,
Ankit.
I am using tdboutputbulkexec component and it has "action on table" option, not the "action on data". I am using drop table if exist and create option.
Hi @amruthqs4talend,
Which Talend version are you using ???
I ll try to look from my end. How i can help
Thanks,
Ankit
I am using Talend Open Studio for Data Integration Version: 7.1.1.
Thanks a lot..
Hi @amruthqs4talend,
I have a query though, why exactly are you using tlogrow in between json object and output component?
is the schema checked??
I apologise,but i use talend 6.3.2 where i dont have this tdb - component.?
But i will try to look..what can be done.
Thanks,
Ankit.
Hi,
Some older community messages suggested the usage of tlogrow. It shows me the records in talend output window and prints 1441 records.
Thanks,
Amrutha
Hey Can you check the length of the data field in the output. may be this can help.
hi,
I have checked the length of columns and it was same as auto-selected by schema. This was my first guess when things did not work out.
Thanks,
Amrutha
Hi,
Could you please try some basic verifications as stated below?
a) Try to replace the bulk component with tMysqlOutput component with Die on Error option enabled and retaining current schema setup. This will show the error you are facing if its related to schema or data errors.
b) Setup the schema length according to target columns in DB. If necessary, add a schema check component in between.
c) Once these verification are over, replace the output component with Bulk component and run the flow again and see the output.
Hope it should help to identify the root cause.
Warm Regards,
Nikhil Thampi
Please appreciate our Talend community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂