Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Query activity > Output columns > Added column: How to change default type?

michaelk5974358
Level 2
Level 2

Hello

In the output columns I added a new column with an Expression like this:

$(vars/@aabbcc)

The content of this variable I created in a JS activity in vars.aabbcc

Now I get the following error:

PM query6 PGS-220000 PostgreSQL error: ERROR:  value too long for type character varying(255)

The problem is that the standard type is string and the standard length is 255, but the content of vars.aabbcc is longer than 255 chars.

So: How can I change the allowed length or change the type from text to memo?

Michael

1 Accepted Solution
florentlb
Correct answer by
Level 10
Level 10

Hi Michael,

Unfortunately I don't see how this is possible. We tried a few tricks with one of our most seasoned developer but could not manage to change the length nor the type of the field.

Please let us know if you find a solution as this will eventually be useful for the community.

Florent

View solution in original post

1 Reply
florentlb
Correct answer by
Level 10
Level 10

Hi Michael,

Unfortunately I don't see how this is possible. We tried a few tricks with one of our most seasoned developer but could not manage to change the length nor the type of the field.

Please let us know if you find a solution as this will eventually be useful for the community.

Florent

View solution in original post