# Problems getting 'ErrorAndWarningLogMessages' into notifications

**URL:** <https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591>\
**Category:** Bugs\
**Tags:** continua-ci, fixed\
**Created:** [September 19, 2019, 1:06pm UTC](https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591 "2019-09-19T13:06:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)\
**Post date:** [September 19, 2019, 1:06pm UTC](https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591/1 "2019-09-19T13:06:42Z")

</div>

Hi,  
I try to get the error messages when my build failed into a XMPP-notification. I added following lines to my Build-failed notification:

> {% for errormsg in ErrorAndWarningLogMessages %}{%if errormsg.type = ‘error’%}  
> {{errormsg.Text}}{% endif %}{% endfor %}

But with this statement I have two problems. First when I try to save it I get following error:

> The notification template is invalid:  
> Object ‘Debug’ is invalid because it is neither a built-in type nor implements ILiquidizable  
> Object ‘Success’ is invalid because it is neither a built-in type nor implements ILiquidizable  
> Object ‘Information’ is invalid because it is neither a built-in type nor implements ILiquidizable.

Second problem comes when I remove the if-statement and save it. It could be saved but I get no build-failed notifications anymore.  
Is this a problem from Continua or did I made something wrong?

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [September 20, 2019, 12:56am UTC](https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591/2 "2019-09-20T00:56:19Z")

</div>

Hi Albrecht,

Thank you for reporting this. We can confirm this is a bug - the template engine doesn’t like the enums in the model that we are giving it.

I have uploaded a hotfix which you can download using the following links:

- [Download Continua CI Server v1.9.1.351 (hotfix) (64 bit)](http://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Server.Setup_x64_1.9.1.351.Hotfix.exe)
- [Download Continua CI Agent v1.9.1.351 (hotfix) (64 bit)](http://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Agent.Setup_x64_1.9.1.351.Hotfix.exe)
- [Download Continua CI Agent v1.9.1.351 (hotfix) (32 bit)](http://downloads.finalbuilder.com/downloads/continua/1.9.1/ContinuaCI.Agent.Setup_1.9.1.351.Hotfix.exe)

Note that there are also some errors in your template. The if statement should be written as `{%if errormsg.type == 'Error' %}` - notice the double equals sign and the capitalisation (I’ll need to correct the capitalisation in the Available Variables text too).

As for the second problem where you stopped getting notifications after removing the statement, can you check if there are any errors on the Event Log page in the Administration section which would indicate the reason for this?

---

<div class="post-metadata">

**Author:** ![rynardald](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/a88e57/32.png) [@rynardald](https://www.finalbuilder.com/forums/u/rynardald)\
**Post date:** [September 30, 2019, 10:20am UTC](https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591/3 "2019-09-30T10:20:07Z")

</div>

Hi Dave,  
thanks for the Bugfix. I tested it right now. Now the filtering for the error-messages works. And the other problem that no notifications are send didn’t occurs anymore.  
But now i have the problem that I get the error messages two times. So when i have a set of four errors i get the first set of errors and after it I get the complete set of errors a second time.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [October 1, 2019, 8:48am UTC](https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591/4 "2019-10-01T08:48:35Z")

</div>

Hi Albrecht,

The ErrorAndWarningLogMessages list includes the log messages list under Latest Errors in the build log and this is why you are seeing duplicate. We’ve excluded these log messages for the next version which we plan to release tomorrow.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [October 2, 2019, 6:35am UTC](https://www.finalbuilder.com/forums/t/problems-getting-errorandwarninglogmessages-into-notifications/6591/5 "2019-10-02T06:35:59Z")

</div>

Hi Albrecht,

[Version 1.9.1.399](https://www.finalbuilder.com/downloads/continuaci/continua-ci-version-history-v191) contains an update to remove the duplicate log messages
