on 05-22-2014 11:45 AM
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
This is very common error while synchronization.
Please clarify few things:
Rgrds,
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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);
}
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
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.