I'm using the "Rename Folder" node and I'm getting this error.

I'm using the "Rename Folder" node and I'm getting this error.

There is a problem with task “----” in the process “-----”. There was an error renaming the folder.
Problem: An error occurred in executing an Activity Class.

I'm using an expression that removes any forbidden characters from the folder name

It is hard to get the node wrong, since it only has two parameters. However, the error message I'm getting doesn't say much.

Anyone seen this before?

OriginalPostID-149227

OriginalPostID-149227

  Discussion posts and replies are publicly visible

  • @fillipep Assuming that the two input parameters provided to the smart service are valid, is the smart service run with basic user's context? If so, it would be worth ensuring that the user has access to modify the folder's properties.
  • @akshayan - this is what I get in the file log

    2015-05-18 14:21:12,964 [Appian Work Item - 4425 - ProcessExec00 : UnattendedJavaActivityRequest] ERROR com.appiancorp.process.runtime.activities.RenameFolderActivity - java.lang.NullPointerException: Null Arguments are Invalid
    java.lang.NullPointerException: Null Arguments are Invalid
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.appiancorp.kougar.mapper.Mapper.prepareThrowable(Mapper.java:135)
    at com.appiancorp.kougar.mapper.Mapper.request(Mapper.java:84)
    at com.appiancorp.kougar.services.KougarServiceInvocationHandler$KInvocationHandler.invoke(KougarServiceInvocationHandler.java:180)
    at com.appiancorp.kougar.services.KougarServiceInvocationHandler$KougarMethodInvocation.proceed(KougarServiceInvocationHandler.java:272)
    at com.appiancorp.security.authz.AuthorizationMethodInterceptor.invoke(AuthorizationMethodInterceptor.java:54)
    at com.appiancorp.kougar.services.KougarServiceInvocationHandler.invoke(KougarServiceInvocationHandler.java:309)
    at com.sun.proxy.$Proxy43.getContent(Unknown Source)
    at com.appiancorp.process.runtime.activities.RenameFolderActivity.execute(RenameFolderActivity.java:59)
    at com.appiancorp.suiteapi.process.framework.AbstractActivity.perform(AbstractActivity.java:104)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:88)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor$2.call(LegacyActivityExecutor.java:85)
    at com.appiancorp.common.ContextClassLoaderSwitcher.runInContext(ContextClassLoaderSwitcher.java:25)
    at com.appiancorp.process.runtime.framework.LegacyActivityExecutor.execute(LegacyActivityExecutor.java:85)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute(UnattendedJavaActivityRequest.java:83)
    at com.appiancorp.process.engine.UnattendedJavaActivityRequest.execute0(UnattendedJavaActivityRequest.java:55)
    at com.appiancorp.process.engine.ContinuationRequest.execute(ContinuationRequest.java:80)
    at com.appiancorp.mdb.UnattendedRequestHandlerBean.onMessage(UnattendedRequestHandlerBean.java:26)
    at sun.reflect.GeneratedMethodAccessor700.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)
    at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)
    at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288)
    at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeI
  • @sikhivahans in terms of security, the process creates the folder in the beginning. If the user doesn't cancel, than we rename the folder. In other words, the creation and renaming are happening in the same process. Makes sense?
  • @filipep By seeing the logs I suspect that a null value is being passed to Folder parameter of Rename folder smart service.

    May I know how the value of Folder parameter is being configured?
  • By the way, please ignore the security, AFAIK the logs indicate that error is because of a null parameter passed to smart service.
  • @sikhivahans - thanks. U stand correct. I was passing a null value.