Quantcast
Channel: SharePoint 2010 - General Discussions and Questions forum
Viewing all articles
Browse latest Browse all 17574

List Validation with Multiple Criteria and Conditions

$
0
0

Hello,

I am working on a form and need to do a list level validation with multiple criteria and conditions.

Below is the formula I have derived for validation. The issue is the formula works perfectly fine when I run it only for the first section of the formula. But when I combine all 3 sections it gives and error "Exception from HRESULT: 0xE0040034".

Also, I tested the whole formula with all 3 sections on excel by creating a similar conditional requirement enviornment where it works fine. I may be bypassing some limitations that SharePoint has and need to know those limitations.

Note: All fields starting with D1 are mandatory, but have to keep all fields starting with D2 and D3 as optional.

Here is the formula:
(IF([D1-Relation with Employee]<>"",OR((AND([D1-Relation with Employee]="Child",[D1-Birth Date]>=([TD]-7671))),AND([D1-Relation with Employee]="Parent",[D1-Birth Date]>=([TD]-29220),[Legal Entity]<>"LE 99797-J.P.Morgan Services India Pvt Ltd"),AND([D1-Relation with Employee]="Spouse",[D1-Birth Date]<[TD]))),

IF([D2-Relation with Employee]<>"",OR((AND([D2-Relation with Employee]="Child",[D2-Birth Date]>=([TD]-7671))),AND([D2-Relation with Employee]="Parent",[D2-Birth Date]>=([TD]-29220),[Legal Entity]<>"LE 99797-J.P.Morgan Services India Pvt Ltd"),AND([D2-Relation with Employee]="Spouse",[D2-Birth Date]<[TD]))),

IF([D3-Relation with Employee]<>"",OR((AND([D3-Relation with Employee]="Child",[D3-Birth Date]>=([TD]-7671))),AND([D3-Relation with Employee]="Parent",[D3-Birth Date]>=([TD]-29220),[Legal Entity]<>"LE 99797-J.P.Morgan Services India Pvt Ltd"),AND([D3-Relation with Employee]="Spouse",[D3-Birth Date]<[TD])))

Can any one please help?


Viewing all articles
Browse latest Browse all 17574

Trending Articles