Good afternoon all,
Running into a snag with a flow that I'm working on. I'm trying to automate checking off the status of an excel spreadsheet using a form as the trigger and input.
It should work as follows:
A student inputs the name of a room being worked on.
The form submission triggers the flow.
The flow gets the response details.
The flow gets checks the excel document column rooms for the key value of room name.
If the name is present, the excel sheet is updated to reflect that the room has been checked.
If not, then an email gets sent to me with an invalid room name entry.
When the flow checks to see if the name is in the list, it is getting a row not found error, even though I can visually confirm that the room is in the list.
An example error is as follows:
No row was found with Id 'MB 102'.
I've also tried sanitizing the input with the HTML to text conversion tool to ensure its not a formatting mismatch.
Below is the excel file and the flow structure.
Attached is the flow and the excel spreadsheet in question if you wish to tinker on your own, note this flow does not send the email as mentioned above.
Any assistance that could be provided would be greatly appreciated.
Solved! Go to Solution.
I was able to find a solution! The variables here in the screenshot were more just to check what data was being handed down but it does work now! Thanks to everyone for their input!
Just as a first stab - have you checked for any weird extra spaces or tabs or anything in both the cell and in Power Automate?
I answer questions on the forum for 2-3 hours every Thursday!
That was my first thought. I checked all of them by pasting into notepad to compare and they were all the same.
Thanks for checking though!
After running your flow, can you click on Show raw outputs for Html to text and check that there isn't a new line character \n or similar at the end of the value. It might not show up when you paste into Notepad but should show any extra characters in the output. If you do see a new line character you would need to remove it using something like replace.
Thanks for checking!
I can confirm there are no new character lines at the end of my input. Below is the raw output for another room:
Option 1 was what I was previously attempting, but no success.
Option 2 does seem to pull the information out of excel. I was able to then store this information in a string variable to get my condition to work where If "Row container" contains "Room name" then update the excel row. (I created the variable "room name" to store the room name after running trim on the contents, thus ensuring no new line characters or spaces.) The resulting expression is true, but when I go to update the row with the same variable of room name, it says the row does not exist. I feel like I am missing something obvious. 🤦
According to your screenshot, do you want to see if the filter result after List rows present in a table is empty?
Update the row if not empty.
I have made a test for your reference:
I will check your flow and I will give you the better solution tomorrow. Today I need to go office
Each row currently contains the text "No". I would like to update it to contain the test "Yes"
Hopefully this helps clarify!
Keep up to date with current events and community announcements in the Power Automate community.
A great place where you can stay up to date with community calls and interact with the speakers.
Check out the latest Community Blog from the community!