When hit the run button on Studio the automation is failing with this error: The value '[SystemException IsNot Nothing]' contains significant white space(s) but "xml:space = preserve" cannot be written down on the member '{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition'.
Issue Description:
After Upgrading the Studio from version 2020.10.2 to 2022.10.5 , it is required to upgrade the code from Windows legacy to Windows.
The value '[SystemException IsNot Nothing]' contains significant white space(s) but "xml:space = preserve" cannot be written down on the member '{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition'.
Save: RemoteException wrapping System.Xaml.XamlXmlWriterException: The value '[SystemException IsNot Nothing]' contains significant white space(s) but "xml:space = preserve" cannot be written down on the member '{http://schemas.microsoft.com/netfx/2009/xaml/activities}Transition.Condition'.
at System.Xaml.XamlXmlWriter.InMember.WriteXmlSpaceOrThrow(XamlXmlWriter writer, String value)
at System.Xaml.XamlXmlWriter.InMember.WriteValue(XamlXmlWriter writer, String value)
at UiPath.Workflow.Operations.Serializer.Services.IgnorableSapSadXamlXmlWriter.WriteValue(Object value)
at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
at System.Activities.XamlIntegra
Resolution:
- Open the JSON file and check for the value "SystemException"
- In that JSON file check for "SystemException" for the spacing between 'IsNot Nothing'(There shouldn't be any spaces in between.)
- Save the JSON file and re open the studio.
Note: It is not the best practice to modify JSON file always.