Need Assistance Handling Empty Fields in UIPath XML Processing

Hey UiPath Community,

I hope you’re all doing well! I’m currently working on a project where I’m reading XML data and extracting values for fields using their XPaths in UiPath. However, I’ve encountered a scenario where I need to handle a specific condition.

The challenge is to identify certain fields in the UI, and if they are empty, treat it as a data entry scenario and fill the values from the XML. I’ve been thinking of using the “If Else” activity to check the XPath for these fields and decide whether to proceed with data entry or do nothing.

I would really appreciate it if someone could guide me through the steps to implement this approach. Screenshots would be immensely helpful in understanding the process better.

If anyone has experience dealing with a similar scenario or has suggestions on a better approach, I’d be grateful for your insights!

Thanks in advance for your help!

Just share with us some details on the UI

In general, we can check for:

  • loop over all fields
  • when it is empty, fill it with the value from the XML

Hi ,

You can check the fields using get text activity , if output text is empty then you can fill the fields using xml values