Salesforce insert record error

I have a problem when I add the Insert Record activity and select the object Case salesforce (I want to create a child case). It loads for a while and then it shows an error pop up:


The connection is valid because other activities work…It’s like the activity gets a bug or something because I cannot change it back to Object -Operational Task-which use to work before.
And it is not an access problem because I can achieve this result in workbench.
You think you can send me the an "Insert Record activity with the Case selected at Object? I would really appreciate it!
Or let me know why this happens and how should I fix it.

Many thanks,

Error details:Error: System.Exception: Connection is not valid
at UiPath.Salesforce.Utilities.BackgroundWorkerUtility.d__1`1.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
at UiPath.Salesforce.Activities.Wizards.ViewModels.MandatoryPageViewModel.d__66.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
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 -2146233079

@radudorianastefania

Try to change the activities package version and check may be there is a bug in the version you are currently using

Cheers

Already tried this with an earlier version but no success. I am not sure if i should continue trying other versions.
Another thing i didn’t mention is, if i let it load after I select the object “Case”, the insert activity loads for hours. The error is thrown if i randomly push done or try to select another object.
Many thanks for your answer

@radudorianastefania

Can you try to check the event viewser logs when the exception occurs we might get more info from there

Cheers

This is the first error I get If I wait to load:


With this error message: Error: System.Exception: Operation didn’t completed in 300s
at UiPath.Salesforce.Activities.Wizards.ViewModels.MandatoryPageViewModel.d__61.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at UiPath.Salesforce.Activities.Wizards.Views.MandatoryParametersPage.<SelectObject_DropDownClosed>d__2.MoveNext()
— End of stack trace from previous location where exception was thrown —
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b__6_0(Object state)
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 -2146233083
Event viewer log on this timeout error:

If I click done or something else because sometimes it takes hours to load it shows this error:
image

With this error in Event viewer:

Can this error appear because I don’t have access to Object manager? I noticed that now. But if so why it does work from workbench when I try to do the same thing?

Thank you so much for your support!

it worked. It was because I didn’t had access on Object Manager. Thank you!

1 Like

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