# Incomplete Spice Dataset refresh without error and rows skipped = 0

**URL:** <https://community.amazonquick.com/t/incomplete-spice-dataset-refresh-without-error-and-rows-skipped-0/4545>\
**Category:** Q&A\
**Tags:** analysis, data-source, spice, quick-sight\
**Created:** [July 5, 2022, 7:42am UTC](https://community.amazonquick.com/t/incomplete-spice-dataset-refresh-without-error-and-rows-skipped-0/4545 "2022-07-05T07:42:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dataking](https://avatars.discourse-cdn.com/v4/letter/d/ebca7d/32.png) [@dataking](https://community.amazonquick.com/u/dataking)\
**Post date:** [July 5, 2022, 7:42am UTC](https://community.amazonquick.com/t/incomplete-spice-dataset-refresh-without-error-and-rows-skipped-0/4545/1 "2022-07-05T07:42:49Z")

</div>

I have a view say vw\_A and my data source is redshift

When I run that view (select \* from vw\_A) on workbench/datagrip/local, it yields for ex. 100 rows.  
When I run that same view on quicksight as spice data set, it yields 95 rows without errors/exceptions and rows skipped = 0

I even changed the view to a table say table\_A

When I run that (select \* from table\_A) on workbench/datagrip/local, it yields for ex. 100 rows.  
When I run that same query on quicksight as spice data set, it yields 95 rows.

I want the exact same number of rows to be pulled in quicksight.

---

<div class="post-metadata">

**Author:** ![DeepakS](https://avatars.discourse-cdn.com/v4/letter/d/b2d939/32.png) [@DeepakS](https://community.amazonquick.com/u/DeepakS)\
**Post date:** [July 15, 2022, 3:47pm UTC](https://community.amazonquick.com/t/incomplete-spice-dataset-refresh-without-error-and-rows-skipped-0/4545/2 "2022-07-15T15:47:33Z")

</div>

Hi,  
When you are running direct query against the Redshift view, results will include all the data rows available in that view however when you run the same query against the SPICE dataset based on that view, data available in SPICE is dependent on the when was that data uploaded in SPICE. SPICE supports the incremental data refresh. An incremental refresh queries only data defined by the dataset within a specified look-back window. It transfers all insertions, deletions, and modifications to the dataset, within that window’s timeframe, from its source to the dataset. You can choose your scheduling frequency such as Every 15 minutes/30 minutes/Hourly/Daily/Weekly/Monthly.

If your use case is to make sure Quick Sight dashboard visuals reflects the same data as available in Redshift view then you want to create the dataset in direct query mode and not in SPICE. You can change the query mode - Direct Query or SPICE in dataset prep editor see the attached image

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/2X/b/b193fa09e205bb60095fe9322bab053b81960b7b.png)

In case you wanted to still use SPICE dataset and schedule incremental refresh, refer this doc - [Refreshing SPICE data - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/refreshing-imported-data.html)
