Repository navigation
Replies: 2 comments
|
Hi @gojyuan, can you provide more information about the problem? What does the query look like that is producing this error and what does the table schema look like? And have you checked the data in the database to see that it is indeed not NULL? Do you know what version of SQLiteData you were on when things were working and what version you are on now? |
|
Hi @mbrandonw Thank you for responding so fast. My apologies for the long reply. I have checked the database and all referenced fields are valid. The current version is 1.7.0. I do not know what the previous version was as there have been constant confirm updates during the compile phase I have one list view that is working (Payments) and 5 that do not display any records. I think I may have a couple of issues. The original db had a 6 character string for the primary key for each table. I wanted to migrate to iCloud in the future so added a new field called id (UUID). I changed all tables to use the new id as the primary key. The code is derived from your videos. Customer code does not work - error message for not NULL was for contactsID ------- Customer schema -------- Have tried primary key for customerID and also for id ------------- } --------- Customer Load -------------- The Payments code below displays records correctly. I am using specific fields in the @selection structTable ... } @selection struct CustomerPayment: Identifiable, Hashable { ----- Payment Load -------------------- |
Uh oh!
There was an error while loading. Please reload this page.
Hi
Very much a beginner here with sqlitedata but familiar with sqlite. I am getting the following error on runtime
Caught error: Expected column nn (“…”) to not be NULL
This was after the upgrade to macOS 27 (xcode 27), iPadOS 27 and IOS 27 yesterday. Should have been more mindful with the upgrade process. I had a few pointer compiler errors, refreshed all packages and compiled ok.
This app was working previously on ipadOS 26 and IOS 26 using the same db which was created on a different platform so I do not have code to generate the tables.
I understand that the error is related to something else as the data checks out ok and schema is valid. I have used a different view to test and it is always the last field in the query that is displayed in the error message. The app doesn’t seem to be able to open / access the tables but can see them. ( Error message is different for missing table )
My original program ( xcode 26 ) runs on ipadOS 27 but does have issues.
Are there any settings or diagnostics that I can use to display more information.
Any help greatly appreciated
Regards
Linda
All reactions