Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 90UCCsFjedvCGvXaUyZHWp
Power Automate - Power Automate Desktop
Suggested answer

Failed extract the text of the selected item in a combobox from a java application

Like (1) ShareShare
ReportReport
Posted on 1 Jan 2025 21:17:30 by 10
I'm automating a process that starts on a website and when I click a link it opens a Java iframe on the desktop. This is the window that opens:
 
 
I can interact with the interface by getting the data from the text fields, clicking buttons, etc. But I can't get the text of the selected item in a combobox.
 
If I try to extract the Name attribute from the combobox, I can extract it, but if I want to extract the Own text I get the following error:
 
Object reference not set to an instance of an object.: Microsoft.Flow.RPA.Desktop.Modules.SDK.Extended.Exceptions.InternalActionException: Error in extraction (could not be extracted) System.NullReferenceException: Object reference not set to an instance of an object.
 
What should I do?
 
 
Categories:
  • CU09081859-0 Profile Picture
    10 on 02 Jan 2025 at 17:25:16
    Failed extract the text of the selected item in a combobox from a java application
    It's very strange, I can do any action on the element, like click, select item from list and get attribute data and it lets me get any attribute except text :S
  • CU09081859-0 Profile Picture
    10 on 02 Jan 2025 at 07:48:06
    Failed extract the text of the selected item in a combobox from a java application
    Hi @CFernandes​​​​​​​!

    I had already read that link and as for limitations in combobox it is only limited to click activities in simulation mode, but I do not see any limitation in the Get details of a UI element in window activity.

    As I said, the element recognizes it since I can select an option from the combobox or obtain its name attribute. What I cannot do is get the Own text since it gives me the error I mentioned (Object reference not set to an instance of an object).

    When you tell me to get the data from the source, it is not a solution for me since it is a third-party application and I do not have access to the direct query to the database.

    Out of curiosity I have tried with another RPA (uipath) and the text can be obtained without difficulty, so I understand that the element has no restrictions in terms of obtaining the text from the combobox.

    There should be some way to get the text. What am I missing?
  • Suggested answer
    CFernandes Profile Picture
    8,283 Most Valuable Professional on 01 Jan 2025 at 23:12:50
    Failed extract the text of the selected item in a combobox from a java application
     
     
    See if you are hitting one? You might want to query the Data-Source(SQL, etc) and then fetch the data directly from DataSource. That should be an easier solution. 
     
    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!
     
    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 4 Super User 2025 Season 1

#2
KO-05050229-0 Profile Picture

KO-05050229-0 2

#2
stampcoin Profile Picture

stampcoin 2

Overall leaderboard