cancel
Showing results for 
Search instead for 
Did you mean: 

Error while trying to sync with the SUP server

Former Member
0 Kudos

Hi,

I'm currently working on a SUP based ios application, whenever I'm trying to sync with the server, following error gets logged up in the console,

SUPPersistenceException: Sync failed: -1305 (MOBILINK_COMMUNICATIONS_ERROR) %1:86 %2:405 %3:0;Parameter 1:86;Parameter 2:405;Parameter 3:0"


Whereas the device is successfully getting registerd in the SUP.

Kindly provide help asap

Accepted Solutions (1)

Accepted Solutions (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos


This is very common error while synchronization.

Please clarify few things:

  1. Make sure backend server is reachable/up and running. Which backend? SAP or other?
  2. Are you using any relay server?
  3. Can you share sync profile settings (code) details?

Rgrds,

JK

Former Member
0 Kudos

Hi JK,

Thanks for the reply.

Yes backend server is up and running. We are using SAP, SUP 2.2 SP05.

Following is the code I'm usign to setup and sync with the server,

SUPApplication *application = [SUPApplication getInstance];

   

    [application setApplicationIdentifier:@"procrm"];

    [application setApplicationCallback:_applicationCallBackHandler];

   

    //MBS for device registeration

    SUPConnectionProperties *properties = [application connectionProperties];

    [properties setServerName:@"eolmobile.essar.com"];

    [properties setFarmId:@"SUPFarmMBS"];

    [properties setPortNumber:80];

    [properties setNetworkProtocol:@"http"];

    //[properties setUrlSuffix:@"/ias_relay_server/client/rs_client.dll/SUPFarmRBS"];

   

    SUPLoginCredentials *loginCredentials = [SUPLoginCredentials getInstance];

    [loginCredentials setUsername:@"supAdmin"];

    [loginCredentials setPassword:@"Oilgate5"];

    [properties setLoginCredentials:loginCredentials];

    [properties setActivationCode:@"5165"];

   

    if(![ESRProCRMDB databaseExists]) {

        [ESRProCRMDB createDatabase];

    }

   

    SUPConnectionProfile *connectionProfile = [ESRProCRMDB getSynchronizationProfile];

    [connectionProfile setNetworkProtocol:@"http"];

    [connectionProfile setPortNumber:80];

    [connectionProfile setServerName:@"eolmobile.essar.com"];

    [connectionProfile setDomainName:@"default"];

    [connectionProfile setAsyncReplay:YES];

   

    [ESRProCRMDB registerCallbackHandler:_callBackHandler];

    [ESRProCRMDB setApplication:application];

   

    if([SUPApplication registrationStatus] == SUPRegistrationStatus_REGISTERED) {

        [application startConnection:0];

    } else {

        [application registerApplication:0];

    }

   

    ESRPersonalizationParameters *personalizationParameters = [ESRProCRMDB getPersonalizationParameters];

    [personalizationParameters setUserId:@"SFA_TSM1"];

    [ESRProCRMDB subscribe];

    @try {

        [ESRProCRMDB synchronize];

    }

    @catch (NSException *exception) {

        DDLogError(@"Exception : %@", exception);

    }

midhun_vp
Active Contributor
0 Kudos

Keep an external breakpoint in RFC as the same user used in SAP connection profile of Sybase workspace. So while RFC debugging we can get the PK value reaching SAP and check where the issue comes. Most probably the issue will be with the data you are sending from device to SAP.

Try using the SCC credentials to register and Sync (default: supAdmin and s3pAdmin).

Midhun VP

midhun_vp
Active Contributor
0 Kudos

Is the issue resolved ?

Former Member
0 Kudos

Hi Midhun,

I'm not facing this issue every time.

But when this exception comes, then after when ever I try to synchronize my device every time I get the same exception and hence I need to uninstall and re-install the app again on the device.

Kindly reply asap.

Regards,

Serveshwar Mishra

midhun_vp
Active Contributor
0 Kudos

Are you able to reproduce the issue ?

You can find more details of the error in server logs inside the logs folder in SUP installation path (C:\...\Servers\UnwiredServer\logs). Provide the error from server logs.

Regards,

Midhun VP

Former Member
0 Kudos

Thanks Midhun.

I'll surely check and provide the info as soon as the issue gets reproduced.

Ragards,

Serveshwar Mishra

Answers (0)