|
![]() |
#1 |
Участник
|
emeadaxsupport: P job Error 32769 in Retail Store Connect
Источник: http://blogs.msdn.com/b/axsupport/ar...e-connect.aspx
============== When fetching data from the StoreDB you might see this message. The reason is normally configuration keys or added system fields. By adding the code suggestion, the system will report all the columns that are incorrect and you can then take action by mofifying the Transfer field list in AX subjobs. ERROR IN THE HQ RETAIL STORE CONNECT ERROR 32769 Target request handler failed to process target request header: SCAXRequestHandlerException: AX target request handler failed to process request: AX Managed Interop failure. ErrorException: Error when bulk inserting data. Target table: RetailTran CODE SUGGESTION \Classes\RetailConnSCDataBulkCopy\bulkCopyToTemp public void bulkCopyToTemp(str physicalTempDBTableName) { System.Data.SqlClient.SqlBulkCopy sqlBulkCopy; str connStr; System.Data.SqlClient.SqlBulkCopyColumnMappingCollection colMapping; str columnName; str dstTableName; int i; System.Xml.XmlReader xmlReader; Microsoft.Dynamics.Retail.StoreConnect.Request.Base.SCSimpleXmlDataReader xmlDataReader; System.Collections.Specialized.StringCollection columnNameCollection; System.Collections.Specialized.StringCollection guidColumnNameCollection; System.Exception clrException; str exceptionMessage; str columnName2; str missingColumns; str systemfields1 = 'CreatedBy'; str systemfields2 = 'ModifiedBy'; str systemfields3 = 'ModifiedDateTime'; str systemfields4 = 'CreatedDateTime'; str systemfields5 = 'CreatedTransactionId'; str systemfields6 = 'ModifiedTransactionid'; str systemfields7 = 'Recid'; str systemfields8 = 'RecVersion'; ; columnNameCollection = new System.Collections.Specialized.StringCollection(); guidColumnNameCollection = new System.Collections.Specialized.StringCollection(); for (i = 1; i Microsoft.Dynamics.AX.ManagedInterop.ErrorException: Error when bulk inserting data. Target table: RetailTransactionTable Target columns: createdBy,modifiedby, Check if these fields are disabled by the license configuration keys. If the configuration keys are correct, change the transfer fieldlist on the scheduler subjob. It is also not allowed to add system fields to the Transferfield list 'CreatedBy,ModifiedBy, ModifiedDateTime, CreatedDateTime, CreatedTransactionId, ModifiedTransactionid, Recid, RecVersion' 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.SqlBulkCopy.AnalyzeTargetAndCreateUpdateBulkCommand(BulkCopySimpleResultSet internalResults) at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternal() at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServer(Int32 columnCount) at System.Data.SqlClient.SqlBulkCopy.WriteToServer(IDataReader reader) --- End of inner exception stack trace --- at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) 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) t100543_890F916D362F4C1C8368EE4FEECE4AF2.1 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* r_file_path, SCRequestHandlerManager scRequestHandlerManager) Author: Kim Truelsen Release date: 3/12-2012 Источник: http://blogs.msdn.com/b/axsupport/ar...e-connect.aspx
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|