Azuretable.PullAsync() not syncing all records from azure db to local SQLite db.

Hi All,
I am developing a Windows store app (WinRT 8.1) where I am implementing offline capabilities using azure mobile services.
When I am syncing the data from azure to local SQLite, some records not syncing even though the data exist in that table... I cross checked my code and the query to filter the records, everything is fine from backend code. But I am not able
to figure out the issue, why some are syncing and some are not syncing.
The below mentioned is the code I am using to sync the table data from azure
var devicesList = await deviceTbl.ToCollectionAsync();
foreach (var device in devicesList)
var pItems = await planogram_ItemTbl.Where(x => x.DEVICE_ID == device.DEVICE_ID).ToCollectionAsync();
foreach (var pItem in pItems)
await productTbl.PullAsync("ProductSync_Table", productTbl.Where(x => x.Id == pItem.productGUID));
I want to sync only the data from product table based on the pItems I have, Is this way is correct ...
Can anyone suggest me how to pull the records based on the another table records...
With this approach I have sync problems, some records are not syncing and it is taking more time.

Here are a few questions for you.
1) Do you get any errors reported?
2) Is "ProductSync_Table" the same name of the table in your Mobile services database?
Rather than going through a loop to Pull the data, you can try something like below:
var newItems = pItems.Select(pItem => pItem.productGUID).ToList();
await productTbl.PullAsync("ProductSync_Table", productTbl.Where(x => newItems.Contains(x.Id)));
I haven't tested the code but something like above should help.
Let me know if that helps.
Abdulwahab Suleiman

