Issue with "Write Cell" Function (Google Sheet)

Hello everyone,

I’m reaching out because I’m facing an issue with an RPA workflow.
I’m currently following the course “Get Started with UiPath Studio Web”, and I’m working on the first exercise: “Build your first automation”.

In this exercise, I need to interact with both a web page and a Google Spreadsheet.
The goal is to:

  1. Extract data from the spreadsheet
  2. Populate the relevant fields on the web page
  3. Generate a Unicorn name
  4. Update each Unicorn name back in the spreadsheet (For Each Row process)

So far, I’ve managed to generate the Unicorn name using the spreadsheet inputs, and I can retrieve the generated name successfully.
However, I’m stuck at the final step: updating the Unicorn name in the spreadsheet.

Here’s the issue:
When I run the automation, it updates only the A1 cell in the spreadsheet with the last Unicorn name, even though the Write Cell activity is included inside the For Each Row block. It seems as if the Write Cell is outside of the loop.

From what I can see, everything in my workflow looks correct, so I’m wondering if this could be an issue related to Google Cloud integration or something I’m missing in the loop logic.

Any ideas ? :slight_smile:

Thank you !

With screens (process and final Spreadsheet)

Check the CurrentRow.UnicornName cell like what it returns. I think it is returning the static cell value in which your process is continuously overwritting the data.

Cheers

  1. Read the spreadsheet → Read Range → store in DataTable(e.g., dtUnicorns).
  2. For Each Row in dtUnicorns:
  • Generate the Unicorn name.
  • Update the DataTable column:

row(“UnicornName”) = generatedName

  1. After the loop, use Write Range to update the spreadsheet (do Not use Write Cell inside the loop).

@Simon_DA_ROS

you need tp pass the address not the column alone


cheers

1 Like

I’m also stuck with the same step, the same issue with Microsoft 365. Do you have any updates?

Hi @Anil_G, thank you !! It’s working, it has to be the address :slight_smile:

1 Like

@Simon_DA_ROS

Glad it helped

Happy Automation

cheers

What’s the solution if I’m using Microsoft 365 workbook?

1 Like

@Indhu_C_N

Even that has a similar attribute…just use currentrow. and it would pop it

cheers