cancel
Showing results for 
Search instead for 
Did you mean: 

UFL CR Visual Studio SP33, String function return string truncated

davi1td
Discoverer
0 Kudos

I've seen many really old questions regarding this, but none recent. I have a UFL in c# vs2019. It's a simple string function returning a string of about 2k characters but is truncated is being truncated to 510 characters. In my crystal report I have a text object and a formula that calls my UFL function to return the string.

Are UFL functions limited to ~510 character return?

Again using the near latest CR for CS2019 -> SP33

Thanks

-TD

Accepted Solutions (1)

Accepted Solutions (1)

DonWilliams
Active Contributor
0 Kudos

Hi Tom,

It's been a while since I played with CR UFL's strings but that was how they were defined in old CR versions.

Newer version you can define the length as long as you want, with I believe a 65K limit but it may be less, I haven't tested it in long time.

Try this sample UFL:

https://userapps.support.sap.com/sap/support/knowledge/en/1525014

Don

davi1td
Discoverer
0 Kudos

Don,

Thanks, unfortunately that KB then points to another link which I have no login?Userapps

Without seeing the sample UFL, My UFL is in C#, do you remember what the return type is?

Currently i'm returning a string which I guess is wrong?

-TD

Answers (2)

Answers (2)

davi1td
Discoverer
0 Kudos

Don, Thanks! Let me load that and see whats going on,.

DonWilliams
Active Contributor
0 Kudos

crufldotnetsamplezip.txt

At the bottom of the KBA is a Zip file with the UFL project in it.