Data in the OrderItems table changes on its own
Hello,
I just noticed a weird think happening to my database. Today I was working on the CRM database in the office where I work in the cloud version (since they have windows OS).
After reaching home now (as I am writing this) I took backup of the cloud database, downloaded the backup and imported the archive on my macOS Ninox app.
But to my surprise the Order Items in the last Sale Order have changed on its own. At first I thought it was some glitch, so I deleted the database from my Mac, made a fresh backup on the cloud version and then imported it again on my Mac. This time again in the same record two items in the Order Items table were changed (same as old ones). I am attaching the screenshots of both the databases (Cloud version and Mac version).
I have checked other Sale Orders also and this has happened in other records as well.
How did this happen. is it 'cuz on cloud I am using 3.13.1 and on Mac app it is still 12.8.1?
What I am noticing is that it is only the name of the Order Item that is different, rest all data like quantity, unit price etc are all correct. Even the product name is correct. How is it picking up wrong items, but rest all details are correct?
This is serious data glitch on real sales data. Does anyone have any idea how to prevent this from happening in the future ?
13 replies
-
what kind of field is Item Name in Order Items?
-
"When a database is backup up manually and downloaded, then reimported somewhere else, gaps in IDs are closed as the structure of the database is defragmented."
I'm a bit worried about this wording! If it's true, it applies to all users who keep manual backups.
We can't rely on the IDs of the records because they might change when we need to import from the backup. For example, I use a table for the settings in my database and use the IDs to reference each setting.
Also, does the above apply if we click "Defragment database" in the Options menu?
-
said:
I don't want to leave Ninox. I don't understand what should I do at this stage !!One option is to create another tables that stores the selection made in the dynamic choice.
I posted a link to a post that deals with this in an earlier reply.
Thus you don’t depend on the dynamic field for data just for UI.
By copying the selection to a table, you also have better access to the data. Trying to get data off a dynamic field just complicates matters.
This method doesn’t change the front end. User still see the choice field, but you know on the back end to look at the table that stores the selection.
-
said:
Please advise me if I am wrong about using SELECT statements.I am not knowledgeable at all of how Ninox's backend works, so I can't say if using select statments will make any difference. I suspect not, if my wee brain can grasp what is going on.
Just a thought, but Ninox may not care about the app having problems with downloaded DB from the cloud since the app is free. You say you have no issue in the cloud so that is where, I suspect, they care most. If the app had issues with icloud or local dbs then that would be a bigger issue.
I was shocked and angry too in the beginning. It has reared its ugly head again, but that could be I downloaded the DB and re-uploaded it to reduce the DB size. But since I don't really depend on it, I don't really care.
Good luck in finding out a solution that works for you.
Content aside
- 3 mths agoLast active
- 13Replies
- 89Views
-
4
Following