This post is more than 5 years old

2 Intern

 • 

243 Posts

1750

January 17th, 2011 09:00

Set Value fails to work

I am merging several streams of data and I want to rename the value of the Status field when it is empty.  I have tried using Set Value with a condition Status is Missing and then changing the Status field to a Static Value.  However it does not replace the empty value.  I have also tried changing the condition to Status is present and rather bizarrely it still does not change it for these fields!?!

How can a field not be either there or not there?  Is anyone able to explain this weird logic which DPA appears to be operating under?

59 Posts

January 19th, 2011 07:00

What version of DPA are you using ?   On the Fields tab of the datasource, you can double-click on the "Label" of the field and alter the fieldname there.

Also, there is a "Null Value" property of the field where you can set/initialise the field with a value in the event the field contains a Null value.

1 Attachment

2 Intern

 • 

243 Posts

January 18th, 2011 04:00

An update on this; I worked around this by adding an Add Field (Status set to dummy value x) prior to the merge, it seems the behaviour for an identically named field in a merge is to keep the entry from the left data source; after this I rename any Status entries equal to "x"

2 Intern

 • 

243 Posts

January 19th, 2011 07:00

Hi Elvin

We are using 5.5.1

I have just copied my data into a blank report and if I set the report to replace the null value in the Fields tab it is successful.  I also replaced several steps to rename the field using the Label option there and that also worked successfully.

Thanks for your help again!

David

2 Intern

 • 

243 Posts

January 19th, 2011 07:00

Of course you did not explain why the Rename Field operator did not work!  Perhaps it does not deal with null values very effectively?

0 events found

No Events found!

Top