We created a UBAQ that executes correctly when run “manually”. it also runs from a dashboard.
BUT, when you try to run it in the Export BAQ process, it throws an error.
The BPM code is in the GetList.Post process in the UBAQ code. if I turn off the BPM, then the error doesn’t get thrown… Here is the error:
Any clues… we even commented out all the code in the BPM, and it still throws the same error.
Exception occured:
System.ArgumentNullException: Value cannot be null.
Parameter name: tableset
at Epicor.Customization.Bpm.TablesetWithFilter`1.Attach(TTableset tableset, Boolean asCurrent) in C:\_Releases\ICE\RL3.2.200.0\Source\Server\Internal\Lib\Epicor.Customization.Bpm\TablesetWithFilter.cs:line 40
at Epicor.Customization.Bpm.Ubaq10C1157840674F13B4EEC02625E00D94.GetListDirectiveBase.InitializeCore(GetListParameters parameters, Boolean preparation)
at Epicor.Customization.Bpm.DirectiveBase`3.Execute(TParam parameters) in C:\_Releases\ICE\RL3.2.200.0\Source\Server\Internal\Lib\Epicor.Customization.Bpm\DirectiveBase.Generic.cs:line 141
at Epicor.Customization.Bpm.MethodCustomizationBase2`3.<>c__DisplayClass20_0.<RunDirectives>b__5(MethodDirectiveBase`3 dir) in C:\_Releases\ICE\RL3.2.200.0\Source\Server\Internal\Lib\Epicor.Customization.Bpm\MethodCustomizationBase2.cs:line 208
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Epicor.Customization.Bpm.MethodCustomizationBase2`3.RunDirectives(TParam parameters) in C:\_Releases\ICE\RL3.2.200.0\Source\Server\Internal\Lib\Epicor.Customization.Bpm\MethodCustomizationBase2.cs:line 212
at Epicor.Customization.Bpm.CustomizationBase2`3.Execute(TParam parameters) in C:\_Releases\ICE\RL3.2.200.0\Source\Server\Internal\Lib\Epicor.Customization.Bpm\CustomizationBase2.cs:line 73
at Epicor.Customization.Bpm.Ubaq10C1157840674F13B4EEC02625E00D94.CompanyID_SO_JsonProcessorSvcCustomization.GetList(DynamicQueryTableset queryDS, QueryExecutionTableset executionParams, Int32 pageSize, Int32 absolutePage, Boolean& hasMorePage)
at Ice.Services.BO.DynamicQuerySvc.TryExecuteUpdatableQuery(DynamicQueryTableset queryDefinition, QueryExecutionTableset executionParams, DataSet& result) in C:\_Releases\ICE\ICE3.2.200.5\Source\Server\Services\BO\DynamicQuery\DynamicQuery.Impl.cs:line 1180
at Ice.Services.BO.DynamicQuerySvc.ExecuteByID(String queryID, QueryExecutionTableset executionParams) in C:\_Releases\ICE\ICE3.2.200.5\Source\Server\Services\BO\DynamicQuery\DynamicQuery.cs:line 84
at Ice.Services.BO.DynamicQuerySvcFacade.ExecuteByID(String queryID, QueryExecutionTableset executionParams) in C:\_Releases\ICE\ICE3.2.200.5\Source\Server\Services\BO\DynamicQuery\DynamicQuerySvcFacade.cs:line 121
at Ice.Internal.XA.BAQReport.RunProcess(Int64 instanceTaskNum, String outputFileName) in C:\_Releases\ICE\RL3.2.200.0\Source\Server\Internal\XA\XABaqExport\BaqExport.cs:line 46