Solved

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

Posted on 2004-04-02
4
1,141 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

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now