Hi,
using 10.1.400.31 and trying to open a menu from another screen (like I usually do) but seems that trying to open “CRM Call Entry” screen from “Receipt Entry” using the following code:
LaunchFormOptions lfo = new LaunchFormOptions();
lfo.ContextValue = “test”;
ProcessCaller.LaunchForm(oTrans, “CRGO6100”, lfo);
is giving the error below:
Application Error
Exception caught in: Ice.Lib.EpiClientLib
Error Detail
Message: The process caller failed to invoke method LaunchForm in Ice.Lib.App.Launch in Erp.UI.CRMCallEntry.dll
Inner Exception Message: Exception has been thrown by the target of an invocation.
Program: Ice.Lib.EpiClientLib.dll
Method: InvokeReflectedMethod
Client Stack Trace
at Ice.Lib.Framework.PCallReflector.InvokeReflectedMethod(MethodInfo Method, Object Object, Object[] MethodParams, String className, String assemblyName)
at Ice.Lib.Framework.PCallReflector.LaunchDotNet(String assemblyName, String className, Hashtable ctorList, String methodName, Hashtable methodList)
Inner Exception
Exception has been thrown by the target of an invocation.
Inner Stack Trace
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Ice.Lib.Framework.PCallReflector.InvokeReflectedMethod(MethodInfo Method, Object Object, Object[] MethodParams, String className, String assemblyName)
Inner Exception
Object reference not set to an instance of an object.
Inner Stack Trace
at Ice.Lib.App.Launch.LaunchForm(Object LaunchObject)
.
.
.
.
If I try to call it without parameters like this:
ProcessCaller.LaunchForm(oTrans, “CRGO6100”);
the screens opens but gives this error below:
Server Side Exception
Error accessing the database: Incorrect syntax near ‘)’.
Exception caught in: Epicor.ServiceModel
Error Detail
Description: Error accessing the database: Incorrect syntax near ‘)’.
Program: System.Data.dll
Method: OnError
Original Exception Type: SqlException
SQL Line Number: 9
SQL Error Number: 102
Framework Method: b__1
Framework Line Number: 278
Framework Column Number: 36
Framework Source: b__1 at offset 1245 in file:line:column c:_Releases\ICE\3.1.400.31\Source\Framework\Epicor.Ice\Services\TablesetBound.cs:278:36
Server Trace Stack: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TrySetMetaData(_SqlMetaDataSet metaData, Boolean moreInfo) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource
1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at Ice.TablesetBound`3.<>c__DisplayClass8.b__1() in c:_Releases\ICE\3.1.400.31\Source\Framework\Epicor.Ice\Services\TablesetBound.cs:line 278
Client Stack Trace
at Epicor.ServiceModel.Channels.ImplBase`1.ShouldRethrowNonRetryableException(Exception ex, DataSet[] dataSets)
at Erp.Proxy.BO.CRMCallImpl.GetRows(String whereClauseCRMCall, String whereClauseCRMCallAttch, String whereClauseCRMCallCnt, String whereClauseCRMCallHistory, Int32 pageSize, Int32 absolutePage, Boolean& morePages)
at Erp.Adapters.CRMCallAdapter.OnGetRows(SearchOptions opts, Boolean& MorePages, String[] whereClauses)
at Ice.Lib.Framework.EpiBaseAdapter.GetRows(SearchOptions opts, Boolean& morePages)
at Ice.Lib.Searches.EpiSearchEngine.SearchUsingAdapterMethod(SearchOptions options)
at Ice.Lib.Searches.EpiSearchEngine.SearchIt(SearchOptions options, DataSet& results, Boolean& usedAdapter)
at Ice.Lib.Searches.EpiSearchEngine.SearchIt(SearchOptions options)
at Ice.Lib.Framework.EpiBaseAdapter.InvokeSearch(SearchOptions opts)
at Erp.UI.App.CRMCallEntry.CRMCallTransaction.adapterInvokeSearch(SearchOptions o)
at Ice.Lib.Framework.EpiMultiViewTransaction.InvokeSearch(SearchOptions opts)
at Erp.UI.App.CRMCallEntry.CRMCallTransaction.GetCallHistory()
Inner Exception
Incorrect syntax near ‘)’.
Inner Stack Trace
Any idea?
thanks,