PS4_db_rebuilder icon indicating copy to clipboard operation
PS4_db_rebuilder copied to clipboard

Error: table tbl_appbrowse_0349983844 has 53 columns but 47 values were supplied 6.72fw

Open agjkp opened this issue 3 years ago • 10 comments

i'm on fw 6.72 all of my file disappeared so im using fix_db.py

always ending up with same error

line 90, in cursor.execute("INSERT INTO %s VALUES %s;" % (tbl[0], ', '.join(sql_list))) sqlite3.OperationalError: table tbl_appbrowse_0349983844 has 53 columns but 47 values were supplied

can anyone help

agjkp avatar Jul 17 '20 10:07 agjkp

Same here. Trying to find a cheap fix. If someone else manages to do it before me, please post the method here

LilShah avatar Jul 17 '20 12:07 LilShah

Found a fix:

  1. Follow normal steps written in the Readme
  2. Before step 3, open fix_db.py file and find line 90. It is a giant line that starts with "sql_list.append("
  3. Replace it with this: sql_list.append("""("%s", "%s", "%s", "/user/appmeta/%s", "2018-07-27 15:06:46.822", "0", "0", "5", "1", "100", "0", "151","5", "1", "gd", "0", "0", "0", "0",NULL, NULL, NULL, "%d", "2018-07-27 15:06:46.802", "0", "game", NULL, "0", "0", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "0", NULL,NULL, NULL, NULL, NULL, "0", "0", NULL, "2018-07-27 15:06:46.757","0","0","0","0","0",NULL)"""
  4. Follow the rest of the instructions in the readme

The issue seems to stem from the fact that there is a slight difference between the 5.05 DB and the 6.72 DB. I installed a game, used FTP to extract the DB, then checked what to fill. What i added are the last 6 entries in the above code.

Hopefully the repo's owner will add this fix to their code.

LilShah avatar Jul 17 '20 12:07 LilShah

here is the working v with 6.72 thank @LilShah for the code it has be compiled and is not stable and works with 6.72

https://mega.nz/file/409nQIbJ

https://www31.zippyshare.com/v/DWGgLYjY/file.html

agjkp avatar Jul 17 '20 13:07 agjkp

i should really add a FW selector, as i know this was also an issue with other FWs

Zer0xFF avatar Jul 18 '20 11:07 Zer0xFF

Hi, Guys i need help the games are back, but without dlc

cichazosia2001 avatar Jul 19 '20 20:07 cichazosia2001

Found a fix:

1. Follow normal steps written in the Readme

2. Before step 3, open fix_db.py file and find line 90. It is a giant line that starts with "sql_list.append("

3. Replace it with this:
   `sql_list.append("""("%s", "%s", "%s", "/user/appmeta/%s", "2018-07-27 15:06:46.822", "0", "0", "5", "1", "100", "0", "151","5", "1", "gd", "0", "0", "0", "0",NULL, NULL, NULL, "%d", "2018-07-27 15:06:46.802", "0", "game", NULL, "0", "0", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, "0", NULL,NULL, NULL, NULL, NULL, "0", "0", NULL, "2018-07-27 15:06:46.757","0","0","0","0","0",NULL)"""`

4. Follow the rest of the instructions in the readme

The issue seems to stem from the fact that there is a slight difference between the 5.05 DB and the 6.72 DB. I installed a game, used FTP to extract the DB, then checked what to fill. What i added are the last 6 entries in the above code.

Hopefully the repo's owner will add this fix to their code.

Thanks it fixed it cheers.

anubhavdhiman9191 avatar Jul 25 '20 21:07 anubhavdhiman9191

20200727_155503

I get this issue

TheBatmanWhoLaughs13 avatar Jul 27 '20 19:07 TheBatmanWhoLaughs13

here is the working v with 6.72 thank @LilShah for the code it has be compiled and is not stable and works with 6.72

https://mega.nz/file/409nQIbJ

https://www31.zippyshare.com/v/DWGgLYjY/file.html

thanks, but the file from zippyshare says corrupted, and from mega need the decrpyt key, please help

joniis avatar Sep 13 '20 03:09 joniis

Thanks @LilShah for the fix! For your convenience I have created a fork that has the fix applied, which seems to work for firmware 7.02, too: https://github.com/hippie68/PS4_db_rebuilder_6.72_7.02

hippie68 avatar Mar 03 '21 13:03 hippie68

Use Itemzflow, which works better than any script: https://github.com/LightningMods/Itemzflow

Pharaoh2k avatar Dec 29 '22 09:12 Pharaoh2k