It looks like you are using variables which have not been assigned, or have a null value. This is probably because your file name contains a date and your Date() function is not taking the file name structure into account, so Edate is always null.
I think your load should be (based on the filename you mentioned in your post)
Date#(Substring(Filebasename(), '_', 2), 'yyyyMMdd') as Edate,
I suggest you post the complete script that you are using to generate the calendar.
Thank you for response. But it dont work, your script is wrong. In code word "Substring" system take as field. Did you mean Substringcount? But after use Substringcount I have in red "," and everything after "," is in red like error.
Here is my wholle calendar:
Min(Edate) as MinDate,
Max(Edate) as MaxDate
Let vMinDate = Num(Peek('MinDate',0,'MinMax'));
Let vMaxDate = Num(Peek('MaxDate',0,'MinMax'));
DROP TABLE MinMax;
TempDate as Edate,
Year(TempDate) as Year,
Month(TempDate) as Month,
Week(TempDate) as Week,
Day (TempDate) as Day,
'Q'& Ceil(Month(TempDate)/3) as Quarter,
Date (MonthStart (TempDate),'YYYY-MM') as "Year-Month",