<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jaqueline Cella on Medium]]></title>
        <description><![CDATA[Stories by Jaqueline Cella on Medium]]></description>
        <link>https://medium.com/@jaquelinecella2017?source=rss-169136ac540f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eQgnAwTvMvbtmqpo-2go0A.jpeg</url>
            <title>Stories by Jaqueline Cella on Medium</title>
            <link>https://medium.com/@jaquelinecella2017?source=rss-169136ac540f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 03:24:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jaquelinecella2017/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How to make a POST request in an API using Azure Data Factory]]></title>
            <link>https://medium.com/@jaquelinecella2017/how-to-make-a-post-request-in-an-api-using-azure-data-factory-1661ee3268e6?source=rss-169136ac540f------2</link>
            <guid isPermaLink="false">https://medium.com/p/1661ee3268e6</guid>
            <category><![CDATA[api]]></category>
            <category><![CDATA[azure-data-factory]]></category>
            <dc:creator><![CDATA[Jaqueline Cella]]></dc:creator>
            <pubDate>Sun, 09 Feb 2025 17:37:56 GMT</pubDate>
            <atom:updated>2025-02-09T17:46:12.014Z</atom:updated>
            <content:encoded><![CDATA[<p>Hey, guys! I’m here to talk about how to make a POST request to a RESTful Application Programming Interface (API using Azure Data Factory ( ADF). I decided to write this text because I was having issues doing a POST request through ADF at my job.<br> To contextualize : I’m not an experienced person using APIs. This is my first time using it and I won’t focus on explaining general concepts related to it . My only goal here is to explain how to do an individual event POST request using ADF directly. I had difficulties finding resources online that explained how to do a POST using ADF most of the materials available only explained how to do a GET request.</p><p>The endpoint and data used are not reals. I will be direct and objective.</p><p>To work with an API in ADF you must have an environment ready to use in Azure . Once you are in ADF environment , you need create a new Pipeline and add a “Web” activity . If the API you are using requires authorization to access, follow the steps outlined in Figure 1 below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/523/1*2Z_R6dH2OzvAauCycRiDIQ.png" /><figcaption>Figure 1: process to get a token from an API</figcaption></figure><p>In this case, I am conducting tests, but in real-world scenarios, it is not recommended to write your secret and ID in the request body. Instead, it is recommended to use another secure service, such as Azure Key Vault, for instance.</p><p>After debug, you will receive the token in the output (figure 2 and 3):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/310/1*6NRpr4dX77pucT12pPoZdQ.png" /><figcaption>Figure 2: checking the output return</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*2wnMecV2swPKcMn0KSyN7A.png" /><figcaption>Figure 3: Token returned</figcaption></figure><p>Now to store this token is necessary add another “Web” activity and in the Headers add a dynamic content (figure 4):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*11bGDxFBwgiTK1SNY2iwhw.png" /><figcaption>Figure 4: Dynamic content to store the authorization token</figcaption></figure><p>Note that there is other information included in the headers (figure 5). I found this information in the API documentation, just as I found the information I used in the request body. Everything is sourced from the documentation provided with the API:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/567/1*-9PZLr72uW-xXJrmYCd3Gg.png" /><figcaption>Figure 5: Default fields to fill to make a Post request</figcaption></figure><p>After filling all the necessary fields, you need to check the Advanced options and ensure that the “Disable async pattern” option is enabled (figure 6). This option allows the activity to wait for a JSON response from the API endpoint within a 1-minute timeframe, and the response must match the specified format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/953/1*ldSUvgfB-Mip-nwkbYjbGw.png" /><figcaption>Figure 6: Disable async pattern must be enabled</figcaption></figure><p>I was receiving an endpoint error message: “<em>Invoking endpoint failed with HttpStatusCode — ‘404 : NotFound’, message — ‘The requested endpoint(url) does not exist on the server. Please verify the request server and retry</em>. Error code 2108’”. What’s most incredible is that the event was being successfully submitted to my API, yet I continued to receive errors in the ADF.</p><p>After spending a lot of time troubleshooting with my colleague Arthur Messias, we discovered that it was just necessary to enable the option to disable the async pattern to receive the success response. Now it seems easy!</p><p>Well…It is just for today! Remember to check the API documentation, ADF documentation and test it on Postman first, if you have familiarity with the tool.</p><p>Soon I will return with a batch operation using API as a SINK. Thank you, everyone!</p><p>Useful video: <a href="https://www.youtube.com/watch?v=3vusPNv5t74&amp;t=5s">https://www.youtube.com/watch?v=3vusPNv5t74&amp;t=5s</a></p><p>My linkedin: <a href="https://www.linkedin.com/in/jaqueline-cella/">https://www.linkedin.com/in/jaqueline-cella/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1661ee3268e6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to resolve some errors in ODI 12C]]></title>
            <link>https://medium.com/@jaquelinecella2017/how-to-resolve-some-errors-in-odi-12c-31816b4517e0?source=rss-169136ac540f------2</link>
            <guid isPermaLink="false">https://medium.com/p/31816b4517e0</guid>
            <category><![CDATA[oracle-data-integrator]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[oracle-sql-developer]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[extract-transform-load]]></category>
            <dc:creator><![CDATA[Jaqueline Cella]]></dc:creator>
            <pubDate>Sat, 06 May 2023 14:55:41 GMT</pubDate>
            <atom:updated>2023-05-06T16:25:30.920Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*exVgTT8yL9fKpiPQ-dclgQ.png" /></figure><p>Hey, everyone. My name is Jaqueline Cella, and I’m a Data Engineer working at a Consultancy. In the past, I worked on a project that involved an ETL (Extract, Transform, Load) process in Oracle Data Integrator Studio version 12C (ODI 12C). I decided to write this article because I had difficulty finding specific information about errors in this tool. So, I thought, why not write an article about my experience? That’s why I’m here. Please note that I’ll only be discussing the errors I encountered and the solutions I used to solve them. Keep in mind that the same solution may not work for you, and I am not a specialist.</p><p>First of all, I would like to thank Bruno Guimarães for teaching me how to use ODI, Oracle SQL Developer, and for showing me simple solutions to facilitate the daily activities that I’m sharing here. Bruno, you are the inventor of ODI (hahahahaha)!</p><p>Secondly, in the environment where I’m working, the pipeline is practically ready. I just need to process and build new pipelines if necessary. I run the Load Plan which includes a step where a critique is automatically generated if something goes beyond the parameters defined by the client. I then resolve the errors and verify the results with the accounting team and a manager to ensure their accuracy. In this scenario, I am working with both Oracle SQL Developer and ODI 12C simultaneously.</p><p>Let’s go!</p><p>Oh, ODI! Sometimes you almost drive me crazy! Hours and hours spent trying to discover how to solve problems like “Missing Right Parenthesis”, which can actually have various causes, not just a missing parenthesis.</p><p>To make the errors more easily identifiable, I’ve organized them into different topics, as follows:</p><ol><li><strong>“ODI-17506: Variable has no value:’name_variable’”:</strong> Check if you are passing the correct parameter in the Load Plan. To do so, go to “Designer “, “Load Plans and Scenarios”, find the package from the Load Plan that you created, double-click to open, click on “Run”, and at this moment, check if the variable name is correct;</li><li>1. <strong>“ODI-1298: Serial task “SERIAL-EU-XXX_UNIT (20)” failed because child task “Merge rows-IKM SQL Merge-Load TABLE_NAME (30)” is in error.ODI-1228: Task Merge rows-IKM SQL Merge-Load TABLE_NAME fails on the target…”:</strong> This error occurs when the correct parameter is not set in the Load Plan, as mentioned in the topic above;</li><li>“<strong>ORA-30926: unable to get a stable set of rows in the source tables”:</strong> If you modify anything in the package, remember to regenerate the scenario every time. Right-click and select ‘Regenerate Scenario’;</li><li><strong>“Insufficient privileges”:</strong> You are trying to execute the flow in a wrong database. Please verify this information in the “Logical Schema”;</li><li><strong>“Literal does not match format string” or “not a valid month”:</strong> This was the worst for me! Actually, the second worst. The first was the error in the Load Plan. In this case, any date field has a bug. Try using these commands in Oracle SQL Developer:</li></ol><pre>SELECT DISTINCT LENGTH(COLUMN_NAME) FROM TABLE_NAME<br></pre><p>If you find any value other than 9, you need to handle/treat that field.</p><p>If everything appears to be correct, but the issue persists, you can try casting the field in the following way:</p><pre>SELECT TO_DATE(TO_CHAR(COLUMN_NAME, &#39;DD/MM/YYYY&#39;), &#39;DD/MM/YYYY&#39;) FROM TABLE_NAME</pre><p>This converts the date field to a string and then back to a date again. It may sound strange, but it has worked for me. Remember that if you type this code in an Expression in ODI, you need to remove the words ‘SELECT’ and ‘FROM TABLE_NAME’,</p><p>6 <strong>“From keyword not found where expected”:</strong> The first possibility is that the physical table name is different from the logical name used in the mapping. If you exclude and drag the same table, check whether the name in the physical schema is the same. Sometimes, ODI adds a “1” or another word to the name of the physical table. The second possibility is that you are typing a comment after calling the column in an expression, and this situation can result in a missing comma in the SELECT statement (remember that the Expression is a SELECT statement in ODI). If you need to insert a comment in an expression, first add the comment and then call the column;</p><p>7 <strong>“ORA-00937: not a single-group group function”:</strong> You are trying to perform a SUM operation outside the aggregate function in mapping. In this case, you need to follow SQL rules, using the aggregate function (e.g. SUM, AVG) within the mapping’s aggregation;</p><p>8 <strong>“01756. 00000 — “quoted string not properly terminated””:</strong> You are placing quotes in the wrong place. In this case, the error message is indicating the exact error it is seeing;</p><p>9 <strong>“A non-numerical character was found where a numeric was expected”:</strong> You are trying to insert a data type that is not a number, or there may be an issue with a variable (yet again!);</p><p><strong>10 “Error when calling generation delegate for component KM LKM Oracle to Oracle Pull(DB LINK):null”. </strong>I have corrected this error in the mapping by modifying the target to remain in the same logical schema as the source;</p><p>11 <strong>“ORA-02019: connection description for remote database not found”: </strong>In this case, ODI inserts the ‘@’ symbol before the name of the database. The solution is the same as in topic 10.</p><p>Extra tips:</p><p>· If you are pulling data from the client’s datalake, make sure it is in a format that you can manipulate later, such as with an expression. In my case, the date was in too many different formats (datetime, American format, Brazilian format, etc.). To solve this problem, as well as other issues with different fields, I imported all the fields as “Varchar” and then established a standard format for each one in the Expression before sending them to the Target;</p><p>· Talking about date fields, be careful with leap years (ano bissexto). Check if any February are setting with day 29 when the year is not leap. To correct this problem I use this query:</p><pre>SELECT<br>CASE <br>WHEN TO_CHAR(COLUMN_NAME,&#39;dd/mm/&#39;) = &#39;29/02/&#39; THEN TO_DATE(&#39;28/02/&#39; || TO_CHAR(COLUMN_NAME&#39;yyyy&#39;), &#39;dd/mm/yyyy&#39;)<br>WHEN TO_CHAR(COLUMN_NAME,&#39;dd/mm/&#39;) &lt;&gt; &#39;29/02/&#39; THEN TO_DATE(TO_CHAR(COLUMN_NAME, &#39;dd/mm/&#39;) || TO_CHAR(COLUMN_NAME,&#39;yyyy&#39;), &#39;dd/mm/yyyy&#39;)<br>ELSE COLUMN_NAME <br>END<br>FROM TABLE_NAME</pre><p>· If you need check a year from a date you can use the query below to find a year with fours digits, because ODI displays the year with two digits(in my environment):</p><pre>SELECT TO_CHAR(DATA_FIELD, &#39;YYYY&#39;) FROM TABLE_NAME</pre><p>· You can use TRIM(COLUNM_NAME) to eliminate blank spaces. Try to do this in an Expression, not in a FILTER, for example;</p><p>· If ODI sends you something like ‘COPY$1747_LOG’, you can perform a select statement to find the error:</p><pre>SELECT * FROM COPY$1747_LOG;</pre><p>· To import a new or modified table in Oracle into ODI, you need to perform a “Reverse Engineer” operation. To do this, go to “Designer”, then “Models”. Find your table, double-click it, select “Attributes”, and then click “Reverse Engineer”. Pay attention here! If this doesn’t work, go to the main folder, double-click “Reverse Engineer”, type the table name in the “Mask” field, and then go to “Selective Reverse Engineering”. Check the box next to “Objects to Reverse Engineer”, and your table will appear. Finally, click “Reverse Engineer”. Now the changes you made in Oracle SQL Developer will be reflected in ODI. To illustrate this better, I have included some images below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*7bDIRJda98bXRFu5xPcLqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*ltEaCkkoIB_aSpGeJHGlyA.png" /></figure><p>· Verify if the currency field is coming in the standard format in ODI. In Brazil, we use a comma to separate decimal places, and some clients use a dot to separate thousands while others don’t. I needed to use the “replace” function to correct the format before inserting it into ODI. I brought this field in varchar format and then converted it to a number as follows:</p><pre>SELECT (TO_NUMBER(REPLACE(REPLACE(TABLE_NAME,&#39;.&#39;,&#39;&#39;),&#39;,&#39;,&#39;.&#39;))) FROM TABLE_NAME<br>#Remove SELECT and FROM TABLE_NAME in the Expression. </pre><p>BEFORE: 1.000,00(brazilian standart).</p><p>AFTER:1000.00 (ODI standard).</p><p>I know that finding solutions in ODI12c can be challenging. Sometimes, it’s through trial and error that we can find a solution, or perhaps you can grab a colleague for a coffee and brainstorm the problem. Even if they’re not an expert in ODI12c, having a conversation and drawing a possible solution on the wall, finding solutions from YouTube or any other source can be helpful. The goal is to find the solution!</p><p><strong>My linkedin:</strong> <a href="https://www.linkedin.com/in/jaqueline-cella/">https://www.linkedin.com/in/jaqueline-cella/</a></p><p><strong>My email:</strong><a href="/service/mailto:jaquelinecella@hotmail.com">jaquelinecella@hotmail.com</a></p><p>Bruno Guimarães Linkedin: <a href="https://www.linkedin.com/in/brunoarrudaguimaraes/">https://www.linkedin.com/in/brunoarrudaguimaraes/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=31816b4517e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PySpark usando Jupyter no Ubuntu]]></title>
            <link>https://medium.com/@jaquelinecella2017/pyspark-usando-jupyter-no-ubuntu-7edcb0cf932f?source=rss-169136ac540f------2</link>
            <guid isPermaLink="false">https://medium.com/p/7edcb0cf932f</guid>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[pyspark]]></category>
            <dc:creator><![CDATA[Jaqueline Cella]]></dc:creator>
            <pubDate>Sat, 10 Sep 2022 15:56:34 GMT</pubDate>
            <atom:updated>2022-09-11T15:02:03.426Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/725/1*RKPRgabXCVgglc2Yn8VmIw.jpeg" /></figure><p>A ideia deste artigo surgiu a partir da dificuldade em operar o PySpark no Windows no Bootcamp que eu estava fazendo. No momento da execução do comando “write” aconteciam erros de “py4jjavaerror”, mesmo seguindo o passo a passo informado pelos instrutores como instalar pacote de Spark, adicionar arquivo winutils na pasta bin, etc. Futuramente encontrei um comentário no Stackoverflow de que a versão do meu Spark estaria em conflito com o Windows, porém não cheguei testar a solução, visto que eu já estava com meu ambiente operando via Ubuntu 20.04. Eu desinstalei o WSL que eu havia instalado anteriormente, pois também estava com algum tipo de bug. Após a nova instalação, o Ubuntu funcionou perfeitamente.</p><p>Bom, se você chegou até aqui é porque está com o mesmo problema. O ambiente de trabalho que irei apresentar objetiva operar PySpark via Jupyter Notebook localmente. Lembre-se que o Spark pode ser operado localmente e na nuvem. Deixarei alguns links úteis no final.</p><p>O arquivo que utilizei para realizar as práticas continha aproximadamente 8.200.000 linhas (arquivo IMDB). Em práticas posteriores usei o GCP (Google Cloud Plataform) para operar o Spark na nuvem, porém este não é o objetivo deste artigo.</p><p>Para começar você deve ter o Ubuntu instalado em sua máquina. Para mim o Ubuntu baixou automaticamente junto ao WSL.</p><p>Para facilitar irei separar em tópicos o passo a passo para criar seu ambiente virtual e utilizar PySpark:</p><p>1. Abra seu Ubuntu e dê um comando “ls” para verificar se você está no diretório home;</p><p>2. Se não estiver na home e estiver na raiz digite o comando “cd home”. Se não estiver na raiz deve ir retornando até chegar nela com o comando “cd ..”;</p><p>3. Na pasta home verifique se você já tem um usuário, se tiver acesse ele com “cd nome_usuario”. Se não tiver crie um usuário com o “useradd -m nome_usuario” e senha com “passwd nome_usuario”;</p><p>4. No diretório do seu usuário é necessário criar uma pasta que vou chamar de jupyter. Digite “mkdir jupyter”. Sua pasta foi criada, pode acessá-la com “cd jupyter”;</p><p>5. Dentro da pasta jupyter iremos começar as instalações dos pacotes necessários;</p><p>6. Digite comando “sudo apt update” e digite a senha de root que você cadastrou quando instalou o Ubuntu. Este comando atualiza todos os pacotes;</p><p>7. Digite “sudo apt install python3” e “sudo apt install python3-pip”, um deles instala o Python e o outro o pacote Pip. Vá observando as mensagens que retornam e siga as instruções delas caso algum erro ocorra;</p><p>8. Digite “pip install virtualenv” para instalar um ambiente virtual. E por que trabalhar com ambiente virtual? Porque um ambiente virtual permite isolar as aplicações. Posso trabalhar com vários clientes e ter um ambiente virtual para cada um deles, pois cada um pode ter uma necessidade diferente;</p><p>9. Se você der o comando “pip list” verá os pacotes que instalou, inclusive o “virtualenv”;</p><p>10. Agora digite “sudo virtualenv env_jupyter”. Nesta fase é criado o ambiente virtual chamado env_jupyter;</p><p>11. Para acessar este ambiente digite “source env_jupyter/bin/activate” e verá que antes do seu nome de usuário irá aparecer (env_jupyter). Toda vez que precisar acessar este ambiente deverá usar este comando, e para sair dele deve digitar “deactivate”;</p><p>12. Pronto, estamos dentro do ambiente virtual. Agora digite os comandos que seguem para instalar o PySpark e Jupyter: “sudo pip install pyspark &amp;&amp; pip install notebook”. Observe que estamos instalando o PySpark e o Jupyter Notebook somente dentro deste ambiente virtual;</p><p>13. A princípio finalizamos o ambiente e ele está pronto para operar. Digite o comando “jupyter notebook”, copie o link que aparece e cole no seu navegador e já pode começar operar;</p><p>14. Primeira dica extra: se der algum erro de permissão dentro do Jupyter tente digitar o comando “sudo jupyter notebook –allow-root” ao invés do comando do item 13;</p><p>15. Segunda dica extra: se solicitar a instalação do Java você deve instalar o pacote JDK e o JRE e lembre-se de adicionar a PATH;</p><p>16. Terceira dica extra: Se você precisar buscar os arquivos para trabalhar no Jupyter e estes arquivos estiverem no Windows, pode voltar para sua pasta raiz, acessar o diretório “mnt/c/Users/seu_nome_usuario_no_windows/sua_pasta _onde_estão_os_arquivos”; para copiar estes arquivos use o comando “sudo cp nome_arquivo ~/jupyter/env_jupyter”. Vá usando o “cd nome_pasta” para ir acessando cada pasta se tiver dificuldades.</p><p>A etapa de preparação do ambiente para trabalhar com Ubuntu pode parecer difícil de ser realizada agora, mas depois você verá que é bem mais fácil do que trabalhar com Windows, visto que não é necessário baixar pacote de Spark, Anaconda etc. No Windows é bem mais trabalhoso, e eu pude fazer está comparação, pois inicialmente usei o Windows para acompanhar as aulas, depois com mais tempo aprendi a usar o Ubuntu.</p><p>Espero realmente que este artigo tenha sido útil, pois para mim foi uma nova etapa como Engenheira de Dados. Eu tenho aprendido Linux desta forma, praticando no Ubuntu. É claro, eu não poderia encerrar este texto sem mencionar que foi o Douglas Pires que me ensinou tudo isso, e também foi ele que me incentivou a dar um “start” nos estudos em Linux.</p><p><strong>Links úteis</strong></p><p>· Como instalar WSL e Ubuntu: <a href="https://pureinfotech.com/install-windows-subsystem-linux-2-windows-10/">clique Aqui</a>. Nesta mesma página ele informa como desinstalar o WSL e suas dependências também, se seu WSL estiver com alguma instabilidade;</p><p>· Como instalar Java e adicionar a PATH: <a href="https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/How-do-I-install-Java-on-Ubuntu">clique Aqui.</a> Instalei usando o apt;</p><p>· Se quiser arquivos para praticar PySpark pode usar estes: <a href="https://www.imdb.com/interfaces/">clique Aqui.</a> Na prática eu usei o title_basics e o title_ratings;</p><p>· Documentação oficial PySpark : <a href="https://spark.apache.org/docs/latest/api/python/">clique Aqui</a>;</p><p>· Linkedin do Douglas: <a href="https://www.linkedin.com/in/douglaspiresm/">clique Aqui</a>;</p><p>· Meu Linkedin: <a href="https://www.linkedin.com/in/jaqueline-cella/">clique Aqui</a>;</p><p>· Meus projetos no Github:<a href="https://github.com/jaquelinecella"> clique Aqui</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7edcb0cf932f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>