Report IF statement error?

Argh, reports will be the death of me. A report template I have has the following bit in it:

Date Scheduled: <<[Actual Scheduled Date]>> <<if: OR([Actual Scheduled Date]<[Last Assessment Date],[Actual Scheduled Date]<today())>>
<<Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.>><> <-This says โ€œend ifโ€ in double pointy-brackets but it doesnโ€™t show up when I type it in the resulting postโ€ฆ

It fails and yields this error message in the log. I canโ€™t figure out why:

โ€œErrorsโ€: โ€œError: Report โ€˜TT report -Weeklyโ€™ action โ€˜Action 1โ€™ Body template. Expression โ€˜Assessment Overdue!โ€™ is invalid due to: Expression refers to undefined field. Error: Report โ€˜TT report -Weeklyโ€™ action โ€˜Action 1โ€™ Body template. Expression โ€˜Please schedule a new assessment date in the TTS system or contact your areaโ€™s TDP Trainer.โ€™ is invalid due to: Expression โ€˜Please schedule a new assessment date in the TTS system or contact your areaโ€™s TDP Trainer.โ€™ could not be parsed due to exception: Unterminated stringโ€ฆโ€,

Solved Solved
0 1 109
1 ACCEPTED SOLUTION

Steve
Platinum 4
Platinum 4

Your template:

Date Scheduled: <<[Actual Scheduled Date]>>  <<if: OR([Actual Scheduled Date]<[Last Assessment Date],[Actual Scheduled Date]<today())>>
<<Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.>><<endif>>

This:

Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.

should not be enclosed in << >>.

Date Scheduled: <<[Actual Scheduled Date]>>  <<if: OR([Actual Scheduled Date]<[Last Assessment Date],[Actual Scheduled Date]<today())>>
Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.<<endif>>

View solution in original post

1 REPLY 1

Steve
Platinum 4
Platinum 4

Your template:

Date Scheduled: <<[Actual Scheduled Date]>>  <<if: OR([Actual Scheduled Date]<[Last Assessment Date],[Actual Scheduled Date]<today())>>
<<Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.>><<endif>>

This:

Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.

should not be enclosed in << >>.

Date Scheduled: <<[Actual Scheduled Date]>>  <<if: OR([Actual Scheduled Date]<[Last Assessment Date],[Actual Scheduled Date]<today())>>
Please schedule a new assessment date in the TTS system or contact your areaโ€™s trainer.<<endif>>
Top Labels in this Space