Problems with activity "ClickElement"

Hello! The activity “ClickElement” cannot be placed in the project (in workflow)
If you open a project with an activity placed in it, the project does not open.

How can this problem be solved?

either your .net is broken ( not likely )
or OpenRPA has been corrupted with dll’s not matching what OpenRPA was built with
Try either

  • Remove any installed nuget packages ( then delete any thing that may be left inside “documents\OpenRPA\extensions”
  • Uninstall OpenRPA, delete anything left in “c:\program files\openrpa” then re-install

If you need help, it would help if you clicked “details”. The reason for the error is normally in the details part.

In “details”:
System.Xaml.XamlObjectWriterException: ‘The invocation of the constructor on type ‘OpenRPA.Activities.ClickElement’ that matches the specified binding constraints threw an exception.’ Line number ‘306’ and line position ‘28’. —> System.InvalidCastException: Specified cast is not valid.
at OpenRPA.Config.GetProperty[T](String pluginname, T mydefault, String propertyName)
at OpenRPA.Config.get_use_postwait()
at OpenRPA.Activities.ClickElement…ctor()
— End of inner exception stack trace —
at MS.Internal.Xaml.Runtime.ClrObjectRuntime.CreateInstance(XamlType xamlType, Object args)
at System.Xaml.XamlObjectWriter.Logic_CreateAndAssignToParentStart(ObjectWriterContext ctx)
at System.Xaml.XamlObjectWriter.WriteStartMember(XamlMember property)
at System.Activities.Presentation.Xaml.ErrorTolerantObjectWriter.XamlFragment.WriteTo(XamlWriter writer, Boolean parentHasError)
at System.Activities.Presentation.Xaml.ErrorTolerantObjectWriter.XamlFragment.WriteTo(XamlWriter writer, Boolean parentHasError)
at System.Activities.Presentation.Xaml.ErrorTolerantObjectWriter.XamlFragment.WriteTo(XamlWriter writer, Boolean parentHasError)
at System.Activities.Presentation.Xaml.ErrorTolerantObjectWriter.XamlFragment.WriteTo(XamlWriter writer, Boolean parentHasError)
at System.Activities.Presentation.Xaml.ErrorTolerantObjectWriter.XamlFragment.WriteTo(XamlWriter writer, Boolean parentHasError)
at System.Activities.Presentation.Xaml.ErrorTolerantObjectWriter.CompleteLoad()
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at Microsoft.Activities.Presentation.Xaml.WorkflowDesignerXamlHelper.DeserializeString(String text, DeserializationMode mode, IList1& loadErrors, Dictionary2& sourceLocations)
at Microsoft.Activities.Presentation.Xaml.WorkflowDesignerXamlHelper.DeserializeString(String text, IList1& loadErrors, Dictionary2& sourceLocations)
at System.Activities.Presentation.WorkflowDesigner.Load()

Reinstalling OpenRPA did not help.

You have an illegal value for one of the properties on ClickElement

It’s seems to come from use_postwait that is read from settings.json
please make sure this is valid ( default is “00:00:00” )

You ca reset it, by remove that from settings.json ( close openrpa, then open the settings.json and remove it and save, then restart openrpa ) and see if you still get an error when you add “click element” to a NEW workflow.

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