cancel
Showing results for 
Search instead for 
Did you mean: 

blank

praveenreddy_bk
Participant
0 Kudos

Hi frnds,

Quantity:

How to check the file if it is value negative or non-numeric then I need 2 raise error.

Date:

if blanks, zeros ,non-numeric,negative,greater than polling date, How can v raise error.

how can v do mapping

Id:

If blank or non numeric or other than 1,3,12,13

How Can I do Mapping

Thanks in Advance

Accepted Solutions (1)

Accepted Solutions (1)

siddhesh_pathak4
Contributor
0 Kudos

Check with the UDF,

Adjust according to your requirement, This will throw a run time exception. So for the fields you want to throw an error you can use this one.

String retValue = null;
if(a == null || (a != null && a.length() == 0)) {
throw new RuntimeException("This field is Madatory");
} else {
retValue = a;
}
return retValue;

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi!

If your are running a PI 7.1 UDF is the best choice (simple sample outlined in above post). If your are running a XI 3.0 or PI 7.0 I think you'll have to code your own XSLT, Java or ABAP mapping program...

Regards,

Volker