> For the complete documentation index, see [llms.txt](https://docs.stayonhire.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stayonhire.com/documents/templates/reference-tags/troubleshooting.md).

# Troubleshooting

## FAQs

### Why does my template not work when I copy and paste the exact reference tag?

#### Solution 1 - Check Curly Brackets

Check that all of your endpoints contain clear two curly brackets before and after each endpoint is added.

i.e. {{JobNumber}}

#### Solution 2 - Remove Mergefield Code

Microsoft Word templates are managed with Field Code view. To see if your fields have been correctly inserted, switch to Field code view:

* If you’re using Windows, press Alt + F9 on your keyboard.
* If you’re using a Mac, go to Preferences and click on Authoring and Proofing Tools. Then select View and Field codes instead of values.

<figure><img src="/files/w8vE3jbqCPywSntmDWhA" alt=""><figcaption></figcaption></figure>

You’ll now be able to see the field codes. This can be leftover logic from other templates and source documentation (like using Xero templates).

Remove any Mergefield code present, then Save and try uploading the template to StayOnHire again.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.stayonhire.com/documents/templates/reference-tags/troubleshooting.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
