wizard points to a non-existent Soy template after updating on confluence installation
Asked by Tom:

In the Blueprint I created there should be an implementation of a wizard. I changed my namespace for the wizard so it won't override my previous soy wizard for other templates and it worked at the beginning. After a few reloads it just say in the browser console. It works fine when I run it on the debug Confluence but if I upload the Plugin to my running Confluence installation I get this error.

```
Error: wizard points to a non-existent Soy template 'MyPlugin.Blueprints.SimpleCuC.page2Form'. Check your web-resources or server logs.
```

I pointet to the correct direction in my atlassian-plugin xml with.

```
&lt;resource type="download" name="cucbp.soy.js" location="/cucbp.soy" /&gt;
```

```
&lt;!-- Blueprint --&gt;&lt;blueprint key="my-blueprint" content-template-key="cucbp-template" index-key="my-index" &gt;        &lt;content-template ref="simplebp-template" /&gt;&lt;dialog-wizard key="cucbp-wizard"&gt;            &lt;dialog-page id="page2Id" template-key="CuCBoard.Blueprints.SimpleCuC.page2Form" title-key="my.blueprint.wizard.page1.CuCtitle" last="true"/&gt;        &lt;/dialog-wizard&gt;    &lt;/blueprint&gt;
```

And my soy file should be correct as well.

```
{namespace CuCBoard.Blueprints.SimpleCuC}/***  A form that accepts a person's name*/{template .page2Form}    &lt;form action="#" method="post" class="aui"&gt;      &lt;fieldset&gt;
```

But every time the wizard should open when I just get an error for the non existing soy template, which is correct the path he displays in the console error isn't there anymore and should not be used by the new version of the plugin but it still uses it ....

The error only appears on the installation of confluence after the upload.


Answers:
author: Sandun K Gunasekara
body: I had the same problem. I don't know whether this works for you. First problem I had was my server console did not logged necessary logs. There were only java jdk and synchrony logs. So I configured logs as mentioned in <https://confluence.atlassian.com/doc/configuring-logging-181535215.html> to have all the logs of "com.atlassian.confluence.core". Then I found the error
> \[INFO\] \[talledLocalContainer\] com.atlassian.soy.impl.QuieterSoySyntaxException: In file /soy/outputTemplate.soy: End of SoyDoc not at end of line \[line 4, column 1\].

Finally the problem was a **space** after end of soy doc.
> /\*\* \* A form that accepts a person's name \*/{space}

instead of
> /\*\* \* A form that accepts a person's name \*/


author: Phat Huynh
body: [I saw it here and it works for me.](https://stackoverflow.com/questions/57423384/atlassian-confluence-blueprint-wizard-non-existent-soy-template/57424219#57424219?newreg=38414a89f08b49f1ad71006681dc648c)

<https://stackoverflow.com/questions/57423384/atlassian-confluence-blueprint-wizard-non-existent-soy-template/57424219#57424219?newreg=38414a89f08b49f1ad71006681dc648c>


author: Ben Li
body: Not sure if you all still have that error but what fixed it for me is adding the soy dialog page to my web-resource section. I had everything else properly configured but forgot to include the soy as a resource.


author: Max Burn
body: I am not sure if you are still having this issue, or if this will solve it, but since I spent more time figuring this out that I care to admit (and found this page in the process) so I want to sare.

I was working through the [Intermediate Blueprint Tutorial](https://developer.atlassian.com/server/confluence/write-an-intermediate-blueprint-plugin/) and would got hung up on step 6. After digging it seems I was also getting the error:
> wizard points to a non-existent Soy template

Line 26 of the tutorial's atlassian-plugin.xml file it reads:

```
<resource type="download" name="simplebp.soy.js" location="/soy/simplebp.soy" />
```

And has the "simplebp.soy" placed in the directory "./simplebp/src/main/resources/soy/"

For it to work my resources line reads:

```
<resource type="download" name="simplebp-soy.js" location="simplebp.soy" />
```

And as that line suggest I have my "simplebp.soy" directly in "./simplebp/src/main/resources/"

In my case I was running a standalone instance of Confluence 6.6.0 due to other issues.

```
atlas-run-standalone --product confluence --version 6.6.0 --data-version 6.6.0
```


author: Alex Bird
body: I had the same problem. I believe that it's because in step 2.4 (adding the JavaScript file), the sample code has escaped quotes: \&#39; instead of ".

When I replaced all of the \&#39; with " in the JavaScript file, I no longer got the missing soy template error.

I had already made that replacement for the other files with escaped quotes, but missed this file. It would be nice if the sample code had only unescaped quotes in it though...


Tags: blueprint

soy-templates

wizard