Library Publish: Failed to emit module

When attempting to Publish a library, I am getting the following error logs from Studio:

18:23:25.5837 => [ERROR] [UiPath.Studio.App.Logging.OutputLogger] [42] The assembly compilation returned the following errors:
 * Failed to emit module 'lib_name'.
18:23:25.5843 => [ERROR] [UiPath.Studio.exe] [42] The assembly compilation returned the following errors:
 * Failed to emit module 'lib_name'.

During troubleshooting I found that if I remove the “For Each Ui Element” activity(s) being used, then Publish would work again.

Dependencies:
image

Studio Version: 2020.10.7

Hi,

UiAutomation 22.10.2 requires Studio 21.10 or higher as the following.

So I think you need to downgrade UiAutomation package OR upgrade your Studio to 21.10 or higher.

Regards,

Ahh legend, thanks Yoichi. Easy fix for now.

1 Like

In case it helps anyone, I replaced “For Each Ui Element” with “Find Children” and a “For Each”. A little bit more manual setup, but functionally the same.

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