Trying to delete a memo using DeleteByID in the the BL Tester and it’s throwing an Object reference not set exception. Using the same data in GetByID (parameters are the same) work just fine. Anyone come across this?
TargetInvocationException
Inner Exception:
Object reference not set to an instance of an object.
at Ice.Services.BO.MemoSvc.AccessGranted() in c:_Releases\ICE\3.1.600.0\Source\Server\Services\BO\Memo\Memo.cs:line 71
at Ice.Services.BO.MemoSvc.MemoBeforeDelete() in c:_Releases\ICE\3.1.600.0\Source\Server\Services\BO\Memo\Memo.cs:line 53
at Ice.Services.Trace.TablesetProfilingCollector.DoRowEventTrace(String tableName, String methodName, Int32 rowCount, Action action) in C:_Releases\ICE\3.1.600.11\Source\Framework\Epicor.Ice\Services\TablesetProfilingCollector.cs:line 144
at Ice.TablesetBound3.DeleteRow(IceDataContext dataContext, String tableName, LinqRow dbRow, TablesetProfilingCollector parentTraceCollector) in C:\_Releases\ICE\3.1.600.11\Source\Framework\Epicor.Ice\Services\TablesetBound.cs:line 1307 at Ice.TablesetBound
3.OnDeleteByID(String logicalTableName, LinqRow dbRow) in C:_Releases\ICE\3.1.600.11\Source\Framework\Epicor.Ice\Services\TablesetBound.cs:line 817
at Ice.Services.BO.MemoSvcFacade.DeleteByID(String relatedToSchemaName, String relatedToFile, Guid relatedToSysRowID, Int32 memoNum) in c:_Releases\ICE\3.1.600.0\Source\Server\Services\BO\Memo\MemoSvcFacade.cs:line 80
at SyncInvokeDeleteByID(Object , Object , Object )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object inputs, Object& outputs)
at Epicor.Hosting.OperationBoundInvoker.InnerInvoke(Object instance, Func2 func) in C:\_Releases\ICE\3.1.600.11\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 59 at Epicor.Hosting.OperationBoundInvoker.Invoke(Object instance, Func
2 func) in C:_Releases\ICE\3.1.600.11\Source\Framework\Epicor.System\Hosting\OperationBoundInvoker.cs:line 47
at Epicor.Hosting.Wcf.EpiOperationInvoker.Invoke(Object instance, Object inputs, Object& outputs) in C:_Releases\ICE\3.1.600.11\Source\Framework\Epicor.System\Hosting\Wcf\EpiOperationInvoker.cs:line 23
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet dataSets)
at Ice.Proxy.BO.MemoImpl.DeleteByID(String relatedToSchemaName, String relatedToFile, Guid relatedToSysRowID, Int32 memoNum)