Format Field

In my Dataport , on SourceExpr field I have this

FORMAT(PADSTR(’’,10- STRLEN(CACHO),‘0’) + CACHO)+’.’+‘0000’;

But when I save the DataPort I get one error messge:

“The Length of the source exceeds the size of the destination object”

Why?

I think this is a key length problem, with displaying the progress of the keys and running out of space to show them.

If you change the property of “show progress” to false it should work

(or define a shorter key).

sorry, meant to say “progress of the dataport”

If you are entering this in the sourceexp of the dataport fields you should create a variable & on after export put yourvariable := FORMAT(PADSTR(’’,10- STRLEN(CACHO),‘0’) + CACHO)+’.’+‘0000’; and then put “yourvariable” in the dataport fields