Cannot publish library with flowchart activity used

I am getting an error when publishing a UiPath library when there is a Flowchart activity used. May I know how to resolve this issue?

  • UiPath Studio version: 2020.10.8

  • How to reproduce:

    1. Create new library
    2. Add a flowchart activity
    3. Publish library
  • Error:
    System.AggregateException: One or more errors occurred. —> UiPath.ActivityCompiler.Exceptions.UiPathLocalizedException: Unable to create activity builder for document. Reason was ‘Cannot create unknown type ‘{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Point’.’. —> System.Xaml.XamlObjectWriterException: Cannot create unknown type ‘{http://schemas.microsoft.com/winfx/2006/xaml/presentation}Point’.

  • Others:
    Tried to uncheck “Compile activities expressions” on publish options and it was able to publish but after adding another activity after Flowchart “Start” (even just a Write Message), got the error again.

Hey @kaydine.santuyo have you tried upgrading the package and try?

Hi @rahulsharma . Which package? It says Flowchart activity is included in “Default Activities” so I don’t think I can do something to upgrade that.

Hi @kaydine.santuyo

Could you please share the zip of the sample library project?

Hi @kaydine.santuyo I’ve looked into this issue on both Studio 2020.10.15 (which is the latest patch version as of today for 20.10 release) and in Studio 2022.10.3 (which is the latest released version of Studio, as of today) and I could not reproduce the issue. Could you, please, share the library that caused this behavior? Thank you

Hi @loginerror @LiviuPonova
Apologies for the late reply. I was using Studio 2020.10.8, and tried to upgrade to 2020.10.15 as Liviu suggested but I’m still getting the same error. Please find attached. Thank you!

TestFlowchartLibrary.zip (2.1 KB)
output.txt (30.0 KB)

Edit: Same error occurs even if I put the Flowchart inside a Sequence

Hi @kaydine.santuyo . Thank you for making the library available.
I’ve downloaded the attached project and opened it in Studio released versions 20.10.15 (the one you mentioned in your latest update), 22.10.7 (latest 22.10 patch) and 23.4.0 (latest released Studio version).
I’ve attempted to publish the library and all of my attempts were successful.
Here is a screenshot from the machine where I had Studio 20.10.15 installed:

Could you, please, share some details about the machine you’ve used when hitting this issue?
Was your Studio instance connected to Orchestrator?
Did you attempt to publish the library to Orchestrator or to a custom feed?
If it was a custom feed, was it, by any chance, a remote location?

In the meantime, I’ve opened a bug for tracking the issue.
If you still encounter the issue, could you, please, run the UiPath Diagnostics Tool and attach the output? I can add it to the bug and this would bring more context for this scenario.

Thank you!