cancel
Showing results for 
Search instead for 
Did you mean: 

Synchronize problem

Former Member
0 Kudos

Hi experts!

I develop smart synchronization application (2-way). After synchronizing I can see on MI client all data, than I change it and with next synchronization I tried to send it to midleware.

Here is a problem,data doesn't appear after synchronization at midleware but I need to synchronize few times to see it this data at midleware.

Could you give me some advice to see data immediately after first synchronization?

Thanks in advance!

Michal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi michal,

one thing you can do is to define you syncbo are synchronous.

atribute reqDirectSync is set to true.

depending on the volume of data you are trying to upload, and the queue of uploaded data into the MI middleware, there will be some delay until your

message is processed by the synchronizer and got reflected into the backend.

regards

jo

Former Member
0 Kudos

Thanks for reply

I tried to set reqDirectSync to true and I also put some code

SyncBoOutDeltaFacade dF = SmartSyncRuntime.getInstance().getSyncBoOutDeltaFacade();

dF.setSendType(syncBoDescriptor, SyncBoOutDeltaSendType.SEND_DIRECT);

But it didn't solve my problem. Do you have some any suggestion ?

Regards

Former Member
0 Kudos

Hi

I found another forum where i found following code:

SmartSyncRuntime ssRuntime = SmartSyncRuntime.getInstance();

SyncBoOutDeltaFacade boDeltaFacade = ssRuntime.getSyncBoOutDeltaFacade();

SyncBoDescriptorFacade descriptorFacade = ssRuntime.getSyncBoDescriptorFacade();

SyncBoDescriptor boDesA = descriptorFacade.getSyncBoDescriptor(SYNCBO_NAME_INVENTORY);

System.out.println("SYncbo descriptor: "+boDesA);

boDeltaFacade.setSendType(boDesA,SyncBoOutDeltaSendType.SEND_DIRECT);

SmartSyncRuntime.getInstance().getSyncBoDeltaRequestFacade().

getSyncBoDeltaRequest(boDesA).setProcessing(SyncBoDeltaRequestType.DIRECT_REQUEST);

SyncManager.getInstance().synchronizeWithBackend();

It worked fine only once When I want to use this method second time, during synchronization show following exception: com.sap.ip.me.api.persist.core.PersistenceException: key not found: 7048625.

Any suggestion are very appreciated!

MIchal

Answers (0)