data-assistant icon indicating copy to clipboard operation
data-assistant copied to clipboard

Append/Replace tool completes without error when target fields are too short, no data gets added

Open ChrisBuscaglia opened this issue 8 years ago • 4 comments

Append/Replace tool completes without error when target fields are too short, no data gets added. This may be specific with feature services as targets. Reported by City of Salt Lake, UT.

Should at least provide a warning (skip copy of long chars.)

Workaround - make all target fields 255.

ChrisBuscaglia avatar Jun 19 '17 23:06 ChrisBuscaglia

@JRosenfeldIntern can you add this to your backlog?

ChrisBuscaglia avatar Aug 07 '17 22:08 ChrisBuscaglia

@ChrisBuscaglia not sure I follow.

Lets say source = String(255) target = String(2)

If the source value was "Hello", it would map to "He". If this is the case, we should warn for truncation. Is that correct? Or is it all or nothing ("Hello" -> Null)?

JRosenfeldIntern avatar Aug 07 '17 22:08 JRosenfeldIntern

@JRosenfeldIntern I'll have to retest, seems like we aren't doing any truncation as the tool stands now.

ChrisBuscaglia avatar Aug 10 '17 22:08 ChrisBuscaglia

@ChrisBuscaglia having a hard time re-creating this one.

When I tried to pass a 255 into a length 2 text field, it fails for me and gives me this error

image

JRosenfeldIntern avatar Aug 16 '17 16:08 JRosenfeldIntern