question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

E/SQLiteLog: (1) no such table: LINKED_HASH_MAP

See original GitHub issue

I/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:closed
  • Created 6 years ago
  • Comments:9

github_iconTop GitHub Comments

4reactions
Karuhangacommented, Dec 21, 2017

@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.

0reactions
Karuhangacommented, Dec 21, 2017

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found