E/SQLiteLog: (1) no such table: LINKED_HASH_MAP
See original GitHub issueI/Sugar: Error in saving in transaction no such table: LINKED_HASH_MAP (code 1): , while compiling: INSERT OR REPLACE INTO LINKED_HASH_MAP(VALUES_COLLECTION,KEY_SET,ACCESS_ORDER) VALUES (?,?,?)
I have done everything from https://stackoverflow.com/questions/33031570/android-sugar-orm-no-such-table-exception?noredirect=1&lq=1 https://stackoverflow.com/questions/41605824/getting-no-such-table-error-with-sugarorm-1-4-in-android
List<UserFriends> userFriendsList = mapper.readValue(data, List.class); SugarRecord.saveInTx(userFriendsList);
This is code where i am trying to save.
Any suggestions please
Issue Analytics
- State:
- Created 6 years ago
- Comments:9
Top Results From Across the Web
E/SQLiteLog: (1) no such table: Class (Again) - Stack Overflow
public void onCreate(SQLiteDatabase db){ String sqlstatement = "CREATE TABLE " + TABLE_USER + "( " + COL_ID + " integer primary key ...
Read more >"E/SQLiteLog: (1) no such table: " occurs when I use "Amplify ...
Hi, I am facing an error again and again when I change my GraphQL schema very slightly from tutorial: "E/SQLiteLog: (1) no such...
Read more >SQLiteLog no such table is being reported when I try to query ...
E /SQLiteLog: (1) no such table: table1 in "SELECT value FROM table1" But there clearly is a table called table1 in the database...
Read more >E/SQLiteLog: (1) no such table: Cars on Android 9 Pie-kotlin
Basically, Android P looks for a database and detects that is does not exist while other versions do not really require that a...
Read more >Someone please help me to find out error - CodeProject
Quote: no such table: employees. You are trying to INSERT into a table which does not exist. The code fragment you've shown is...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jack2799 So my best guess is the problem might not be from Sugar ORM.
I believe you’re using the Jackson-Object-Mapper. If so, then if you’re trying to deserialize JSON and get a list, the guide here suggests using;
List<UserFriends> userFriendsList = mapper.readValue(data, new TypeReference<List<UserFriends>>(){});
rather than;List<UserFriends> userFriendsList = mapper.readValue(data, List.class);
This is assuming your data is actually a JSON array.
Glad I could help. About the id… To be safe you’d rather not use it. Someone did a pull changing the SugarRecord id to _id but I don’t think it was ever merged.