Hello team, For a couple of days the data is not b...
# support
l
Hello team, For a couple of days the data is not being synced and I can see that the attempts are being aborted. The error that it is thrown out is:
Copy code
5 errors occurred:
pq: Value too long for character type
pq: Value too long for character type
pq: Value too long for character type
pq: Value too long for character type
pq: Value too long for character type
Is it possible to help out on this matter? Thank you in advance
a
It’s happening because by default RudderStack creates varchar(512) columns and you might be sending more than 512 characters.
Can you set this flag
Copy code
Warehouse:
  redshift:
    setVarCharMax: true
This basically converts the varchar(512) to varchar(max)
l
Sorry, I am not sure where can I add that config
a
Are u using rudder server cloud version or self hosted version?
l
no, not really. We have integration within AWS S3 bucket and Redshift tables
Not sure what can be done? At the moment we don't have visibility on ticket situation
a
How are u running rudder server if you are using self hosted version?
l
I have found a way to fix it. I am updating the varchar() values in Redshift tables directly. When I sync them again seems to be working. I guess we are fine. In case of anything will get back to the channel. Thank you for your help!
a
If you set this ENV, we are doing the same thing.
RSERVER_WAREHOUSE_REDSHIFT_SET_VAR_CHAR_MAX=true
Altering varchar(512) to varchar(max)
I am not sure what setup u are using like docker or kubernetes or anything else?
l
I cannot tell the precise, I need to check with backend engineers (I am data analyst)
a
OK.
Got it.
Can u ask them to set this env?
This will solve the problem. Also u don’t need to worry about manually changing the columns in the future.
l
Got it, thank you very much
👍 1