on 01-10-2014 12:05 PM
HI , I am facing issue while creating Marketing lead .This error start occurring when i make Account fields Mandatory by enhancing Customer BO .Now I am able to create Account and Contact but when I try to creating marketing lead then it will give exception . Can Any one help me .
Hello Rishi,
Can you provide some more details about the error / exception?
Thanks,
Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst ,
As I explained , I have created Extension Object for Customer BO . To create Account Fields Mandatory (City & State) and write Code in Script file (root -> Validation on Save)
Is there any possibility that this code is affecting ? As Marketing Lead is associated with Account .
import ABSL;
if(this.AddressInformation.Address.CommunicationPreference.ToParent.DefaultPostalAddressRepresentation.GetFirst().CityName.Trim().IsInitial())
{ //3
raise Error_Message1.Create("E");
return false;
}//3
else
{//4
if(this.AddressInformation.Address.CommunicationPreference.ToParent.DefaultPostalAddressRepresentation.GetFirst().RegionCode.IsInitial())
{//5
raise Error_Message2.Create("E");
return false;
}//5
else
{//6
return true;
}//6
return true;
}//4
Hello Rishi,
Sure.
Youre ABSL code travers some associations
If any of those associations are not set, an execption (with a backend dump) like yours is raised.
You can (in general: should) check, if an associatiosn is set (function "isSet()" ) before using it.
HTH,
Horst
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.