Similar Messages

  • Incomplete Data on report (report does not show all records from the table)

    Hello,
    I have problem with CR XI, I'm running the same report on the same data with simple select all records from the table (no sorting, no grouping, no filters)
    Sometimes report shows me all records sometimes not. Mostly not all records on the report. When report incomplete sometimes it shows different number of records.
    I'm using CR XI runtime on Windows Server 2003
    Any help appreciated
    Thanks!

    Sorry Alexander. I missed the last line where you clearly say it is runtime.
    A few more questions:
    - Which CR SDK are you using? The Report Designer Component or the CR assemblies for .NET?
    - What is the exact version of CR you are using (from help | about)
    - What CR Service Pack are you on?
    And a troubleshooting suggestion:
    Since this works on some machines, it will be a good idea to compare all the runtime (both CR and non CR) being loaded on a working and non working machines.
    Download the modules utility from here:
    https://smpdl.sap-ag.de/~sapidp/012002523100006252802008E/modules.zip
    and follow the steps as described in this thread:
    https://forums.sdn.sap.com/click.jspa?searchID=18424085&messageID=6186767
    The download also includes instructions on how to use modules.
    Ludek

  • Delta package not fetching all records from Delta queue in r/3

    Hello,
    I have loaded Goods Movement Data using 2LIS_03_BF datasource into my BI system.
    The Delta has been initialized and everyday the delta is being moved from r/3.
    I observed that when I execute my delta package not all delta records are fetched into PSA from r/3.
    For Ex: Before starting my delta package I checked in SMQ1 of my R/3 system and see that there are around 1000 records.On executing the delta package I see that the record count is reduced from 1000 to 400 in SMQ1.On executing the delta package again I get the remaining 400 records into my PSA.
    Shouldn't the delta package get all records from the queue on single execution??
    Is there some setting to define the nr of records to be loaded?
    I'm confused with this behaviour.Please help me understand this behaviour.
    Thank You.

    Hello,
          First thing: the data is not transferred from the SMQ1 queue, rather the data is transfered to BW from the RSA7 Delta queue. You need to check the number of records present in the RSA7 queue.
    Since SMQ1 is involved, i think you are using the unserialized V3 update method. In this method, when data is first written to the application tables, it is first transferred to the SMQ1 update queue,then via a job to the LBWQ extractor queue and then to the RSA7 delta queue. So the number of entries that you see in the SMQ1 queue are not the number of entries that have to be transferred to BW but rather the records that are waiting to be transferred to the extractor queue in LBWQ. Similarly, in LBWQ, the number of entries displayed here are not the no of entries that are going to be transferred to BW, they are the no of entries that will be transferred to the delta queue RSA7 when the next v3 update job runs.
    If you want to check the number of records that will be transferred to BW, select the datasource in rsa7 and then click on the display data entries button.
    Hope this helps.
    Regards.

  • Form does not display all records from table

    Hi guys
    I modified one form that was based on a signle DB table. I removed certain fields from the table and added some extra fields to that table. Then based on the new table I also modified the form and removed the text items related to old fields in the table and added new text items pointing to the new fields now. II have checked all the new items properties and they have don't seem to be wrong or so. But now the problem is the form does not display all the records from the table. before it used to display all records from the table when qureied but not now. It only certain records from the table containing all new data and also old data but the form does not display other records though I don't see any obvious discrepancy. Remember that the before doing the modifications, I have table back for the old, created another table that contained new records for the new fields, and then I inserted the old records and updated the new table data in the new table with these new table values. So this way I have got my new table. Could someone help why the new modified form fails to display all records from the new table updated table though it display some of them successfully.
    Any help will be appreciated.
    Thanks

    hi
    Set the block property of "Query All Records" to "YES"
    hope it will work.
    Faisal

  • Insert statement does not insert all records from a partitioned table

    Hi
    I need to insert records in to a table from a partitioned table.I set up a job and to my surprise i found that the insert statement is not inserting all the records on the partitioned table.
    for example when i am using select statement on to a partitioned table
    it gives me 400 records but when i insert it gives me only 100 records.
    can anyone help in this matter.

    INSERT INTO TABLENAME(COLUMNS)
    (SELECT *
    FROM SCHEMA1.TABLENAME1
    JOIN SCHEMA2.TABLENAME2a
    ON CONDITION
    JOIN SCHEMA2.TABLENAME2 b
    ON CONDITION AND CONDITION
    WHERE CONDITION
    AND CONDITION
    AND CONDITION
    AND CONDITION
    AND (CONDITION
    HAVING SUM(COLUMN) > 0
    GROUP BY COLUMNS

  • DTP does not fetch all records from Source, fetches only records in First Data Package.

    Fellas,
    I have a scenario in my BW system, where I pull data from a source using a Direct Access DTP. (Does not extract from PSA, extracts from Source)
    The Source is a table from the Oracle DB and using a datasource and a Direct Access DTP, I pull data from this table into my BW Infocube.
    The DTP's package size has been set to 100,000 and whenever this load is triggered, a lot of data records from the source table are fetched in various Data packages. This has been working fine and works fine now as well.
    But, very rarely, the DTP fetches 100,000 records in the first data package and fails to pull the remaining data records from source.
    It ends, with this message "No more data records found" even though we have records waiting to be pulled. This DTP in the process chain does not even fail and continues to the next step with a "Green" Status.
    Have you faced a similar situation in any of your systems?  What is the cause?  How can this be fixed?
    Thanks in advance for your help.
    Cheers
    Shiva

    Hello Raman & KV,
    Thanks for your Suggestions.
    Unfortunately, I would not be able to implement any of your suggestions because, I m not allowed to change the DTP Settings.
    So, I m working on finding the root cause of this issue and came across a SAP Note - 1506944 - Only one package is always extracted during direct access , which says this is a Program Error.
    Hence, i m checking more with SAP on this and will share their insights once i hear back from them.
    Cheers
    Shiva

  • Ipad 1 not syncing all photos from icloud

    i have just bought an ipad 1 64gb (ios 5.1.1) all works fine but only 120 of the 1000 photos have synced via icloud?
    any ideas? do i need to plug into itunes 1st time?
    thanks

    You should have been syncing photos to a computer to archive them, but it looks like you haven't been syncing via itunes to the computer.
    I suspect from your description that you have been using photo stream.  This is a service used to sync photos between devices, it's not a storage/archive service.  Photos are kept in the stream for up to 30 days, after which they are deleted.  If you've been using photo stream, then this is most likely the problem.  Unless you've backed up the photos elsewhere, then they are gone.  It's too late to use itunes for getting back photos.  hopefully they are on some other device or computer.

  • HT1351 can not sync all playlists from macBook to iPAD

    As it says in the title. The playlists contain podcasts which are not listed in the podcast menu and a ripped CD, all are ticked on the MacBook. Do a sync everything and they arrive on the iPAD, then change to ticked and they get deleted even though they are ticked.
    Help!!

    Set your Gmail up as an Exchange Account on your iPad. You contacts, calendar and email will all sync.
    http://www.google.com/support/mobile/bin/answer.py?hl=en&answer=138740

  • IPhone 5s using iOS 8.1 not syncing all music from iTunes

    Before I updated to the iOS 8.1 (though I didn't ever do iOS 8), I was having problems with my computer saying some of my songs could not be located, then it randomly started working again, but my phone would show all the songs, and none of them would actually work, and look as though they were downloading themselves. Now that I've updated it's working for more songs but I'm still missing half of my library.

    Did you already try to consolidate the iTunes library? iTunes will search for all listed music and make sure that all songs are part of the library:
    Consolidate your files in the iTunes folder
    You can consolidate all the files in your library in the iTunes folder—for example, to make it easier to move your library to a new computer.
    Choose File > Library > Organize Library.
    Select “Consolidate files.”Files remain in their original locations, and copies are placed in the iTunes folder.
    copied from iTunes 11 for Windows: Change where your iTunes files are stored

  • CUBE Not getting All records from DSO

    Hi Experts ,
    We have a situation where we have to load data from a DSO to a Cube . The DSO contains only 9 records and while we r loading the data into cube , the cube is only getting 2 records . Thus 7 records are missing. Also The Cube contains more Fields  than DSO. in the transformations , for the extra fields we have written end routine and those extra fields will get data by reading master data .. Any pointers how to get the missing records or what is the error ...
    Sam

    Why multiple threads ????

  • Requisition Change History - not showing all records from CDHDR/CDPOS

    Hello,
    When viewing the Item Changes for a requisition in ME53N, I don't always see all the records that are contained in tables CDHDR / CDPOS. The missing records are related to release strategies. Does anyone have any ideas why this happens?
    Thank you,
    Regards,
    Jackie

    Hello Jackie,
    check flag "Change document" is set for the data elements.
    Start transaction SE11, enter database table, push button "Display".
    Check register "Fields" In the following screen, doulbe click on "Data element" for the field you want to check.
    Select register "Further Characteristics" in the following screen, here you can find flag for "Change document".
    Best Regards, Dirk

  • Matrialized view not refreshing all records from source.

    My materialized view is not refreshing a fixed number of rows i.e 198 every time from source to target.What are the reasons for such behavior. Also what should i do to resolve this discrepancy.
    My mv is a FAST REFRESH ON DEMAND based on ROWID.
    It has a simple sql query select col1,col2,col3 from testschema.mytable@mydb;
    Thanks,
    Sandesh

    Hello Raman & KV,
    Thanks for your Suggestions.
    Unfortunately, I would not be able to implement any of your suggestions because, I m not allowed to change the DTP Settings.
    So, I m working on finding the root cause of this issue and came across a SAP Note - 1506944 - Only one package is always extracted during direct access , which says this is a Program Error.
    Hence, i m checking more with SAP on this and will share their insights once i hear back from them.
    Cheers
    Shiva

  • Full update not getting all records from PSA to ODS

    Dear BW Masters,
    I am working with MM module. Iam using standard extract structure 2LIS_02_ACC
    Iam doing full update. Getting full data 1300 records in to PSA. But getting only 298 in to my ODS. I tried changing fields in to KEY FIELDS AND IN TO DATA FIELDS in my ODS
    But could not get data.
    Pls help me..i have dead line before that i need to complete report on the same.
    Its happening with the other HDR and ITM extractors.
    PLs help me..

    Hello,
    Look at this example:
    R/3 Record:
    CustNo | Name | Order | Amount
    1234 | Customer1 | Order 1 | 100
    1235 | Customer2 | Order 2 | 200
    1234 | Customer1 | Order 3 | 300
    If Cust.No is Keyfield, In BW you will get 2 records
    1234
    1235
    If Order No is Key field, you will get 3 records.
    It is not necessary to get the same no of records as they are in R/3.

  • Itunes not syncing all songs from ipod.

    I just got a new laptop...downloaded itunes.....and plugged my ipod in. iTunes only took a few of the songs from the ipod? (55 out of 499) Why? Have no idea how to fix this

    - Unsync/delete all music and resync
    To delete all music go to Settings>General>Usage>Storage>Music>Tap edit in upper right and then tap the minus sign by All Music
    - Reset all settings                            
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes      
      - Restore to factory settings/new iOS device.                       

  • 6th gen nano not syncing all tracks from library

    Can anyone tell me what the little exclamation mark beside unsynced tracks means?  I have a 6th gen nano which will only sync 491 tracks out of 1026 in my library.  I didn't have a problem when I had a 3rd Gen nano, it only seems to have happened since getting the new one.

    It means that iTunes can no longer locate that particular track in the location it is pointed at on your PC's hard drive. See this article for more information and assistance.
    iTunes: Finding lost media and downloads
    B-rock

Maybe you are looking for

  • Qosmio G40: No sound on Windows Media player under Vista

    Hi, the last week or so the sound has gone on my Windows Media player, but only on my Tv Tuner and DVD, the files from the hard drive are not affected. Everything was ok at the start but now it does even make the startup sound. I have tried configuri

  • Full screen video issue (YouTube outside of the app?)

    i just recently upgraded from an iPhone 5 to an iPhone 6 Plus and everything has been going great. Lately, though, I have been having issues while watching full screen embedded videos (typically from YouTube) in which I am unable to select Done when

  • File Renaming-Invasion of Privacy

    Greetings, Trying to determine how to revert my music file names back to their original naming convention. After installing Itunes, the software rename and re-orgranized my music library without my persmission into their format. I would also like to

  • Backup drive - external hard drive

    i've owned a lacie 500gig firewire external hard drive for a while now but have only really just started using it. i seem to have problems when using files on the drive - when i want to open them it tries to import them onto my macbook hard disk. so

  • Script delete tmp folder

    Does anyone have a simple script that allows for deletion of a folder.  Scenario would be a temporary folder stored in specific location like C: drive.  I am able to already delete files inside folder with a simple for statement looping and removing.