SuccessFactors Insert Record error

Hi All.

Back to automation using SuccessFactors activity and I’m stuck at Insert Record.
I’m using Studio 2021.4.0 Community version and UiPath.SuccessFactors.Activities v1.2.0.

I’ve done a Get Record on CandidateComments entity and it worked fine (inside a SF Scope). I took the commentId and placed it in an Insert Record Sample Value and retrieved the other mandatory fields:

If I then test it out I get this:
image

And I get the same error if I enter the mandatory values and run the entire workflow:

RemoteException wrapping UiPath.SuccessFactors.Utilities.SuccessFactorsException: {
"error" : {
"code" : "BadRequestException", "message" : {
"lang" : "en-US", "value" : "For input string: \"141476L\""
}
}
} 
   at UiPath.SuccessFactors.Activities.SuccessFactorsInsertRecordActivity.SetResponse(CodeActivityContext context, CrudOperationResponse response)
   at UiPath.BAF.Activities.CrudActivityBase.BAFExecute(CodeActivityContext context)
   at UiPath.BAF.Activities.BAFCodeActivity.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Unfortunately I can’t share the xaml file as it contains connection details to SF.

Any ideas?

Thank you.

Anyone?

Anything I can try, that I haven’t think of? I’ll take any idea :slight_smile:

Thank you.

@paul.hoeffer I tried to reproduce but I was not successful, do you have any idea?

Below is the error from the Studio log. So, I’m thinking it might be something to do with the way SuccessFactors is configured internally.

16:29:35.2921 => [ERROR] [UiPath.Studio] [1] Error: System.Exception: Set property 'System.Windows.Controls.ItemsControl.ItemsSource' threw an exception.
 ---> System.Exception: 'DeferRefresh' is not allowed during an AddNew or EditItem transaction.
   at System.Windows.Data.CollectionView.DeferRefresh()
   at System.Windows.Controls.ItemCollection.SetCollectionView(CollectionView view)
   at System.Windows.Controls.ItemCollection.SetItemsSource(IEnumerable value, Func`2 GetSourceItem)
   at System.Windows.Controls.ItemsControl.OnItemsSourceChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.FrameworkElement.OnPropertyChanged(DependencyPropertyChangedEventArgs e)
   at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args)
   at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType)
   at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal)
   at System.Windows.Baml2006.WpfKnownMemberInvoker.SetValue(Object instance, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(XamlMember member, Object obj, Object value)
   at MS.Internal.Xaml.Runtime.ClrObjectRuntime.SetValue(Object inst, XamlMember property, Object value)
   --- End of inner exception stack trace ---
   at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)
   at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)
   at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)
   at System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   at UiPath.BAF.Activities.Design.View.MandatoryFieldsPage.InitializeComponent()
   at UiPath.BAF.Activities.Design.View.MandatoryFieldsPage..ctor(MandatoryFieldsPageViewModel viewModel)
   at UiPath.BAF.Activities.Design.ViewModel.FieldsSelectionPageViewModel.LoadMandatoryParameters()
   at UiPath.BAF.Activities.Design.ViewModel.FieldsSelectionPageViewModel.NavigateFrame(NavigationService navigationService)
   at UiPath.BAF.Activities.Design.ViewModel.FieldsSelectionPageViewModel.InitializeViewModel(NavigationService navigationService)
   at UiPath.BAF.Activities.Design.View.FieldsSelectionMainWindow..ctor(FieldsSelectionPageViewModel viewModel, String title)
   at UiPath.CodeGen.Activities.Design.Designers.OperationGridViewDesigner.<>c__DisplayClass1_0.<ConfigureButton_click>b__0(ModelItem modelItem, SharedModel sharedModel)
   at UiPath.CodeGen.Activities.Design.Utilities.WindowPresenter.ShowWindow(Func`3 func, SharedModel sharedModel, ModelItem ModelItem)
   at UiPath.CodeGen.Activities.Design.Utilities.WindowPresenter.Show(Func`3 func, ModelItem ModelItem)
   at UiPath.CodeGen.Activities.Design.Designers.OperationGridViewDesigner.ConfigureButton_click(Object sender, RoutedEventArgs e)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler), HResult -2146233087

I’ve googled this error but haven’t managed to implement any of the solutions (not even sure this is something that can be fixed on my side).

Thanks.

Hi - can I get a copy of the XAML (you can remove the login information)? I’d like to try to reproduce this on my instance of SF.

@TheArchitect Does the problem still exist? Do you want to jump on a call with me and see if I can help you? Please let me know and I can schedule something.

Hi @robert.wagner

I’ve sent the XAML file to Paul and he managed to reproduce the error. The dev team is working on a fix for the SuccessFactors package.

In the meantime I’ve played around with the HTTP Request and managed to automate almost everything I wanted. It was quite hard, but a good learning exercise :slight_smile:

Looking forward to the new version of SuccessFactors package.

Thank you.

Update/Solution: New version of the package, UiPath.SuccessFactors.Activities v1.2.1 seems to solve the problem for me.

Thank you.

1 Like

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