Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

AX2012 Retail Store Connect processing error 32769 - datetime conversion

$
0
0

Hi all.

Has anyone encountered this error when the Store's Retail Store Connect is processing records?

We have a fresh install of AX 2012 Retail (FPK). Small set-up with H/O Retail Store Connect service on the AOS Server and another on the Store Server with the POS Database created.

Finally got data flowing to the Store's Message Database, however none of the records are being processed into the POS database. 

In the Store Message Database's Outgoing messages table, the status for all jobs remains at 4 with error 32769. Error message is:

Target request handler failed to process target request header: SCSqlRequestHandlerException: SQL target request handler failed to process request.  InvalidOperationException: The given value of type String from the data source cannot be converted to (rest of it from the log file)...

 

2012.12.6 18:39:9:159            (2452)     [1]           CCommMgr::HandleException: Target request handler failed to process target request header: Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlRequestHandlerException: SQL target request handler failed to process request. ---> System.InvalidOperationException: The given value of type String from the data source cannot be converted to type datetime of the specified target column.

---> System.FormatException: Failed to convert parameter value from a String to a DateTime. 
---> System.FormatException: String was not recognized as a valid DateTime.
   at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
   at System.Convert.ToDateTime(String value, IFormatProvider provider)
   at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
   at System.Convert.ChangeType(Object value, Type conversionType, IFormatProvider provider)
   at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType)
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlParameter.CoerceValue(Object value, MetaType destinationType)
   at System.Data.SqlClient.SqlBulkCopy.ConvertValue(Object value, _SqlMetaData metadata)
   --- End of inner exception stack trace ---
   at System.Data.SqlClient.SqlBulkCopy.ConvertValue(Object value, _SqlMetaData metadata)
   at System.Data.SqlClient.SqlBulkCopy.WriteToServerInternal()
   at System.Data.SqlClient.SqlBulkCopy.WriteRowSourceToServer(Int32 columnCount)
   at System.Data.SqlClient.SqlBulkCopy.WriteToServer(IDataReader reader)
   at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlWriteRequestRunner.Run(SqlConnection connection, SqlTransaction transaction)
   at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlTargetRequestHandler.ProcessWriteRequest(SqlConnection connection, SqlTransaction transaction)
   at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlTargetRequestHandler.ProcessTargetRequestHeader(ISCTargetRequestHeader targetRequestHeader)
   --- End of inner exception stack trace ---
   at Microsoft.Dynamics.Retail.StoreConnect.Request.SQLHandler.SCSqlTargetRequestHandler.ProcessTargetRequestHeader(ISCTargetRequestHeader targetRequestHeader)
   at CCommMgr.ProcessTargetRequest(CCommMgr* , basic_string<wchar_t\,std::char_traits<wchar_t>\,std::allocator<wchar_t> >* r_file_path, SCRequestHandlerManager scRequestHandlerManager)

This happens for all N Jobs and nothing gets processed.

Had a look inside the Currency N-1000 job package and there are lots of DateTime fields in the individual xmls, and did notice that datetime format for them is MM/dd/yyyy.  Both servers are configured as NZ locale which has dd/MM/yyyy format.

Why is the H/O RSC using MM/dd/yyyy format; or, why is the Store RSC not doing the correct conversion; or, is this something else altogether?

Any help will be highly appreciated. Thanks.

Ashok

 

 


Viewing all articles
Browse latest Browse all 73760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>