FpML Issues Tracker
closed
Tweak
Always
Validation Rules
none
MAZA
None
Summary
Good afternoon FpML experts.
I have a question about validation rule "ref-34 (Mandatory)".
Link where it is stored: REF rules - FpML 5.3 Validation Rules - 2012-07-20
Description of the rule: Context: ScheduleReference (complex type) The @href attribute is equal to the @id attribute of an element of type Schedule
I have the following input:
PART1
<exerciseFeeSchedule> <payerPartyReference href="Coca-Colla"/> <receiverPartyReference href="Pepsi"/> <notionalReference href="REF1"/> <feeRateSchedule> <initialValue>10000</initialValue> </feeRateSchedule> <feePaymentDate> <periodMultiplier>1</periodMultiplier> <period>D</period> <dayType>Business</dayType> <businessDayConvention>NONE</businessDayConvention> <dateRelativeTo href="expirationDate_American"/> </feePaymentDate> </exerciseFeeSchedule>
PART2
<calculationPeriodAmount> <calculation> <notionalSchedule> <notionalStepSchedule id = "REF1"> <initialValue>10000000</initialValue> <currency>EUR</currency> </notionalStepSchedule> </notionalSchedule> <fixedRateSchedule> <initialValue>0.07</initialValue> </fixedRateSchedule> <dayCountFraction>30/360</dayCountFraction> </calculation> </calculationPeriodAmount>
and after the validation I received the following error:
Rule:
ref-34 Context:
/dataDocument/trade/swaption/bermudaExercise/exerciseFeeSchedule/notionalReference Description:
The @href attribute of a 'ScheduleReference' element should match with an @id attribute on a 'Schedule' element.
Could you please help to understand where the element 'Schedule' is located and why I received this error ?
Hope for cooperation as usual.
Thanks in advance,
regards,
Maksym
Notes:
MAZA
07/10/23 7:30 am
I have found the solution. Thanks)