Hi all,
I need to add custom fields onto RetailTransactionTable and RetailTransactionSalesTrans.
After I added custom fields, I tried to run P job.
I get error telling that "Field statementId does not exist in table RetailTransactionSalesTransX."
Then I compared table RetailTransactionSalesTransX with RetailTransactionSalesTrans, added all missed fields from RetailTransactionSalesTrans to RetailTransactionSalesTransX.
as well as RetailTransactionTableX table.
Then I ran the P job again, got another error.
2013.7.23 16:15:35:943 (10920) [1] CCommMgr::HandleException: Target request handler failed to process target request header: Microsoft.Dynamics.Retail.StoreConnect.Request.AXHandler.SCAXRequestHandlerException: AX target request handler failed to process request: AX Managed Interop failure. ---> Microsoft.Dynamics.AX.ManagedInterop.ErrorException: Error when bulk inserting data. Target table: RetailTransactionSalesTransX
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: The given ColumnMapping does not match up with any column in the source or destination.
at System.Data.SqlClient.SqlBulkCopyColumnMappingCollection.Add(SqlBulkCopyColumnMapping bulkCopyColumnMapping)
--- End of inner exception 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 Microsoft.Dynamics.AX.ManagedInterop.ClrBridgeImpl.InvokeClrInstanceMethod(ClrBridgeImpl* , ObjectWrapper* objectWrapper, Char* pszMethodName, Int32 argsLength, ObjectWrapper** arguments, Boolean* argsAreByRef, Boolean* isException)
at Microsoft.Dynamics.AX.ManagedInterop.Object.CallWithReturnType(String methodName, Type returnType, Object[] paramList)
at Microsoft.Dynamics.AX.ManagedInterop.Object.Call(String methodName)
at Microsoft.Dynamics.Retail.StoreConnect.Request.AXHandler.SCAXTargetRequestHandler.ProcessTargetRequestHeader(ISCTargetRequestHeader targetRequestHeader)
--- End of inner exception stack trace ---
at Microsoft.Dynamics.Retail.StoreConnect.Request.AXHandler.SCAXTargetRequestHandler.ProcessTargetRequestHeader(ISCTargetRequestHeader targetRequestHeader)
at CCommMgr.ProcessTargetRequest(CCommMgr* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* r_file_path, SCComponentManager scComponentManager)
Is it possible to add custom fields to RetailTransactionTable and RetailTransactionSalesTrans tables, and make the P job working correctly?
Thanks,
Alan