<?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>question Re: QueryDatabaseTable ORA-01722: invalid number using docker in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289198#M214106</link>
    <description>&lt;P&gt;The nifi database client is different from the one used to develop the application. The specific problem was in a field of a source table of the view where this field was used both to record numerical values and text and on this field the to_number oracle function was used to convert the text to numeric. But since the configuration is different from the docker, the format of numbers was ',.' so the data could not be transformed.&lt;/P&gt;&lt;P&gt;The data in the productive database were somewhat different from those in the development database.&lt;BR /&gt;I used a function where i use TO_NUMBER(REPLACE(NVL(TRIM(p_cadena),'0'),'.',','));&amp;nbsp;to solved this problem. (Only for docker)&lt;/P&gt;</description>
    <pubDate>Wed, 05 Feb 2020 15:23:56 GMT</pubDate>
    <dc:creator>gdr</dc:creator>
    <dc:date>2020-02-05T15:23:56Z</dc:date>
    <item>
      <title>QueryDatabaseTable ORA-01722: invalid number using docker</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/288703#M213815</link>
      <description>&lt;P&gt;Hi all!&lt;BR /&gt;&lt;BR /&gt;I have a docker-compose created with an image of apache/nifi 1.10.0 into a linux machine.&lt;BR /&gt;&lt;BR /&gt;Something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;version: '2'
services:
  nifi-1:
    image: 'apache/nifi:1.10.0'
    hostname: nifi
    ports:
      - 8080:8080
      - 8082:8082 
    environment:
      - NIFI_WEB_HTTP_PORT=8080
      - NIFI_ELECTION_MAX_WAIT=1 min
      - TZ=America/Argentina/Buenos_Aires
      - LANG=es_AR.UTF-8&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Into my development i have a QueryDatabaseTable that read a entire oracle view and then insert this record in other oracle database table.&lt;BR /&gt;&lt;STRONG&gt;My problem is that this in docker not run.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If i run this in a local nifi server this run with success.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;QueryDatabaseTable configurations:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 660px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26187iF1686BD582A09D62/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 658px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26188i78BB15BAA1EE5672/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The view:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 361px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26189iFA52A8BF3C542CDC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 368px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26190i50266E80854447B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem (Im trying with a string field and a date field);&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-01-29.png" style="width: 867px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/26191i28AE1671704E1608/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-01-29.png" alt="2020-01-29.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The log&lt;/P&gt;&lt;LI-CODE lang="java"&gt;2020-01-30 12:26:14,004 ERROR [Timer-Driven Process Thread-10] o.a.n.p.standard.QueryDatabaseTable QueryDatabaseTable[id=72b4c9f0-e289-33d7-f82d-50bb8f23d4f1] Unable to execute SQL select query SELECT TRUNC(FECHA_EVALUACION) FECHA_EVALUACION,
CANT_ENCUESTADOS,
CANTIDAD_LIDERES,
COD_COMPETENCIA,
COD_EVALUACION,
COD_EVALUADO,
COD_EVALUADOR,
COD_MODULO,
COD_TIPO_EVALUACION,
DESC_COMPETENCIA,
DESC_EVALUACION,
DESC_MODULO,
DESC_TIPO_ENCUESTA,
DESC_TIPO_EVALUACION,
TO_CHAR(FECHA_EXAMEN,'DD/MONTH/YYYY') FECHA_EXAMEN,
NUM_FILA_EVALUADO,
NUM_FILA_MODULO,
NUM_FILA_TIP_EVALUACION,
GENERAL_NOTA_FINAL,
GENERAL_NOTA_POR_T_EVAL,
LIDERAZGO,
MODULO_CANTIDAD,
MODULO_NOTA,
MODULO_NOTA_FINAL,
MODULO_NOTA_PONDERADA,
MODULO_PONDERACION_TOTAL,
NOTA,
NRO_ENCUESTA,
PONDERACION_FINAL,
PONDERACION_FINAL_P_ENC,
PONDERACION_MODULO,
PONDERACION_MODULO_AJUSTADO,
NRO_ENCUESTA_REPETIDA,
TIPO_EVALUCION_CANT_P_ENC FROM VW_STG_CUB_EVALUACIONES due to java.sql.SQLSyntaxErrorException: ORA-01722: invalid number
: java.sql.SQLSyntaxErrorException: ORA-01722: invalid number

java.sql.SQLSyntaxErrorException: ORA-01722: invalid number

        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:494)
        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:446)
        at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:1054)
        at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:623)
        at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:252)
        at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:612)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:213)
        at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:37)
        at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:733)
        at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:904)
        at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1082)
        at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1276)
        at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:366)
        at org.apache.commons.dbcp2.DelegatingStatement.executeQuery(DelegatingStatement.java:329)
        at org.apache.commons.dbcp2.DelegatingStatement.executeQuery(DelegatingStatement.java:329)
        at org.apache.nifi.processors.standard.AbstractQueryDatabaseTable.onTrigger(AbstractQueryDatabaseTable.java:281)
        at org.apache.nifi.controller.StandardProcessorNode.onTrigger(StandardProcessorNode.java:1176)
        at org.apache.nifi.controller.tasks.ConnectableTask.invoke(ConnectableTask.java:213)
        at org.apache.nifi.controller.scheduling.TimerDrivenSchedulingAgent$1.run(TimerDrivenSchedulingAgent.java:117)
        at org.apache.nifi.engine.FlowEngine$2.run(FlowEngine.java:110)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)
Caused by: oracle.jdbc.OracleDatabaseException: ORA-01722: invalid number

        at oracle.jdbc.driver.T4CTTIoer11.processError(T4CTTIoer11.java:498)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So i don't know what happen. I have this development with other views and i don't have any problem but with this view is other thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me?&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:37:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/288703#M213815</guid>
      <dc:creator>gdr</dc:creator>
      <dc:date>2020-01-30T15:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: QueryDatabaseTable ORA-01722: invalid number using docker</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289194#M214102</link>
      <description>&lt;P&gt;Solved&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:48:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289194#M214102</guid>
      <dc:creator>gdr</dc:creator>
      <dc:date>2020-02-05T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: QueryDatabaseTable ORA-01722: invalid number using docker</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289196#M214104</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/72225"&gt;@gdr&lt;/a&gt;&amp;nbsp;Congratulations on resolving your issue. Can you please share the details on how you solved it in case it can be of assistance to others.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 14:55:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289196#M214104</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2020-02-05T14:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: QueryDatabaseTable ORA-01722: invalid number using docker</title>
      <link>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289198#M214106</link>
      <description>&lt;P&gt;The nifi database client is different from the one used to develop the application. The specific problem was in a field of a source table of the view where this field was used both to record numerical values and text and on this field the to_number oracle function was used to convert the text to numeric. But since the configuration is different from the docker, the format of numbers was ',.' so the data could not be transformed.&lt;/P&gt;&lt;P&gt;The data in the productive database were somewhat different from those in the development database.&lt;BR /&gt;I used a function where i use TO_NUMBER(REPLACE(NVL(TRIM(p_cadena),'0'),'.',','));&amp;nbsp;to solved this problem. (Only for docker)&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 15:23:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/QueryDatabaseTable-ORA-01722-invalid-number-using-docker/m-p/289198#M214106</guid>
      <dc:creator>gdr</dc:creator>
      <dc:date>2020-02-05T15:23:56Z</dc:date>
    </item>
  </channel>
</rss>

