I’m having a little problem. When trying to input a variable to a “Select Item” activity on my automation, it directly changes to “null”. What’s going on?

Can you try to delete and use activity again and try opening the dropdown items and indicate id in select item activity.
if still is not working try with type into activity
Hi @martin_sola_ferreiro
Welcome to UiPath,
Updating to the latest stable version of UiPath.UIAutomation.Activities usually resolves this. Pls try to upgrade..
If helpful, mark as solution tick. Happy automation with UiPath
How can I update that?
Are you using Studio Web, StudioX or Studio?
If you are using Studio Web then there is already upgraded try to reImplement. Might be solve the error.
Hello @martin_sola_ferreiro
Have you tried clearing out the variable (null) and using the Expression Editor to add the desired variable?
Regards
Soren
It still doesn’t work
Dear @martin_sola_ferreiro,
This seems to be bug in UiPath select item activity.
The solution I am gonna propose is an hard way.
Step1: Open you studio web project in UiPath desktop studio.
Step2: Close studio web & try to edit the code in desktop studio. Just add simple log message activity.
Step3: Open the project folder on your machine & find .xaml where the select item activity is located. Now open the .xaml in Notepad++
Find below line in .xaml :
For me its look like below:
<uix:NSelectItem DisplayName="Select Item 'Afghanistan'" HealingAgentBehavior="SameAsCard" sap:VirtualizedContainerService.HintSize="450,49" sap2010:WorkflowViewState.IdRef="NSelectItem_1" Item="[Nothing]" ScopeIdentifier="221140d5-79b5-4914-bcd5-db61e40c3b8b" Version="V5">
Replace Nothing text with your variable name as follows:
Item="[CountryName]"
Step4: Save the .xaml file and open the project in desktop studio. Once project opened in desktop studio. Sync it to cloud & open studio web using below option:
Whola!
you have your variable present in activity in Studio Web.
Kindly value my efforts by marking as solution ![]()
Br,
NikZ
@loginerror, Could you please check if this is an bug or not.
Br,
NikZ
Well, I solved that problem, but I have another one. To be honest, I’m following a course from the academy about Studio Web and I’m on an activity about making an automation to write down a generated “unicorn name” on a spreadsheet and send the spreadsheet by email. The problem is that said “unicorn name” is written down on the wrong cell: it should be on the corresponding row on the proper column but it’s on the A1 cell, overwriting the “name” header, as shown in the attached image. Why is it happening?

Dear Marthin,
Glad to head that your issue is resolved. Please mark this thread as solution.
Additionally, for your newly reported issue, please check your wirte cell activity. Also let me know which activity you are using to write into excel cell.
Br,
NikZ
@martin_sola_ferreiro have you solved it using the method explained by @Nikhil_Zambare1 or a different one?
Another workaround for this is to use the type into activity instead of the select item activity. But yeah this seems like a Bug with select item activity only.
Dear @martin_sola_ferreiro,
From provided screenshot, it clearly visible that you have wrongly mentioned column name in the write cell activity.
Your column name is: Unicorn Name not an Unicorn_Name
There is no underscore present in the column name, but you have used underscore.
Use correct column name.
Don’t forget to mark as solution ![]()
Br,
NikZ
Clearly using Studio Web as can be seen in the Screenshots.
How did u solve that? I’m facing the same issue. Have you solved it using the method explained by @Nikhil_Zambare1 or a different one?
Dear @brunoclim ,
You can just try out the method I explained.
Its tested. If you doubt, you can just create test project & test yourself.
Br,
NikZ



