Using a BAQ in Report Data Definition

I used a BAQ in an RDD but when running the report I get the following error message:

Program Ice.Services.Lib.RunTask raised an unexpected exception with the following message: RunTask: Value cannot be null.
Parameter name: key
Stack Trace:
at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at System.Collections.Generic.Dictionary2.TryGetValue(TKey key, TValue& value)
at Epicor.Utilities.DictionaryExtensions.GetOrAdd[TKey,TValue](IDictionary2 dictionary, TKey key, Func2 valueFactory) in c:_Releases\ICE\RL3.2.300.0\Source\Shared\Framework\Epicor.ServiceModel\Utilities\DictionaryExtensions.cs:line 24
at Ice.Core.RptBase.ReportDataBuilderBase.XMLDumpTable(IRow row, String rptTableId) in c:_Releases\ICE\RL3.2.300.0\Source\Server\Internal\Lib\TaskLib\RptBase\ReportDataBuilderBase.cs:line 336
at Erp.Internal.XA.MtlTags.RunProcess(Int64 instanceTaskNum, String outputFileName) in C:_Releases\ERP\UD10.2.300.3\Source\Server\Internal\XA\MtlTags\MtlTags.cs:line 296
at Ice.Core.TaskBase`1.StartProcess(Int64 instanceTaskNum, String outputFileName) in c:_Releases\ICE\RL3.2.300.0\Source\Server\Internal\Lib\TaskLib\TaskBase\TaskBase.cs:line 47
at Ice.Hosting.TaskCaller.InnerExecuteTask(IceDataContext newContext) in c:_Releases\ICE\RL3.2.300.0\Source\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 98
at Ice.Hosting.TaskCaller.ExecuteTask() in c:_Releases\ICE\RL3.2.300.0\Source\Framework\Epicor.Ice\Hosting\TaskCaller\TaskCaller.cs:line 57
at Ice.Lib.RunTask.BpmFriendlyTaskLauncher.Run(String sessionIdPrefix, IceContext db, Action taskRunner) in c:_Releases\ICE\RL3.2.300.0\Source\Server\Services\Lib\RunTask\BpmFriendlyTaskLauncher.cs:line 63
at Ice.Services.Lib.RunTaskSvc.InnerRunTask(Int64 ipTaskNum, Boolean suppressTransaction) in c:_Releases\ICE\RL3.2.300.0\Source\Server\Services\Lib\RunTask\RunTask.cs:line 577

Any clue as to what I would be missing?

Thanks for any suggestions !

Carol
:slight_smile:

Did you ever get this figured out? I just ran into this issue.

Yes, it is a bit misleading on Epicor’s part. We found out that you cannot use a BAQ in a Report Data Definition. All the parts seem to be there, but it doesn’t work.

1 Like

Well, that explains a lot. Thanks!

You can use a BAQ in a report data definition. But only if the report data definition is comprised solely of BAQ’s

Matt from Epicor told our consultant that BAQ’s didn’t work in an RDD.

We had tried … can you provide an example? I would still be interested in going that route.

Thanks

Carol

image001.jpg

The RDD I created only has BAQ’s in it but I am still running into the error that Carol first posted.