Table String Mismatch & Freezing
# 🤝help
a
Hello Discord family, I'm encountering two errors, as depicted in the image below: Error 1: The column mentioned in the table is supposed to be a string, and the variable it's receiving from is also a string. However, there seems to be an issue with this correspondence. Error 2: My chatbot freezes due to this error. Any insights or suggestions on resolving these issues would be greatly appreciated. Thank you! https://cdn.discordapp.com/attachments/1232252197941674035/1232252198168301578/1B1FFD2D-09BD-44BF-98D4-0C18034CE875_1_105_c.jpeg?ex=6628c7ca&is=6627764a&hm=218ed5ef42844d6e60133d6dca760cff5ecf6db813ea6956ec1739ad7f208f28&
q
Did you try changing MedicalHistory column to Type: Number
a
I did that, and when there is more than one number the error changes to “received value as array”
q
Then I guess the easiest way is to keep that column type: string, and convert the received MedicalHistory value always to string before storing it to column
Copy code
js
.toString()
See examples here https://discord.com/channels/1108396290624213082/1196808204764586036/1196845914288033792