Skip to main content
jesss9195
March 23, 2022
Question

Error: The amount of time allocated for the completion of an unattended activity was insufficient to allow the activity to complete.

  • March 23, 2022
  • 4 replies
  • 0 views

Hi,

I have a very basic process model where I'm setting a new value for a users first name and last name, then setting a new value for the username and finally deactivating the user.

The process has been working as expected for approx. 1 month but is now showing this error on the Rename Users Smart Service:

The amount of time allocated for the completion of an unattended activity was insufficient to allow the activity to complete.

It also sporadically shows the following error, again on the same Rename Users Smart Service node:

An error occurred in executing an Activity Class.

Error in the tomcat.stdOut log:

2022-03-23 09:46:44,983 [ajp-nio-0.0.0.0-8009-exec-836] ERROR com.appiancorp.process.engine.UnattendedJavaActivityRequest - An error occurred while executing activity: id=536877698, classname=com.appiancorp.process.runtime.activities.StartProcessSmartService2
com.appiancorp.suiteapi.process.exceptions.SmartServiceException: userMsg[error.initiateProcess.userMsg=Failed to start process. Process Model ID: 847.] alertMsg[error.initiateProcess.alertMsg=Failed to start process. Process Model ID: 847.]

...

Caused by: java.lang.NullPointerException
...
2022-03-23 09:46:44,985 [ajp-nio-0.0.0.0-8009-exec-836] ERROR com.appiancorp.rest.shared.FallbackExceptionMapper - Internal Server Error on REST API invocation.
java.lang.NullPointerException


This process has not been recently changed, however, our environment was just upgraded to 22.1, in case that informs anything.

Does anyone have any advice?

Thanks in advance!

4 replies

peter.lewis
Employee
March 23, 2022

I have several follow up questions:

  • Is the error occurring every time you run the process or only sometimes? 
  • Does the error occur immediately or does it take a little while to attempt to complete and then fail?
  • Are you providing multiple users or a single user to the deactive smart service?
  • Who is the process being run as? If it's not being run as a system administrator, does it work if you run as a sys admin?
jesss9195
jesss9195Author
March 23, 2022

Hi Peter,

  1. Every time the process is run
  2. It takes a few minutes for the process to attempt to complete the node before it errors
  3. A single user is applied 
  4. The process is being run as the designer (with admin rights)

Thanks,

Jess

peter.lewis
Employee
March 23, 2022

Thanks Jess, if this is happening every time (and it didn't before) and there's no obvious culprit like security or a large number of users, I think it's worth opening a ticket with Appian Support to have them investigate this further.