com.google.firebase.database.DatabaseException: Failed to convert a value of type java.lang.String to long

1,264 views
Skip to first unread message

Chitra Bahadur

unread,
Oct 13, 2016, 2:57:33 AM10/13/16
to Firebase Google Group
String variable ( format of variable in local and firebase is : "abcd_efgh_ijkl")  in local but still getting error.

Jacob Wenger

unread,
Oct 13, 2016, 1:19:00 PM10/13/16
to fireba...@googlegroups.com
Can you share some more code, including the code you use to listen read the Firebase data and process the snapshot? Are you trying to convert that string value into a long accidentally? That's what the error suggests.

Cheers,
Jacob

On Wed, Oct 12, 2016 at 11:09 PM, Chitra Bahadur <kesi...@gmail.com> wrote:
String variable ( format of variable in local and firebase is : "abcd_efgh_ijkl")  in local but still getting error.

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/41cfc312-4bb5-49b2-b2b8-1b0fca2a00b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages