StudioX and UiPath.SAP.BAPI.Activities

From what I can see UiPath.SAP.BAPI.Activities does not appear to work with StudioX yet the requirements do not list this problem. If I create an Invoke SAP BAPI within a SAP Application Scope I can select the BAPI but if I click in any field to specify a value. I am given an Exception (below). I can open this same project in Studio and edit the Value and then switch back to StudioX and use it though.

Forgot to add the exception:
21.10.3+Branch.master.Sha.8291b2799a85589c5b075e0d1f69016fc83eec97

Exception has been thrown by the target of an invocation.

Error: System.Exception: Exception has been thrown by the target of an invocation.
—> System.Exception: Target property is not an argument
at UiPath.Studio.Plugin.Workflow.Extensions.ModelItemExtensions.GetArgumentInnerType(ModelProperty targetProperty)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.BaseExpressionMenuProvider.LookupExpressionAssistants(ModelProperty targetProperty)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.BaseExpressionMenuProvider.GetContextFor(ExpressionEditorMenuOptions options, ModelProperty property)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.BusinessExpressionMenuProvider.LoadMenuItems(ExpressionEditorMenuOptions options, IExpressionEditorWrapper editor, IExpressionMenuItemCallbacks callbacks, ModelProperty targetProperty)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.BaseExpressionMenuProvider.GetMenuItems(ExpressionEditorMenuOptions options, IExpressionEditorWrapper editor, IExpressionMenuItemCallbacks callbacks)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.ExpressionPopupButtonViewModel.Update(Boolean toolOptionsOnly)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.ExpressionPopupButton.PopupButton_PopupOpening(Object sender, CancelRoutedEventArgs e)
— End of inner exception stack trace —
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object parameters, Object arguments)
at System.Delegate.DynamicInvokeImpl(Object args)
at System.Windows.RoutedEventArgs.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.RaiseEvent(RoutedEventArgs e)
at ActiproSoftware.Windows.Controls.PopupButton.OnPopupOpening(CancelRoutedEventArgs e)
at ActiproSoftware.Windows.Controls.PopupButton.CoerceIsPopupOpenPropertyValue(DependencyObject obj, Object value)
at System.Windows.DependencyObject.ProcessCoerceValue(DependencyProperty dp, PropertyMetadata metadata, EntryIndex& entryIndex, Int32& targetIndex, EffectiveValueEntry& newEntry, EffectiveValueEntry& oldEntry, Object& oldValue, Object baseValue, Object controlValue, CoerceValueCallback coerceValueCallback, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, Boolean skipBaseValueChecks)
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 ActiproSoftware.Windows.Controls.PopupButton.set_IsPopupOpen(Boolean value)
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.ExpressionPopupButton.ExpressionPopupButton.Activate()
at UiPath.Studio.Plugin.Workflow.ExpressionEditor.ExpressionTextBoxEnhancements.BusinessExpressionTextBox.BusinessExpressionTextBoxView.OnClick()
at UiPath.Studio.App.Desktop.MVVM.Commands.Command2.Execute(TExecuteParameter parameter, Boolean ignoreCanExecuteCheck) at UiPath.Studio.App.Desktop.MVVM.Commands.Command2.Execute(TExecuteParameter parameter)
at UiPath.Studio.App.Desktop.MVVM.Commands.Command`2.Execute(Object parameter)
at UiPath.Studio.Plugin.Workflow.Behaviors.Business.ClickAndDoubleClickBehavior.Timer_Tick(Object sender, EventArgs e)
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
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 -2146232828

HI @ahydle

SAP BAPI is not suitable for Studio X and for use of SAP Business People.

SAP BAPI is a complex topic requires a deep understanding of SAP and UiPath, therefore use Studio for SAP BAPI automation

Best regards, Lev

1 Like

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