DateToString function problem
Moderators: chulett, rschirm, roy
DateToString function problem
Hi,
I am trying to convet an incoming Date('mm/dd/yy') in Varchar format to Date ('yyyy-mm-dd').
I have used the following function in transformer.
If IsNull(LNK_XFRM_REAL_EST_STORES_DM.store_open_dt) Then SetNull() Else StringToDate(LNK_XFRM_REAL_EST_STORES_DM.store_open_dt,"%mm/%dd/%yy") .
And I am getting the error :
main_program: Fatal Error: Added field has duplicate identifier():
Any idea what might be the problem.
I am trying to convet an incoming Date('mm/dd/yy') in Varchar format to Date ('yyyy-mm-dd').
I have used the following function in transformer.
If IsNull(LNK_XFRM_REAL_EST_STORES_DM.store_open_dt) Then SetNull() Else StringToDate(LNK_XFRM_REAL_EST_STORES_DM.store_open_dt,"%mm/%dd/%yy") .
And I am getting the error :
main_program: Fatal Error: Added field has duplicate identifier():
Any idea what might be the problem.
- Jaysheel -
If you make the derivation just "SetNull()" then I am fairly certain the error will still be there. I think it has to do with your column name.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
The point that I was trying to make is that your error has nothing to do with the DateToString() function.
<a href=http://www.worldcommunitygrid.org/team/ ... TZ9H4CGVP1 target="WCGWin">
</a>
</a>
-
- Participant
- Posts: 21
- Joined: Thu Oct 04, 2007 4:34 am
- Location: India
- Contact: