Problem description max_length

hpesata
Kilo Expert

Hi!

 

I am currently working on getting data out of the problem table.

I am getting the schema out of the sys_dictionary definitions for the "problem" and the parent "task" table.

The "description" field of the "task" table has a max_length of 4000.

This is the value that I take for the destination storage, unfortunately I am encountering a problem record,

where the description field holds a 9547 character string, which of course doesn't fit into my destination,

because of the max_length attribute being 4000.

 

how is this possible, that the description field can exceed the max_length value of 4000 and how can I determine

the real maximum length of a field during the schema query?

 

Thanx in advance!

 

regards,

Hans

1 ACCEPTED SOLUTION

Good morning!



I found a description on how large text fields are handled here:



http://www.servicenowguru.com/scripting/client-scripts-scripting/maximum-length-large-string-fields-...



Thanx and regards,


Hans


View solution in original post

4 REPLIES 4

Andre Moreira
Kilo Expert

Hi Hans,



Here some tips on the Wiki:



Capturar - 1.PNG


Ref.: Variable Types



Capturar - 2.PNG


Ref.: System Dictionary



[]'s


Andre Moreira


Hi Andre!



Thanx for Your reply!



I was reading through the Wiki articles but couldn't find any hint on how it can happen, that the description field can hold more characters than the specified 4000.



I found another problem record which has a description with more than 62000 characters !



maybe using an aggregate query on the description length would be an solution to find the real maximum value ?



Thanx and regards,


Hans


We have a couple of text fields set to length = 1,000,000 (for transferring large blobs of JSON data around).


Good morning!



I found a description on how large text fields are handled here:



http://www.servicenowguru.com/scripting/client-scripts-scripting/maximum-length-large-string-fields-...



Thanx and regards,


Hans