Forum Discussion
Hi tlikarish,
I have tried the approach you have suggested, since as you see in the attached snapshot the record spans over multiple line and there is only CR in one of the columns in between, I have changed the expression to replace -$content.toString().replace(‘\r’, ’ '), by this the records did not get loaded properly, the records was still not considered as single record.
Can you let us know if we need to do something else
Thanks
Regards
smitha csvparser.zip (25.5 KB)
Are you seeing an error message? Since you’re using quotes and the column is quoted, the CSV Parser should treat the carriage return as part of the column’s value and not as a row delimiter. Is it possible the quoting is off?
- bojanvelevski3 years agoValued Contributor
Hi there @Senthilnaga91.
The Snaplogic Snaps will be suitable for this use case. You have all CRUD operations at your disposal. Let me know if you still need help on this.
Regards,
Bojan- Senthilnaga913 years agoNew Contributor III
I have provided more details in my previous reply. Please refer.
- Abhishek_Soni373 years agoContributor
As @bojanvelevski mentioned you can use the Metadata snap pack to achieve it,
Solution Approach:
- Create all tasks that you want to run dynamically as Scheduled.
- Read data from the source table with info on when to run a pipeline.
- Read the specific Task with the help of the Metadata snap pack.
- Assign new values and update the Task with the Metadata snap pack.
Set values below in the pipeline parameter:
source_proj: orgName/ProjectPath
target_proj: orgName/ProjectPath
taskToUpdate: Name of the taskSample pipeline:
UpdateTaskInfo.slp (3.7 KB)Let us know if this worked.
Cheers 🙂
- PratapKr_Gayen3 years agoNew Contributor II
I think your requirement is to trigger the a pipeline when ever there is a change in record in source table.
For that you have to create pipeline to save the current count in SLDB and compare the count of record in current execution. This pipeline to compare and check the record count mismatch need to be schedule 15 or 30 min and if there is count mismatch, call the pipeline to load data to Sales table.- Senthilnaga913 years agoNew Contributor III
No, let me be more precise. Our client has given a schedule to run what pipeline on which day and time (nnot a fixed schedule). It’s maintained in a RDBMS table. So, to trigger a pipeline, the process has to look into the scheduling table and trigger the pipleline on a particular day and time accordingly.
Example: There is a record in scheduling table,
PipeName,Date,Time
LoadSalesTable,06-27-2023,05:00 PM CST
LoadEmployeeTable,06-27-2023,04:00 PM CSTSo, my question is how to automate the process to trigger the pipeline ‘LoadSalesTable’ on 06-27-2023,05:00 PM CST ?
(PS: The schedule for ‘LoadSalesTable’ might change in the future and the process should accommodate without manual intervention).
Related Content
- 2 years ago
- 5 months ago
- 3 months ago
- 4 years ago