Error HRESULT E_FAIL has been returned from a call to a COM component in Get attribute activity

I am getting the error “Error HRESULT E_FAIL has been returned from a call to a COM component” in Get attribute activity whose input is the result of a Find children activity. Result of find children activity is coming correct. I had tried multiple solutions displayed on below forums but nothing worked for me

I tried to use the suggestion of using Assign instead instead of get attribute suggested on this page Parallel for each with UiPath.Core.UiElement - #3 by obeliksz but I get the error of ‘an expression tree may not contain a call or invocation that uses optional arguments’. Can you please help me here?

This got resolved by changing the scope of item variable in Find children activity from for each loop to whole sequence and changing Type argument property of For each activity to UiElement.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.