Member since
07-17-2024
4
Posts
0
Kudos Received
0
Solutions
08-16-2024
07:48 AM
Good morning everyone, I need an idea to solve a problem. I'm searching for data in a source database and I need to do the incremental and differential and then save it in a table that is in another database. However, at first I carried out tests (image below) transferring data to tables that are in the same database. In this way, everything went well. However, now I want to do it between different banks. Would you have any suggestions? In the UpdateAttribute processor I do a merge. and in ExecuteSQL I execute ${sql.merge.query} @SAMSAL, @bbahamondes @haridjh Hi! Do you have any insights here? Thanks!
... View more
Labels:
- Labels:
-
Apache NiFi
08-09-2024
12:33 PM
I did as suggested by colleague @SAMSAL. I saved column by column, until I discovered that I had corrupted data. I had a data where the year was like "1111". As I had little experience, it was difficult to spot possible errors. Thank you everyone, especially my colleague @dianaDianaTorres
... View more
08-05-2024
10:00 AM
So, my problem now is that I can't insert it into my database using the PutDatabaseRecord processor. It is reporting this error: "13:42:05 BRT ERROR PutDatabaseRecord[id=fe4d0a37-0190-1000-7115-2eb52a682eef] Failed to put Records to database for FlowFile[filename=788b7747-61ed-4eb8-bbdc-7a26b0521352]. Routing to failure: java.sql.BatchUpdateException: The conversion of a datetime2 data type to a datetime data type resulted in an out-of-range value. ". My data comes as a string (in this format: "QTDEMBALAGEM" : "3", "VALIDITY DATE" : "2023-01-01 00:00:00.0", "DTAFABRICACAO" : "2020-09-23 00:00:00.0"). Before inserting, my data goes through the UpdateRecord processor, where the obligation is to convert it to datetime. I use these commands to do this conversion: (toDate(/DTAFABRICACAO, 'yyyy-MM-dd HH:mm:ss.S')) and (toDate(/DTAVALIDADE, 'yyyy-MM-dd HH:mm:ss. S')). Unfortunately I don't know how to avoid this error and be able to insert it into the database. Help me NiFi experts @MattWho @SAMSAL @joseomjr
... View more
07-31-2024
01:30 PM
how are you? I need assistance with converting a string to an integer or numeric value using Apache NiFi’s UpdateRecord processor. I’ve tried using toNumber and toInt, but neither worked. Can you provide guidance on how to achieve this conversion? tHANK
... View more
Labels:
- Labels:
-
Apache NiFi