Member since
05-20-2021
11
Posts
1
Kudos Received
0
Solutions
07-08-2022
11:20 PM
I am trying to update parameter context within Nifi which is allocated to several process groups. We would like to update the value of one parameter within the parameter context. Please provide some sample payload to do to update parameter contexts either PUT or POST method
... View more
Labels:
- Labels:
-
Apache NiFi
07-05-2022
10:31 AM
@adhishankarit @Could you please help to share some sample flow to handle using distributed cache for success and failure scenarios. Thanks
... View more
11-03-2021
07:31 AM
Thanks for the response. Will try with upgraded version
... View more
10-30-2021
04:12 AM
I got an error invalid conversion requested in put database record processor while reading the data from file and loading into table. I observed one of the table field datatype created as char. When I modify it to varchar datatype I can able to load data using PutDatabaseRecord processor. Nifi version I am using is 1.13.2 . Kindly advise me how to load char datatype values via nifi without altering table.
... View more
Labels:
- Labels:
-
Apache NiFi
09-04-2021
05:31 AM
I am new to Nifi.My requirement is to trigger Nifi process group using external scheduling tool called Control M. I tried using shell script to start and.stop the process group using curl command. Process group will fetch data from text file and writes into a database but unable to determine when the process group gets completed because I could see status like Started, Running and Stopped but not Completed state. Struck with this issue and need your valuable inputs on this of how to determine all the records got inserted into database placed inside process group.
... View more
Labels:
- Labels:
-
Apache NiFi
07-06-2021
05:29 AM
I am trying to format the date field which contains spaces in replace text processor from a csv file. Got the error as it is unable to parse the date column which is spaces for first record. Please let me know how to handle this Error message: Replace text failed to process session due to Cannot parse attribute value as a date; date format ddMMyyyy; attribute value: Input csv: 1, , 123 2,02091997,234 Search value : (.{1}),(.{8}), (.{3}) Replacement value : $1, ${'$2':toDate("ddMMyyyy") :format("yyyy-MM-dd HH:mm:ss.SSS") }, $3 Replacement strategy : Regex Replace Evaluation mode : Entire Text
... View more
Labels:
- Labels:
-
Apache NiFi
05-22-2021
12:03 PM
I am trying to load data from the below input to db. My input is as shown below i, John, $100 ii, Kevin, $150 iii, Steve, $200 Created getfile, ReplaceAttributes, Extracttext, Route to attributes, putsql flow I have managed to parse fixed width file records and replaced with comma delimited values. ExtractText processor with Enable Multiline Mode=true, Enable DOTALL Mode=true. After execution I see below in provenance event in attributes tab line i line.0 John line.1 $100 Please advise how to load other two records which was not getting displayed in the attributes.
... View more
Labels:
- Labels:
-
Apache NiFi
05-20-2021
11:30 PM
I am using apache nifi to read csv file data and store the result in an Oracle Database. The dataflow i used in nifi is as follows: GetFile ConvertRecord ( here just to convert csv to Json) ConvertJsonToSQL (just to convert Json to SQL INSERT query) UpdateAttribute (which formats CreateDate using the following format ${sql.args.5.value:toDate("dd-MMM-yy"):format("dd-MMM-yy")} PutSQL (to execute the insert statement created from previous flow) Step 5 is where i encounter the error below and i've tried for a couple of resources online and it didn't help. I need some advice on how to properly configure and insert a data on a date column. ERROR LOG due to java.sql.SQLDataException: The value of the sql.args.5.value is '20-May-21', which cannot be converted to a timestamp; routing to failure: java.sql.SQLDataException: The value of the sql.args.5.value is '20-May-21', which cannot be converted to a timestamp DB Schema CreateDate DATE UpdateAttribute Outgoing Modified Data 20-May-21 Previous data 20-MAY-21 sql.args.39.type 93 sql.args.39.value 20-May-21 I tried removing update attribute and directly change the sql statement property using insert statement. That also didn't work. Encountered the same exception mentioned above. Please suggest with the solution Insert into table(CreateDate,...) Values ($CreateDate:toDate("dd-MMM-yy"):format("dd-MMM-yy")
... View more
Labels:
- Labels:
-
Apache NiFi
05-20-2021
08:05 AM
I am trying to load csv file into oracle db using GetFile and PutDatabaseRecord processors using apache nifi
Able to read the csv file but unable to insert because of below error in the putdatabaserecord
Invalid conversion requested. Please help to resolve this issue
... View more
Labels:
- Labels:
-
Apache NiFi