Since 2026.100 Reports do not work because of use of images in header and footer

since the update to 2026.100 we can use our reports in which we use images for our header and footer. When trying to print a report we get the following error message, see below. How to solve this?

Program Ice.Services.Lib.RunTask when executing task 872038 raised an unexpected exception with the following message: RunTask:
System.InvalidCastException: Failed to convert parameter value from a Byte to a Int64.
—> System.InvalidCastException: Object must implement IConvertible.
at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
at Microsoft.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
— End of inner exception stack trace —
at Microsoft.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType, Boolean& coercedToDataFeed, Boolean& typeChanged, Boolean allowStreaming)
at Microsoft.Data.SqlClient.SqlParameter.GetCoercedValue()
at Microsoft.Data.SqlClient.SqlParameter.Validate(Int32 index, Boolean isCommandProc)
at Microsoft.Data.SqlClient.SqlCommand.BuildParamList(TdsParser parser, SqlParameterCollection parameters, Boolean includeReturnValue)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean isAsync, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at Microsoft.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, TaskCompletionSource1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry, String method) at Microsoft.Data.SqlClient.SqlCommand.ExecuteNonQuery() at Ice.Core.RptBase.DatabaseReportDataStorage.WriteRow(IDataSource dataSource, IRow row) in C:\_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\RptBase\DatabaseReportDataStorage.cs:line 114 at Ice.Core.RptBase.ReportImagesDataBuilder.WriteRowToAllDataStorages(IDataSource dataSource, IEnumerable1 reportDataStorages, DataSourceRow row) in C:_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\RptBase\ReportImagesDataBuilder.cs:line 69
at Ice.Core.RptBase.ReportImagesDataBuilder.BuildData(IDataSource dataSource, ReportStyleImageTable imageTable, IEnumerable1 reportDataStorages) in C:\_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\RptBase\ReportImagesDataBuilder.cs:line 20 at Ice.Core.RptBase.ReportDataBuilderBase.WriteReportImagesData() in C:\_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\RptBase\ReportDataBuilderBase.cs:line 282 at Ice.Core.RptBase.ReportDataBuilderBase.XSDClose() in C:\_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\RptBase\ReportDataBuilderBase.cs:line 375 at Ice.Core.RptTaskBase1.XSDClose() in C:_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\RptBase\RptTaskBase.cs:line 369
at Erp.Internal.PM.POForm.RunProcess(Int64 instanceTaskNum, String outputFileName) in C:_releases\ERP\ERP12.2.100.0\Source\Server\Internal\PM\POForm\POForm.cs:line 294
at Ice.Core.TaskBase`1.StartProcess(Int64 instanceTaskNum, String outputFileName) in C:_releases\ICE\ICE5.2.100.3\Source\Server\Internal\Lib\TaskLib\TaskBase\TaskBase.cs:line 47
at Ice.Hosting.TaskCaller.StartProcess(IceDataContext dataContext, Type myType, Operation operation) in C:_releases\ICE\ICE5.2.100.3\Source\Server\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 133
at Ice.Hosting.TaskCaller.InnerExecuteTask(IceDataContext dataContext) in C:_releases\ICE\ICE5.2.100.3\Source\Server\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 112
at Ice.Hosting.TaskCaller.ExecuteTask() in C:_releases\ICE\ICE5.2.100.3\Source\Server\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 62
at Ice.Hosting.TaskCaller.ExecuteTask(IceDataContext dataContext, Boolean suppressTransaction) in C:_releases\ICE\ICE5.2.100.3\Source\Server\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 42
at Ice.Services.Lib.RunTaskSvc.<>c__DisplayClass19_2.b__1() in C:_releases\ICE\ICE5.2.100.0\Source\Server\Services\Lib\RunTask\RunTask.cs:line 352
at Ice.Lib.RunTask.BpmFriendlyTaskLauncher.Run(String sessionIdPrefix, IceContext db, Action taskRunner) in C:_releases\ICE\ICE5.2.100.0\Source\Server\Services\Lib\RunTask\BpmFriendlyTaskLauncher.cs:line 57
at Ice.Services.Lib.RunTaskSvc.InnerRunTask(Int64 ipTaskNum, Boolean suppressTransaction) in C:_releases\ICE\ICE5.2.100.0\Source\Server\Services\Lib\RunTask\RunTask.cs:line 349

This is a known issue. PRB0317202

Here’s a potential workaround in the meantime.

And if you’re on-prem an upgrade to SSRS seems to be in order.

Unconfirmed that my “work around” works for this particular issue. I’d be interested to hear if it does though!