Android Question Coloumn does not exist

Alam122

Member
I have error message, i tried many ways but still confused with it
"java.lang.IllegalArgumentException: column 'foto' does not exist. Available columns: [Email, nama, password, no.telepon, alamat]"
 

Attachments

  • Screenshot (21).png
    Screenshot (21).png
    189.7 KB · Views: 111

udg

Expert
Licensed User
Longtime User
Are you sure that table datapengguna has a column named foto of type TEXT (or equivalent depending on the DBMS used)?
The error message shows 5 columns but no "foto" among them.
 
Upvote 0

Alam122

Member
Are you sure that table datapengguna has a column named foto of type TEXT (or equivalent depending on the DBMS used)?
The error message shows 5 columns but no "foto" among them.

i add coloumn 'foto' at my sql, type of variable BLOB
 

Attachments

  • Screenshot (23).png
    Screenshot (23).png
    168.7 KB · Views: 106
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
i add coloumn 'foto' at my sql, type of variable BLOB
that may be. But did you copied the new db to your device replacing the old one? And at appstart you copied this new db over the old db?

I guess you are using an old version of the DB without this field.
 
Upvote 0
Top