Member since
05-30-2023
45
Posts
4
Kudos Received
0
Solutions
10-02-2023
09:19 AM
@araujo I am trying to implement your suggested way. My json is : { "Id" : "some int", "TenantId" : "some double value" } and I am using chain jolt transform method as: [ { "operation": "shift", "spec": { "*": { "@(1,Id)": "[&1].Id", "@(1,TenantId)": "[&1].TenantId" } } }] However, I am getting a error as: Can you tell where I am going wrong? Thanks.
... View more
08-31-2023
08:17 AM
@SAMSAL, hey I know I accepted the solution and it did work for when I had 1 user details to fetch and store it's values to the processor's attributes. I wanted to ask if it is possible to store multiple values to a single attribute of a processor since I now have many users' details to store. Is this possible otherwise I would have to change the logic? Thanks.
... View more
08-30-2023
02:57 AM
1 Kudo
Yes, I ended up changing my ExecuteScript in a way that all column's values are now attributes of my flowFile. Next, I have added PutSql processor and inserting data using ${attributename}. Thanks @SAMSAL for responding.
... View more
08-29-2023
01:30 PM
Thanks @SAMSAL for responding. I will explain what I am trying to accomplish. The ExecuteStreamCommand gives me below results: and I want to use displayName and mail key's values from this result and store it into the database. My current workflow is based on the flow that I will store these two key's value as a attribute and use it in the subsequent processors. However, using AttributestoJson aint also working for me. Can you suggest any other better appraoach to ingest these two values in my database? I have other columns' value to ingest that as well so may be ExecuteSQLCommand processor would be a better choice to use.
... View more
08-29-2023
03:20 AM
I am executing python script in ExecuteStreamCommand and my code last line dumps the json key values. My goal is to read those key values into PutDatabaseRecord processor and insert the values in my database. However, I am unable to read content of the flow file of ExecuteStream. I have used ConvertAvrotoJson but it is showing output as "not a avro data file". Is there any workarounf of it? Thanks.
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
08-28-2023
07:50 AM
Thanks for the reply. I did it in the same way you have mentioned (I am importing Selenium module and from this module, Service, WebDriverWait and EC components are imported) but late in the code execution, my scripts gives an error "global name Service is not defined". Any idea whats causing the issue?
... View more
08-28-2023
07:07 AM
@joseomjr I am trying to replicate your suggested method, please answer did you include the import command after sys.path.append command?
... View more
08-17-2023
04:49 AM
1 Kudo
Thanks. It was an issue with the connection string. It was pointing to another database while my processor was inserting into another database.
... View more
08-13-2023
07:20 AM
Should I be using "use statement" in my sql select query?
... View more
08-13-2023
03:48 AM
Hi, My task is to move data from my locally installed SQL server (16.0) to Azure SQL (12.0) hosted on my Azure subscription. So far, I have used ExecuteSQL processor to run my select query from SQL Server and it returns me the rows successfully. I have created a Database Polling Connection Service which connect to my SQL Server. After fetching the rows, I am using PutDatabaseRecord processor to insert the fetched rows into Azure SQL but its showing me error that "use statement is not supported to switch between databases". Note that the Database Polling Connection Service is different for PutDatabaseRecord where I have mentioned connection string of my Azure SQL. Please if anyone can give feedback on this issue and suggest any workaround.
... View more
Labels:
- Labels:
-
Apache NiFi
-
NiFi Registry
- « Previous
-
- 1
- 2
- Next »