Skip to main content
Solved

adding/appending from csv value to excel value

  • May 6, 2024
  • 2 replies
  • 87 views

fbastian73
Contributor
Forum|alt.badge.img+12

hello experts,
I am trying something that to some of you may be quite simple so I hope one of you is able to help me out.
All i am trying to do is to append/add the value cnt from the inlinequerier to the existing excel file.
I am trying to write the cnt value into the count_of_errors value where the incoming feeder name is the same as the destination one (in excel file).

thank you,

fb

Best answer by jkr_wrk

pre-note: I would recommend using FeatureReaders and FeatureWriters instead of Readers and Writers because things will be a bit more intuitive.

You say you want to add data to an excisting Excel-file, but you are reading a CSV file and then using an InlineQuerier to add some other source. This looked a bit confusing to me at first, but I think the InlineQuerier is reading the Excel?

 

I think I would do the following:

Creator → FeatureReader (Excel) + FeautureReader (CSV) → FeatureMerger → AttributeValueMapper → FeatureWriter (Excel)

I usualy don't like to ‘update’ the same Excel, but write a new Excel with the same data, but it can be done using the xlsx_row_id to write the data to the same row as it came from.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

jkr_wrk
Influencer
Forum|alt.badge.img+35
  • Best Answer
  • May 6, 2024

pre-note: I would recommend using FeatureReaders and FeatureWriters instead of Readers and Writers because things will be a bit more intuitive.

You say you want to add data to an excisting Excel-file, but you are reading a CSV file and then using an InlineQuerier to add some other source. This looked a bit confusing to me at first, but I think the InlineQuerier is reading the Excel?

 

I think I would do the following:

Creator → FeatureReader (Excel) + FeautureReader (CSV) → FeatureMerger → AttributeValueMapper → FeatureWriter (Excel)

I usualy don't like to ‘update’ the same Excel, but write a new Excel with the same data, but it can be done using the xlsx_row_id to write the data to the same row as it came from.


fbastian73
Contributor
Forum|alt.badge.img+12
  • Author
  • Contributor
  • June 6, 2024

thanks for the recommendations @jkr_wrk.
I used some of the ideas you gave me to work out what I was trying to achieve.

cheers.

fb