?
Solved

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

Posted on 2004-04-02
4
Medium Priority
?
1,228 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 24

Accepted Solution

by:
HemanthaKumar earned 1000 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

You’ve got a lotus Domino web server, and you have been told that “leverage browser caching” is a must do. This means that we have to tell the browser everywhere in the web to use cache. In other words, we set (and send) an expiration date in the HT…
Problem "Can you help me recover my changes?  I double-clicked the attachment, made changes, and then hit Save before closing it.  But when I try to re-open it, my changes are missing!"    Solution This solution opens the Outlook Secure Temp Fold…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

764 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