Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack
When a communication issue occurs, an error is returned by Commerce Data Exchange: Synch Service. You can view Synch Service messages in the following locations.
Note
Synch Service is required for Retail only in Microsoft Dynamics AX 2012 R2 and Microsoft Dynamics AX 2012 Feature Pack. In Microsoft Dynamics AX 2012 R3, this component is used only to support previous versions of Retail POS while you upgrade (N-1).
Monitoring tool |
Description |
---|---|
Synch Service messages |
View status and error messages for Synch Service in the Commerce Data Exchange: Synch Service messages form. (Click Retail > Inquiries > Commerce Data Exchange: Synch Service messages.) To trace the history of a message, select the message, and then click View message tree to open the Commerce Data Exchange: Synch Service message tree form. In this form, you can see the origin and routing of the message. ![]()
You must configure an upload profile before messages are available in Microsoft Dynamics AX. Create upload profiles by using the Commerce Data Exchange: Synch Service upload options form. (Click Retail > Setup > Retail scheduler > Channel integration > Commerce Data Exchange: Synch Service upload options.)
Messages are stored in the Microsoft Dynamics AX database. To free disk space, you can periodically delete stored messages. For more information about one of these forms, open the form, and then press F1. |
Microsoft Dynamics AX Infolog |
If you run a job manually in Microsoft Dynamics AX, and Microsoft Dynamics AX cannot communicate with Synch Service, an error code is displayed in the Infolog form. If the scheduler job runs as part of a batch, you can view error messages in the Batch job history form. For more information about batch processing, see Process batch jobs and tasks. |
Synch Service log file |
You can configure Synch Service to save error information in a log file. You can specify the location of the log file, the level of logging, and the maximum number of lines in the log file. For information about how to configure logging for Synch Service, see Configure settings for Synch Service. |
Windows event log |
Depending on how logging is configured for Synch Service, you may be able to view full logs of Synch Service events in the Windows event log of the host computer. For information about how to configure logging for Synch Service, see Configure settings for Synch Service. |
Troubleshoot error codes in Synch Service
Use the information in the following table to troubleshoot common errors in Synch Service. Errors in Synch Service are typically caused by one of two general issues: an error in communication between Microsoft Dynamics AX and Synch Service, or an error in the processing of a job.
Note
The same error code can represent multiple issues. When you troubleshoot, you should consider both the documentation about the error code and the detailed error message that is displayed together with the error code.
Code |
Definition |
Suggested resolution |
---|---|---|
4096 |
Error inserting in system tables An error occurred while Synch Service was confirming the data package. |
Review the Synch Service error log for more information. |
4097 |
Remote connection dropped The TCP/IP connection was ended while Synch Service was forwarding a package, or the receiving instance of Synch Service was shut down during the transfer. |
Restore the network connection. If the network connection is slow or overloaded, consider increasing the TCP/IP time-out for both Synch Service instances. You can adjust the TCP/IP time-out in Synch Service Settings. |
4098 |
Canceled because of send and receive size The registered size of the package does not match the actual size of the package. This issue is most likely caused by a transmission failure. |
Resend the package by running the Retail Scheduler job again. |
4099 |
Cannot find new packet number Synch Service could not assign a new package number to an incoming package. Typically, this issue occurs when the message database for the receiving instance of Synch Service is configured incorrectly in Synch Service Settings. |
Confirm that the message database is configured correctly, and that the Synch Service user has the required permissions. |
4100 |
Cannot instance a socket The operating system could not create a Windows TCP/IP socket. TCP/IP might not be installed or enabled on the computer. |
Confirm that the TCP/IP protocol is installed and enabled on the computer. |
4102 |
HopCount has exceeded its maximum value A package cannot be transferred, because the hop counter for the package has reached the maximum that is set in Synch Service Settings. This error can occur when a service name is incorrectly assigned to an IP address. The error can also be caused by an inconsistency between the server name for a location and the actual server name for the instance of Synch Service. |
|
8192 |
Error in processing request An unhandled exception occurred when Synch Service was reading from or writing to a database. This error is typically not related to the database connection. |
|
12288 |
An error occurred connecting to Synch Service Microsoft Dynamics AX cannot connect to Synch Service. This error can occur in the following situations:
|
|
12295 |
Waiting for a previous package A previous package that is part of the same JobID has not been processed successfully. Check the job status to determine whether the job is waiting, or whether there is an issue with the job. |
|
12305 |
Error while sending package information |
|
12306 |
Error while transferring package A connection has failed, or the network is unstable. |
|
16384 |
Error writing file |
|
16385 |
Error creating file Synch Service cannot write to the hard disk. Possible causes include the following issues:
|
|
16386 |
Error reading file Synch Service was trying to read a file that does not exist. |
Re-create the file by running the job again. |
24577 |
Synch Service system error Synch Service encountered a system error. This error code represents several issues that might occur with the service. |
See the error log for more information. |
24578 |
Synch Service communication error Synch Service encountered a communication error. This error code represents several communication issues that might occur. |
|
24579 |
Synch Service job metadata processing error An error occurred when Synch Service was preprocessing a request package. |
See the error log for more information. |
24580 |
Synch Service message database error Synch Service cannot connect to the message database. Possible causes include the following issues:
|
See the error log for more information. If Synch Service cannot access the message database, verify the connection string to the database in the following registry setting: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\ Dynamics \6.0\Retail Store Connect\Servers \SERVICE_INSTANCE_NAME, key: SysConnStr |
28673 |
Error when request handler manager is preparing/packing/unpacking request and processing temp data files Possible causes include the following issues:
|
|
32769 |
Error when request handler fails to process request Typically, this kind of error means that data from the channel database or the Microsoft Dynamics AX database cannot be read or written. This issue can occur when the scheduler job is not configured correctly. |
Because there are many possible causes for this error code, we recommend that you see the error log for the detailed error message from the database. |
Troubleshoot common issues with data packages
Use the information in the following table to troubleshoot issues with data packages. To view the information that is contained in a data package, you must use Commerce Data Exchange: Synch Service Pack Viewer. For more information, see Synch Service Pack Viewer.
Issue |
Solution |
---|---|
A package that failed blocks the processing of other packages. |
When a package is not processed successfully, its blocked status can prevent other packages from being sent, even after you have resolved the cause of the error. To resume ordinary communications, in the message database, set CancelledByUser=1 for the messages that are related to the blocked package. If Synch Service was configured to upload status messages to Microsoft Dynamics AX, you can view and cancel error messages in the Commerce Data Exchange: Synch Service messages form. (Click Retail > Inquiries > Commerce Data Exchange: Synch Service messages.) If Synch Service was not configured to upload status messages, you must use Microsoft SQL Server Management Studio to cancel the blocking messages. On the originating computer, in SQL Server Management Studio, expand the Databases folder, click the message database, and then click New Query. In the query pane, type update dbo.IncomingMessages set CancelledByUser=1 where PackageNo='nnnn', where nnnn is the ID number of the failed package. Then click Execute. |
Synch Service at the head office cannot read results for a query packet. |
If a job is unsuccessful, and no records were changed in the store database, follow these steps to determine the reason for the failure.
|
Synch Service crashes when it processes many transactions. |
The default thread time-out for Synch Service is 10800 seconds, but this value may not be sufficient when many transactions are processed. If you are processing more than 200,000 transactions, and Synch Service crashes without synchronizing the data, try increasing the thread time-out. |