[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2004-04-02
4
Medium Priority
?
1,250 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

  In today’s Arena we can’t imagine our lives without Internet as we are highly used to of it. If we consider our life style just for only 2 min we found that face to face communication is swapped by e-communication.  Every Where from Works place to…
This article covers general Notes 8.5 troubleshooting information including recreating the Notes\Data folder.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

656 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