Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6695363
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T06:12:47+00:00 2026-05-26T06:12:47+00:00

Hi I currently have a table view which is being filled via Core Data.

  • 0

Hi I currently have a table view which is being filled via Core Data.

I am limiting the results using NSPredicate so that only items with the same OrderNumber are displayed in the tableView.

NSPredicate *predicate = [NSPredicate predicateWithFormat:
                                @"orderNumber == %@",     orderNumberLabel.text];
NSLog(@"predicate is: %@",predicate);
[fetchRequest setPredicate:predicate];

Once the form for entering an order has been completed a button is pressed [save order] and the orderNumber is then incremented by one, as well as the orderNumberLabel.

What I expect to happen is that the tableView should then be empty as the new orderNumber has no entries in the sql database. However this does not occur and calling [myTableView reloadData]; does not resolve it either.

However, if I quit the project and re-run it I have the new orderNumber and an empty tableView. So there is something happening at run-time with the fetch request and predicate being set that I need to try & replicate with a call in my saveOrderButtonPressed method. Only problem is that I don’t know how to do this, could someone help please?

Occassionally I have also been getting the following error after quitting and re-running the app after entering orders. It is related to me changing the orderNumber but I think it will disappear once I am updating the predicate/fetchRequest. I also need some guidance on this, will I need to disable caching?

*** Terminating app due to uncaught exception 'NSInternalInconsistencyException',
reason:'FATAL ERROR: The persistent cache of section information does not match 
the current configuration.  You have illegally mutated the NSFetchedResultsController's
fetch request, its predicate, or its sort descriptor without either disabling 
caching or using +deleteCacheWithName:'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T06:12:48+00:00Added an answer on May 26, 2026 at 6:12 am

    You are right to use a NSFetchedResultsController. It is made exactly for the use you describe.
    As the error message says, you can set the cache of the NSFetchedResultsController to nil to completely disable caching – not a big performance hit when you have so few items. Or you can use +deleteCacheWithName: with the name you assigned to the cache. Only then can you change the fetch request (e.g. the predicate) and then you must do performFetch: again. Hopefully you have the delegate hooked up so your table view is automatically refreshed.
    You don’t say you are doing any of the things that will cause problems (changing predicate, sort order etc.) – are you sure you’re not?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I currently have a table with a repeater that is being filled with data
I have a table view which i want to populate with the results (XML)
Hey guys, I currently have a root table view which has a toolbar at
I currently have a table structure that looks something like this(some details omitted): ColumnName
I currently have a table which only has a single editable column. I have
I'm trying to normalize a mysql database.... I currently have a table that contains
Currently we have a table that we use to track inivitations. We have an
Currently I have a table that I search upon 4 fields, FirstName, LastName, MiddleName,
I currently have a user's table which contains a one-to-one relationship for Youtube OAuth
I have a table view which is grouped according to month and year. For

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.