Skip to Content

Planned Item synchronization is not synching SyncItemJob

Hi,

I have created Planned Item synchronization to trigger syncItemJob. The syncItemCronjob triggers SyncItemJob but not synchronizing any items. In the logs it shows as below

Starts synchronization.. Finished synchronization in 6ms. No errors. Starting pending references processing.. Finished pending references processing in 1 ms.

Can you please help if I have to configure anything specific to synchronize all the items. Please suggest how to trigger syncItemJob through a cronjob.

Thanks Srinivas

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Jul 19, 2016 at 08:55 AM

    You shouldn't schedule a SyncItemCronJob with a Trigger because it stores state about what is left to synchronise in the CronJob. It will work fine for the first run but for subsequent runs it will just think that it has already finished doing the work.

    Instead you should schedule the job. The SyncItemJob implements TriggerableJob which means that when the trigger fires it calls newExecution() This creates a new SyncItemCronJob which will then check what needs to be synchronised.

    e.g. as impex

     INSERT_UPDATE CatalogVersionSyncJob;code[unique=true];sourceVersion(catalog(id),version);targetVersion(catalog(id),version)
      ;my catalog sync;my_catalog:Staged;my_catalog:Online
    
     INSERT_UPDATE Trigger;job(code)[unique=true];cronExpression[unique=true];active[default=true]
     ;my catalog sync;0 0 1 ? * *
    
    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Andrew,

      Thanq for your response.

      i created a syncuser and assigned to SyncItemjob. I created JobSearchRestrictions on custom Item types and added to SyncItemJob. When I invoke SyncItemjob from a facadelayer instead via hmc the restrictions on custom item types are not executed and only product related restrictions are executed. Can you please suggest what to do to invoke additional restrictions other than Product.

      Thanks, Srinivas

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.