Liquid error: object type "System.Int64 can not convert to "System.Int32"

Hi,

we have updated to version 1.9.1.607 today. Running a build we get the following error which occurs, when creating e-mail notifications.

Error:
Liquid error: Das Objekt mit dem Typ “System.Int64” kann nicht in den Typ “System.Int32” konvertiert werden.

The error is caused by the usage of “truncate”.

The relevant part of the template:

				{% assign sortedChangeSets = (Changesets | sort: "Created") -%}
				{% for change in sortedChangeSets reversed -%}
    			<tr>
        			<td>
        				{{change.RepositoryChangeId | truncate: 10}}
        			</td>

The workaround is to remove the string part “| truncate 10”.

Thomas

Hi Thomas,

Thank you for reporting this. Version 1.9.1.607 contains an updated version of DotLiquid which has introduced this bug. See https://github.com/dotliquid/dotliquid/pull/365.

We’ll upload a new official version of Continua CI in the next couple of days. Meanwhile you can install a hotfix, with the DotLiquid package reverted to the earlier version, using the following links:

Thanks a lot Dave. I’ve just installed the hotfix and reconfigured the template. :slight_smile: