Monitoring and queueing

NAVcommerce brings you real-time integration between NAV and Magento. In order to accomplish this, the add-on comes with an integration mechanism that runs in the background. Highly simplified this mechanism monitors all relevant changes in your database. This can be a direct change of an item description, but also the creation of a new sales or purchase order that might influence the available inventory. Anything that might lead to an update of the Magento webstore is first queued and then processed by the integration mechanism.

If you want to see what the integration mechanism is doing just go to: /Departments/NAVcommerce/Administration/Integration. Here you’ll find 3 lists. Queue, the list of records that still have to be processed. Errors, whatever went wrong during synchronization. Log, the list of every synchronization task that was executed.

Queue
In manual mode (see below) this list shows exactly what has happened and therefore got queued. If you want to sync a single record or maybe few records, click on the actions tab in the ribbon bar, and then click Synchronize Selected. This might come in handy when testing or debugging something. To synchronize the full list just click on the Synchronize button. The system will then process the queue, just as when in automatic mode.

Errors and retries
Records that end up in the queue at some point may bump into a problem. This doesn’t directly have to be a critical error. Sometimes there are other reasons why a certain record cannot be processed at that very point in time. Therefore we have a retry mechanism in place. So when a record cannot be synchronized, the system will automatically retry for 4 more times. After that, when still receiving an error response, we will flag it as an error, and it will appear in this list.

Log
First, you have to enable logging on the general setup page. After this is done, you will find all the details on what the integration mechanism is doing in this list. Double click an entry to see the full details of the data object that was sent.

Manual or automatic mode

Synchronizing data in NAVcommerce can be done either manually or automatically. During the initial setup, implementation or testing phase, you might want to run in manual mode, because it allows you to exactly see what the system is doing, or to process one or more specific records. In a later stage, you probably want to switch to automatic mode. To do this, go to the NAV job queue entries, and set all NAVcommerce code units to run on a recurring basis (scheduled), and set their status to Ready.

If you want to switch to manual mode again, set these job queue entries to On Hold.

Was this helpful?

Yes No
You indicated this topic was not helpful to you ...
Could you please leave a comment telling us why? Thank you!
Thanks for your feedback.