Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the error "cannot be matched against a standard field, a custom field or an alias" ?

Sriram Subramanian March 18, 2020

I have added a changes to the existing SIL script by adding the below, the app code is already available in the custom field and while making my case to pending user, i get the error as "cannot be matched against a standard field, a custom field or an alias. What is it"


//UTVS
if(%i_tkt%.jj_App_Code==c_app_UTVS) {
%i_tkt%.jj_Team = "TO-ITTTraderVoice";
//workaround: add members of the group as participants
for (string u in usersInGroups("GRP-APP-UTVS")) {
if(u!="ittjirauser" && u!="itt-jira") {
%i_tkt%.jj_Participants = addElement(%i_tkt%.jj_Participants,u);
}
}
}

Attaching the logs here, apprecaite if anybody can help me out here? btw, am using SIL Version:4.6.7-SNAPSHOT if that matters. 

 

2020-03-19 13:09:48,088 https-jsse-nio-8888-exec-13 ERROR sriramss 789x6078402x1 sed8kz 10.216.200.60 /secure/CommentAssignIssue.jspa [c.k.r.sil.impl.AbstractSimpleLanguageService] Exception while executing SIL program >>Common/post_pendingUser.sil<<: [SIL Error on line: 14, column: 1] [SIL Error on line: 1137, column: 27] Field >>c_app_UTVS<< cannot be matched against a standard field, a custom field or an alias. What is it?
com.keplerrominfo.sil.lang.SILInfoException: [SIL Error on line: 14, column: 1] [SIL Error on line: 1137, column: 27] Field >>c_app_UTVS<< cannot be matched against a standard field, a custom field or an alias. What is it?
at com.keplerrominfo.sil.lang.SILUtils.error(SILUtils.java:131)
at com.keplerrominfo.sil.lang.SILUtils.throwAway(SILUtils.java:114)
at com.keplerrominfo.sil.lang.SILUtils.throwAway(SILUtils.java:110)
at com.keplerrominfo.sil.lang.grammar.ASTCallNode.interpret(ASTCallNode.java:77)
at com.keplerrominfo.sil.lang.grammar.SILNode.interpret(SILNode.java:139)
at com.keplerrominfo.sil.lang.grammar.ASTParseNode.interpret(ASTParseNode.java:37)
at com.keplerrominfo.sil.lang.executors.CachedInterpreterExecutor.directInterpret(CachedInterpreterExecutor.java:86)
at com.keplerrominfo.sil.lang.executors.CachedInterpreterExecutor.interpret(CachedInterpreterExecutor.java:79)
at com.keplerrominfo.sil.lang.SILInterpreter.interpret(SILInterpreter.java:139)
at com.keplerrominfo.jira.commons.ivm.IssueSILInterpreter.interpret(IssueSILInterpreter.java:191)
at com.keplerrominfo.refapp.sil.impl.AbstractSimpleLanguageService.interpret(AbstractSimpleLanguageService.java:166)
at com.keplerrominfo.refapp.sil.impl.AbstractSimpleLanguageService.interpret(AbstractSimpleLanguageService.java:129)
... 2 filtered
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)
at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)
at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)
at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy4108.interpret(Unknown Source)
at com.keplerrominfo.refapp.sil.SILRunner.interpret(SILRunner.java:95)
at com.keplerrominfo.jira.plugins.jjupin.workflow.SilPostFunction.execute(SilPostFunction.java:50)
at com.opensymphony.workflow.AbstractWorkflow.executeFunction(AbstractWorkflow.java:1014)
at com.opensymphony.workflow.AbstractWorkflow.transitionWorkflow(AbstractWorkflow.java:1407)
at com.opensymphony.workflow.AbstractWorkflow.doAction(AbstractWorkflow.java:557)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowActionInsideTxn(OSWorkflowManager.java:830)
at com.atlassian.jira.workflow.OSWorkflowManager.doWorkflowAction(OSWorkflowManager.java:787)
at com.atlassian.jira.bc.issue.DefaultIssueService.transition(DefaultIssueService.java:492)
at com.atlassian.jira.web.action.issue.CommentAssignIssue.doExecute(CommentAssignIssue.java:161)
... 1 filtered

1 answer

0 votes
Andrew Laden
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 19, 2020

Try putting c_app_UTVS in quotes.

What type of custom field is jj_App_Code

Sriram Subramanian March 19, 2020

thanks, I have rectified it at my end, looks like I haven't declared c_app_utvs = "UTVS" and hence this was throwing up this error, post declaring, i was successful and the script did worked. 

Suggest an answer

Log in or Sign up to answer