Hello everyone, and a Happy New Year!
I'm slightly flummoxed here --- I created a fairly simple bit of script logic to split budget data posted to a "dummy" quarter base member ("2013.QxP") down to the actual months, then zero itself out. The logic looks like this:
*XDIM_MEMBERSET SR_Time = 2013.Q1P,2013.Q2P,2013.Q3P,2013.Q4P
*XDIM_MEMBERSET SR_Category <> Actual
*WHEN SIGNEDDATA IS <> 0
*WHEN SR_Account.IS_INPUT IS J
*WHEN SR_Time IS 2013.Q1P
*REC(FACTOR=1/3,SR_Time="2013.JAN",SR_Time="2013.FEB",SR_Time="2013.MAR")
*REC(EXPRESSION=0)
*ENDWHEN
*WHEN SR_Time IS 2013.Q2P
*REC(FACTOR=1/3,SR_Time="2013.APR",SR_Time="2013.MAY",SR_Time="2013.JUN")
*REC(EXPRESSION=0)
*ENDWHEN
*WHEN SR_Time IS 2013.Q3P
*REC(FACTOR=1/3,SR_Time="2013.JUL",SR_Time="2013.AUG",SR_Time="2013.SEP")
*REC(EXPRESSION=0)
*ENDWHEN
*WHEN SR_Time IS 2013.Q4P
*REC(FACTOR=1/3,SR_Time="2013.OCT",SR_Time="2013.NOV",SR_Time="2013.DEC")
*REC(EXPRESSION=0)
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
This worked fine last week --- the script was successfully validated, the numbers were split, and dummy member zeroed itself out. Today, the script has not changed, is validated successfully --- but when I run it, I get the error message "Failed to save data. Details: Error in logic: Error in WHEN/ENDWHEN structure". What's going on here??? Nothing has changed, and the WHEN/ENDWHEN structure is correct as far as I can tell (when I commented out one *ENDWHEN on purpose, the validation failed --- as it should!). Overall, I get the impression that Logic Script in the MS version is a little unstable. Tried to find a note about this, but didn't find anything.
Any and all help is greatly appreciated!
Thanks and regards
Trond