I have a schema with a string field of length 2100.
In enrichment, an expression field is added which does a substring of that field such as this: Substring(@recommendation, 101, Length(@recommendation)-100)
This is the error I get:
03/03/2020 12:01:29 PM enrich PostgreSQL error: ERROR: value too long for type character varying(255)
Which mean the WKF field is created with length of 255, while the source of that expression field is much longer than that.
Is there a way to define the length for the expression field or maybe controlling the WKF field length instead?
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
This isn't possible with ordinary ootb query activities.
Alternative options in descending order of maintainability:
Thanks,
-Jon
Hi,
This isn't possible with ordinary ootb query activities.
Alternative options in descending order of maintainability:
Thanks,
-Jon
Hi Jon,
These are really thoughtful answer. Thank you for that.
I ended up using Edit Schema activity to create the expression.
Btw, how do you find those undocumented js functions? I tried to look them up under Configuration > JavaScript codes, but they are not there.
Thanks,
- Alwi
Views
Replies
Total Likes
That's very interesting. I haven't used Edit Schema before, wonder why it behaves differently here than the other activities it shares UI with. Undocumented stuff you find poking around- CRM connector's js for example uses those functions.
Views
Replies
Total Likes
Views
Replies
Total Likes