cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to download data from SMP 2.3 SP04

Former Member
0 Kudos

Hi,

We are using SMP 2.3 SP04 server which is a single node setup.

Ours is a native iOS application. We have more than 90 MBO's among which some are scheduled, some ondemand and some are relationship MBO's. When i try to synchronize the whole package using following code,

        SUPPersonalizationParameters * pp = [SUP_SUPDB getPersonalizationParameters];

           [pp setLogin_DistributorID:[numberFormatter numberFromString:[[UserSession getInstance] LOGINUSERID]]];

            [pp setLogin_DistributorID_Str:[[UserSession getInstance] LOGINUSERID]];

            [pp save];

            [SUP_SUPDB synchronizeWithListener:self];

I am not getting any data downloaded to device. It doesn't throw any error also.

On the other hand, When i try to download a specific group alone using below,

SUPSurgery_TypeSubscription *sp = [SUPSurgery_TypeSubscription getInstance];

[sp setS_DistributorID:myNumber];

[SUPSurgery_Type addSubscription:sp];

[SUP_SUPDB synchronize:syncgroup_name withListener:self];

I am able to get the data for this group alone. Please help me on how to sync whole package data to device.

Any help will be highly appreciated.

Thanks in Advance.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Is your application registered and visible from the list of connections in SCC?

Former Member
0 Kudos

Hi Vignesh,

Thanks for the quick reply.

Yes the application is registered and visible in the list of connections in SCC.

In SMP 2.3 SP04 please let me know whether [SUPDB synchronize]; download all the package data to device or we need to download it separately using synchronization group only?

Or will there be any problem with personalization key and because of that i am not getting data?

We used same personalization key and same package in SUP 2.1.2 and it was working fine in that.

Now after importing that package to SMP 2.3 workspace and after deploying it to SMP 2.3 SP04 server we are facing this issue.

Please help me on how to download the whole package data to device.

Former Member
0 Kudos

Please follow the steps mentioned in the migration guide below. I have also highlighted certain points from the below linked pdf.

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01912.0234/doc/pdf/smp_devguide_migr...

"If you are migrating from a version earlier than 2.2 SP02, see Developer Guide: Migrating to Sybase Mobile SDK 2.2 SP02, and its updates, on Product Documentation, the Migrate Object API Applications section: http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01857.0222/doc/html/mqu1352843141277... "

Former Member
0 Kudos

Hi Vignesh,

Thanks for the link. We followed all the steps mentioned in that link and then only deployed the package to the server. But still we are unable to download the whole package data to device.

I am not sure on why when i try to synchronize it separately using synchronization group i can get the data but when i try to download the whole package i am not getting any data.

Please let me know on how to debug this. Will there be any problem with the personalization key that is set?

Former Member
0 Kudos

Is your jar based on 2.1.2 SDK and iOS app object api 2.1.2 ?

If yes,you  try setting up the SUP101 project based on 2.1.2 in the below link on the 2.3.4 server

and check if data can be downloaded.

http://scn.sap.com/docs/DOC-27520

Otherwise try migrating your migrating your mbo artifacts and object apis to 2.3.4 as mentioned earlier.If it is already migrated setup the SMP101 and check if the data can be downloaded from the sample DB. Adjust your code according to the tutorial for SMP101.

Former Member
0 Kudos

Hi Vignesh,

Thanks for the reply.

Right now we are using SMP 2.3.4 server and workspace only. The object apis that we are using also belong to 2.3.4. We migrated the package to new workspace and then deployed it to server.

Before deploying our package, we tried registering a sample app with sample db as backend(we followed SMP101 tutorial). And yes i was able to download the data from sample db using [SUPDB synchronize]; statement.

Only with our project package we are facing this issue, that too when i try to synchronize it using [SUPDB synchronize]; statement only. When i try [SUP_SUPDB synchronize:syncgroup_name withListener:self]; it is working fine and i am able to see the data downloaded in db.

In this case please suggest me on what needs to be done.

Former Member
0 Kudos

Well in that case I can only point you to the client side debugging found in page 79 and 80 of the below pdf

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01907.0234/doc/pdf/smp_devguide_iOS_...

Former Member
0 Kudos

Hi Vignesh,

Already i have set the log level to debug and enabled all traces in iOS code. I have also implemented change log as follows,

        SUPObjectList *changeLogs = (SUPObjectList *)[SUPDB getChangeLogs:[SUPQuery getInstance]];

        if([changeLogs size] > 0)

        {

           

            // delete these so we don't do updates later on these.

            [SUPDB deleteChangeLogs];

           

            for (id<SUPChangeLog> cl in changeLogs)

            {

              

                MBOLogDebug(@"Changelog: %@['%c', %ld]\n",

                            [SUPDB getEntityName:[cl entityType]],

                            [cl operationType], [cl surrogateKey]);

               

           

                  }

    }

Former Member
0 Kudos

Hi Vignesh,

From this change logs after synchronization i got changelog for only one MBO out of 90 MBO's.

And i was able to see the data for that only one MBO in local db also. All other MBO's were empty.

Former Member
0 Kudos

Please check the cache db in ther SMP server. Maybe your cache database itself is empty in the server except the one mbo .

Former Member
0 Kudos

Hi Vignesh,

Thanks for the quick reply.

We checked cdb and data is there for all the MBO's. Also as i already said if i synchronize particular group using sync group name, i am able to download the data for the MBO's which are present in that sync group to device db. Only when i synchronize the whole package i am getting this issue.