<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to insert a new row in DB using tRESTrequest (POST) and tDBoutput in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-new-row-in-DB-using-tRESTrequest-POST-and/m-p/2312388#M83341</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Sorry, you question is not clear&lt;/P&gt;&lt;P&gt;From my understanding :&lt;BR /&gt;1- use REST request to get the data : This step is ok&lt;BR /&gt;2- Insert the data in the database : not working&lt;/P&gt;&lt;P&gt;If you have access to the database, why not connect directement to the database and insert the data?&lt;/P&gt;&lt;P&gt;In the case you can only insert in the database using an API, have you tested the API with the data you have been able to extract using talend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 15:07:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-17T15:07:00Z</dc:date>
    <item>
      <title>How to insert a new row in DB using tRESTrequest (POST) and tDBoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-new-row-in-DB-using-tRESTrequest-POST-and/m-p/2312387#M83340</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt; 
&lt;P&gt;I am currently discovering Talend and I am trying to insert a new row in my DB using a post request (tRESTRequest) and a TDBoutput.&lt;BR /&gt;I am already able to GET the data of this table with a GET request&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4CE.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141617i5AA2C942BC1D0707/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4CE.png" alt="0683p000009M4CE.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;.&lt;BR /&gt;See the following picture for the components of my tRESTrequest.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2.PNG" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3eI.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141890iDCDAF162CF8F30CF/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3eI.png" alt="0683p000009M3eI.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;Picture 3 is for the parameters of my POST request (the famous &lt;STRONG&gt;[...]&lt;/STRONG&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="3.PNG" style="width: 945px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4CJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/158211i3BBFAF8D89070848/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4CJ.png" alt="0683p000009M4CJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;So when i try to use this service with the URL&amp;nbsp; "&lt;A href="http://localhost:8088/userstalend/post/4/exname/exlastname" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;http://localhost:8088/userstalend/post/4/exname/exlastname&lt;/A&gt;" it shows me this error log:&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;[WARN ]: org.apache.cxf.jaxrs.impl.WebApplicationExceptionMapper - javax.ws.rs.ClientErrorException: HTTP 405 Method Not Allowed
	at org.apache.cxf.jaxrs.utils.SpecExceptions.toHttpException(SpecExceptions.java:117)
	at org.apache.cxf.jaxrs.utils.ExceptionUtils.toHttpException(ExceptionUtils.java:167)
	at org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod(JAXRSUtils.java:513)
	at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.processRequest(JAXRSInInterceptor.java:181)
	at org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor.handleMessage(JAXRSInInterceptor.java:78)
	at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
	at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
	at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:267)
	at org.apache.cxf.transport.http_jetty.JettyHTTPDestination.doService(JettyHTTPDestination.java:247)
	at org.apache.cxf.transport.http_jetty.JettyHTTPHandler.handle(JettyHTTPHandler.java:79)
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1182)
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1116)
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213)
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134)
	at org.eclipse.jetty.server.Server.handle(Server.java:534)
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320)
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251)
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273)
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95)
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148)
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136)
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671)
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589)
	at java.lang.Thread.run(Unknown Source)

Thu May 16 16:50:09 CEST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Thu May 16 16:50:09 CEST 2019 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
.--+---------+--------.
|      tLogRow_2      |
|=-+---------+-------=|
|id|firstname|lastname|
|=-+---------+-------=|
|1 |Gang     |Oui     |
|2 |HaveToBe |AlphaMan|
|3 |PlusTrop |Didees  |
'--+---------+--------'&lt;/PRE&gt; 
&lt;P&gt;So it does not have inserted the new row in my CB and my Job is paused like that (only the interresting part: the POST part) without any new row for the output:&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="4.PNG" style="width: 986px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M4Ai.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130872i5A13C4B963FFDC4A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M4Ai.png" alt="0683p000009M4Ai.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Am I missing something?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;&lt;BR /&gt;EDIT: I hope that I am asking this in the good section..&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:48:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-new-row-in-DB-using-tRESTrequest-POST-and/m-p/2312387#M83340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T05:48:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert a new row in DB using tRESTrequest (POST) and tDBoutput</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-new-row-in-DB-using-tRESTrequest-POST-and/m-p/2312388#M83341</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Sorry, you question is not clear&lt;/P&gt;&lt;P&gt;From my understanding :&lt;BR /&gt;1- use REST request to get the data : This step is ok&lt;BR /&gt;2- Insert the data in the database : not working&lt;/P&gt;&lt;P&gt;If you have access to the database, why not connect directement to the database and insert the data?&lt;/P&gt;&lt;P&gt;In the case you can only insert in the database using an API, have you tested the API with the data you have been able to extract using talend?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 15:07:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-insert-a-new-row-in-DB-using-tRESTrequest-POST-and/m-p/2312388#M83341</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-17T15:07:00Z</dc:date>
    </item>
  </channel>
</rss>

