Solved

ERROR: Incorrect data type for operator or @Function: Time/Date expected

Posted on 2004-04-02
4
1,167 Views
Last Modified: 2013-12-18
I am attempting to categorize documents based on an EffectiveDate (mm/dd/yyyy), by Year.  Within the column of the view, I have the formula, "@Year(EffectiveDate)" intending to grab and display the year of this field.  Most of the documents fall into the proper twisty of the year (1994, 1997, 2000, 2004, etc.).  However, some documents are grouped under the twisty: "ERROR: Incorrect data type for operator or @Function: Time/Date expected".  I have looked at the form in which the documents were created from, and especially this field.  The field is a Date/Time & Computed.

For a document that appeared with the twisty: "Error...", I made the field "Editable", and typed in a new EffectiveDate.  Upon saving, the document still appeared on the "Error..." twisty.

Can you help me out?

Thank you.  
0
Comment
Question by:JBouse
  • 3
4 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 250 total points
ID: 10747550
try this

@Year(@texttotime(EffectiveDate))

~Hemanth
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10747561
And one more thing to check is the doc properties and see what is the data type for EffectiveDate field.. if it is text then my above formula would work as it does conversion to date/time before it extracts year part. Or else if you have mixed document where the properly working docs show that field as date and others show as text, then you have to rectify the error documents by changing the type of the field to date/time and then run toolsrefreshSelecteddocs command in an agent or re-save them again
0
 

Author Comment

by:JBouse
ID: 10765550
Okay.  This is strange and I just don't understand, but, the issue just went away.  All those documents that appeared under the "Error..." twisty are now properly sorted into the proper twisties.  I have the above code on file in case this ever happens again.  Thanks for your help (I wish all other system issues took care of themselves like this one).
0
 
LVL 24

Expert Comment

by:HemanthaKumar
ID: 10765767
No Magic happens Jbouse, there is something that we have missed.
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Lotus Notes 8.0 Forward emails for 30 days. 8 103
DAOS - Backup / Restore 2 187
Lotus Domino 9.0 install on same pc with 8.5.3 9 132
attaching a file lotus notes 4 110
For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
IBM Notes offer Encryption feature using which the user can secure its NSF emails or entire database easily. In this section we will discuss about the process to Encrypt Incoming and Outgoing Mails in depth.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question