com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData).

Atlassian JIRA | Jaime Silveira [Atlassian] | 1 year ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    h3. Summary Workflows importing from Trello are causing severe problems in JIRA related to workflows: # The statuses page gives a 500 error page and a stacktrace. The user is unable to change/view statuses # No workflow is shown in the workflow page # Navigation to a project's workflow page is showing this error: {noformat} The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation. {noformat} Stacktrace in the statuses page: {noformat} Technical details Cause Referer URL: https://agilys.atlassian.net/secure/admin/ViewIssueTypes.jspa com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData). com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData). at JIRA.Templates.Statuses.success(Unknown Source) [?:?] at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:369) [?:?] at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:322) [?:?] at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:66) [?:?] at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:476) [?:?] at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:151) [?:?] ... at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:831) [tomcat-coyote.jar:8.0.20] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659) [tomcat-coyote.jar:8.0.20] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558) [tomcat-coyote.jar:8.0.20] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515) [tomcat-coyote.jar:8.0.20] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.0.20] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] Caused by: com.google.template.soy.sharedpasses.render.RenderException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData). at JIRA.Templates.Statuses.success(Unknown Source) [?:?] at com.google.template.soy.sharedpasses.render.RenderVisitor.visitForeachNode(RenderVisitor.java:384) [?:?] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:104) [?:?] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:56) [?:?] {noformat} h3. Steps to Reproduce # Carry out an import from Trello with workflows (all conditions here are still unknown) h3. Expected Results The workflows are correctly imported h3. Actual Results The imported workflows break many pages. h3. Notes Based on the errors and other issues we think the problem with the workflows is that they use 'action IDs' (the transition IDs) that were already used in different workflows. This cannot be correctly interpreted by JIRA and the pages break. h3.Workaround Contact Support for a fix

    Atlassian JIRA | 1 year ago | Jaime Silveira [Atlassian]
    com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData).
  2. 0

    h3. Summary Workflows importing from Trello are causing severe problems in JIRA related to workflows: # The statuses page gives a 500 error page and a stacktrace. The user is unable to change/view statuses # No workflow is shown in the workflow page # Navigation to a project's workflow page is showing this error: {noformat} The JIRA server was contacted but has returned an error response. We are unsure of the result of this operation. {noformat} Stacktrace in the statuses page: {noformat} Technical details Cause Referer URL: https://agilys.atlassian.net/secure/admin/ViewIssueTypes.jspa com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData). com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData). at JIRA.Templates.Statuses.success(Unknown Source) [?:?] at com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:369) [?:?] at com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:322) [?:?] at com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:66) [?:?] at com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:476) [?:?] at com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:151) [?:?] ... at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:831) [tomcat-coyote.jar:8.0.20] at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:659) [tomcat-coyote.jar:8.0.20] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1558) [tomcat-coyote.jar:8.0.20] at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1515) [tomcat-coyote.jar:8.0.20] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_45] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_45] at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-util.jar:8.0.20] at java.lang.Thread.run(Thread.java:745) [?:1.8.0_45] Caused by: com.google.template.soy.sharedpasses.render.RenderException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData). at JIRA.Templates.Statuses.success(Unknown Source) [?:?] at com.google.template.soy.sharedpasses.render.RenderVisitor.visitForeachNode(RenderVisitor.java:384) [?:?] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:104) [?:?] at com.google.template.soy.soytree.AbstractSoyNodeVisitor.visit(AbstractSoyNodeVisitor.java:56) [?:?] {noformat} h3. Steps to Reproduce # Carry out an import from Trello with workflows (all conditions here are still unknown) h3. Expected Results The workflows are correctly imported h3. Actual Results The imported workflows break many pages. h3. Notes Based on the errors and other issues we think the problem with the workflows is that they use 'action IDs' (the transition IDs) that were already used in different workflows. This cannot be correctly interpreted by JIRA and the pages break. h3.Workaround Contact Support for a fix

    Atlassian JIRA | 1 year ago | Jaime Silveira [Atlassian]
    com.google.template.soy.tofu.SoyTofuException: In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData).

    Root Cause Analysis

    1. com.google.template.soy.tofu.SoyTofuException

      In 'foreach' command {foreach $status in $statuses}{call .statusRow}{param status: $status /}{param first: isFirst($status) /}{param last: isLast($status) /}{/call}{/foreach}, the data reference does not resolve to a SoyList (encountered type com.google.template.soy.data.restricted.UndefinedData).

      at JIRA.Templates.Statuses.success()
    2. JIRA.Templates
      Statuses.success
      1. JIRA.Templates.Statuses.success(Unknown Source)[?:?]
      1 frame
    3. com.google.template
      BaseTofu$RendererImpl.render
      1. com.google.template.soy.tofu.internal.BaseTofu.renderMainHelper(BaseTofu.java:369)[?:?]
      2. com.google.template.soy.tofu.internal.BaseTofu.renderMain(BaseTofu.java:322)[?:?]
      3. com.google.template.soy.tofu.internal.BaseTofu.access$100(BaseTofu.java:66)[?:?]
      4. com.google.template.soy.tofu.internal.BaseTofu$RendererImpl.render(BaseTofu.java:476)[?:?]
      4 frames
    4. com.atlassian.soy
      DefaultSoyManager.render
      1. com.atlassian.soy.impl.DefaultSoyManager.render(DefaultSoyManager.java:151)[?:?]
      1 frame