cancel
Showing results for 
Search instead for 
Did you mean: 

Planned Item synchronization is not synching SyncItemJob

0 Kudos

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

Former Member
0 Kudos

If you start the job via HMC the SyncItemJob synchronize all items or not ?

Accepted Solutions (0)

Answers (1)

Answers (1)

andyfletcher
Active Contributor
0 Kudos

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 ? * *
0 Kudos

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