Data types are not appropriate for Relationnal operation, strange error ?

Hi,
we try to connect send (thanks jdbc:odbc) a query contening a WHERE statment with date (a BETWEEN). Unfornately we received an error message (see title). We know that the field is in DateTime format (like mm/dd/yyyy hh:mm:ss aa).
Is anybody able to find an issue to perform this relationnal operation ?
Thanks

Oooops I forgot,
This is my Query
String PatQuery="SELECT HelpDeskCases.\"Case-ID+\", HelpDeskCases.\"Assignee-Login-Name\", HelpDeskCases.\"Create-Time\", HelpDeskCases.\"Resolved-Time\" FROM HelpDeskCases WHERE HelpDeskCases.\"Create-Time\" >=" + ddeb + " AND HelpDeskCases.\"Resolved-Time\" <=" + dfin ;
Regards

Similar Messages

  • Data Type Is Not Vailid for Input

    Hello,
    I'm new in (ABAP) WebDynpro and I have a problem with displaying data - particularly with HROBJECTs from our e-Recruiting system.
    In my WebDynpro-Component i read some data of candidates into my context. One table (with candidate-infos) which i save in my context includes a field which is datatype of HROBJECT. After I've read this infos into my itab, I bind this table to my context. All this works fine! But as soon as I bind this context to a table-ui-element in my layout, i get a error message "Data Type Is Not Valid for Input", when i start the application.
    If I delete the binding with the attribute which is a HROBJECT, it works.
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_WDR_CONVERSION_EXCEPTION
    Information on where terminated
        Termination occurred in the ABAP program "CL_WDR_CONVERSION_UTILS=======CP" -
         in "IF_WD_CONVERSION_UTILS~TO_STRING".
        The main program was "SAPMHTTP ".
        In the source code you have the termination point in line 138
        of the (Include) program "CL_WDR_CONVERSION_UTILS=======CM00G".
        The termination is caused because exception "CX_WDR_CONVERSION_EXCEPTION"
         occurred in
        procedure "IF_WD_CONVERSION_UTILS~TO_STRING" "(METHOD)", but it was neither
         handled locally nor declared
        in the RAISING clause of its signature.
        The procedure is in program "CL_WDR_CONVERSION_UTILS=======CP "; its source
         code begins in line
        1 of the (Include program "CL_WDR_CONVERSION_UTILS=======CM00G ".
    136     WHEN cl_abap_typedescr=>typekind_struct1    "'u'     " structure
    137     OR   cl_abap_typedescr=>typekind_struct2.   "'v'.    " structure
    >>>>       RAISE EXCEPTION TYPE cx_wdr_conversion_exception exporting textid = cx_wdr_conversion_
    139 *      raise exception type cx_wdr_conv_unsupported exporting type_name = l_type.
    Please Help.
    Thanks

    now i've tried it with a independent candidate node (without) supply funciton. =>
    The same error: "Data Type Is Not Vailid for Input"
    Here's the code of my supply-function:
    (probably not the best coding - but it works until i want to display a hro.)
    METHOD get_cand_info .
      DATA: lr_cdcy                    TYPE REF TO cl_hrrcf_candidacy_bl,
            lr_cand                    TYPE REF TO cl_hrrcf_candidate_bupa_bl,
            stru_requisitions          TYPE if_componentcontroller=>element_requisitions ,
            lt_h_cdcy_list             TYPE rcf_t_list_candidacies_x,
            ls_h_cdcy_list             TYPE rcf_s_list_candidacies_x,
            lt_cdcy_list               TYPE if_componentcontroller=>elements_candidate,
            ls_cdcy_list               TYPE if_componentcontroller=>element_candidate,
            lt_addr                    TYPE rcf_t_addressdata_bp,
            ls_addr                    TYPE rcf_s_addressdata_bp,
            lt_email                   TYPE rcf_t_emaildata_bp,
            ls_email                   TYPE rcf_s_emaildata_bp.
    * get all declared attributes
      parent_element->get_static_attributes(
        IMPORTING
          static_attributes = stru_requisitions ).
      CALL METHOD cl_hrrcf_candidacy_bl=>get_instance
        RECEIVING
          return = lr_cdcy.
      CALL METHOD cl_hrrcf_candidate_bupa_bl=>get_instance
        RECEIVING
          return = lr_cand.
    * Hole Kandidatur-Informationen der Kandidaten
      TRY.
          lr_cdcy->get_candidacy_list_x(
            EXPORTING
              ps_req_hrobject  = stru_requisitions-hrobject
    *    ps_cand_hrobject =
    *    ps_appl_hrobject =
    *    p_exclude_draft  = 'x'
            IMPORTING
              pt_candidacies_x = lt_h_cdcy_list
        CATCH cx_hrrcf .
      ENDTRY.
    * Ergänzen der Informationen mit BusinessPartner-Infos
      LOOP AT lt_h_cdcy_list INTO ls_h_cdcy_list.
        TRY.
            lr_cand->get_contact_data(
              EXPORTING
                ps_cand_hrobject = ls_h_cdcy_list-cand_hrobject
              IMPORTING
                pt_addressdata   = lt_addr
    *    pt_telefondata   =
    *    pt_faxdata       =
                pt_emaildata     = lt_email
          CATCH cx_hrrcf .
        ENDTRY.
        READ TABLE lt_addr INDEX 1 INTO ls_addr.
        READ TABLE lt_email INDEX 1 INTO ls_email.
        MOVE-CORRESPONDING ls_h_cdcy_list TO ls_cdcy_list.
        ls_cdcy_list-postcode1 = ls_addr-postl_cod1.
        ls_cdcy_list-city1 = ls_addr-city.
        ls_cdcy_list-email = ls_email-e_mail.
        APPEND ls_cdcy_list TO lt_cdcy_list.
      ENDLOOP.
      CALL METHOD node->bind_table
        EXPORTING
          new_items = lt_cdcy_list.
    ENDMETHOD.

  • Device types are not suitable for ADS documents when printing Form16

    In Form 16 , while printing the Form16 of the employee it occurs an error "Device types are not suitable for ADS documents" in the task bar.
    Regards,
    Ranga

    Can you check
    Note 1116245 - ADS Check List before sending message to SAP
    and see which of the steps are not working for you?
    Markus

  • New DSO data fields are not available for transformations in the upwardflow

    Hello,
    There are data flow from
        many source DSOs -> Target DSO -> Final DSO.
    Different transformations are defined and activated with DTPs. This works fine and provides the desired results.
    now new fields are added to the target DSO, final DSO and one of the source DSO.
    When I now try to edit the transformations, the new fields are not part of the sources at the different stage.
    The fields are available in the Data Source created out of a DSO but not directly when using a DSO as a data source.
    Have anyone faced such a problem?
    any solutions to this?
       - I cannot delete all the other transformations as this is too much work to do and there is no time for it.
    Regards
    Kannan

    We created ZMD_BS_MAT_OVP_LAYOUT. But the situation has not changed - the fields are not available for edit.

  • Operand data type char is invalid for sum operator

    can someone help me re-writing the following so I wont keep getting thie baopv ementioned error: here is the statement:
    RIGHT('0000000000'+REPLACE(CAST(SUM(PAID_AMT) AS VARCHAR),'.',''),14) AS TOT_NET_PAID
    +
    RIGHT('0000000000'+REPLACE(CAST(SUM(PAID_AMT)
    AS
    VARCHAR),'.',''),14)
    AS TOT_NET_PAID
    It keeps retuning he following error messages:
    Operand data type char is invalid for sum operator

    As Jingyang said, you cannot sum a non numeric field. Cast it to a numeric first (INT maybe?)
    + RIGHT('0000000000'+REPLACE(CAST(SUM(CAST(PAID_AMT AS INT)) AS VARCHAR),'.',''),14) AS TOT_NET_PAID
    Don't forget to mark helpful posts, and answers. It helps others to find relevant posts to the same question.

  • DAQmx Error: Non-buffered hardware-timed operations are not supported for this d evice and Channel Type.

    Hello,
    I am new to NI and to data acuasition cards in general. I am trying to put an application togather that would play large audio file using NI9263.
    And i am getting the following error.
    DAQmx Error: Non-buffered hardware-timed operations are not supported for this device and Channel Type.
    Status Code: -201025
    Does my hardware support buffering ?
    can i use the EveryNSamplesCallbackAO function ?
    Any sample code, will be helpful at this time. Thanks.

    Hi yma200,
    Are you using a USB 9263?  If so, this might be of help:
    http://digital.ni.com/public.nsf/allkb/EC1968728E660B288625780700570D06?OpenDocument
    If it doesn't help, can you please post the code that you have that is causing your error?
    Regards,
    Bogdan Buricea
    Applications Engineer
    National Instruments

  • CProjects - DMS integration:26 036 You are not authorized for with doc.type

    Hi Experts,
    I need to use cProjects integration with DMS. When I try to create a link to an existing document I find the following error:
    26 036 You are not authorized for with document type DRW
    My user has authorization to the doc type in the DMS system (linked by RFC to cProjects system). I also have defined the object link in the document type.
    Do you know which configuration may be missing?
    Thanks in advance!
    Neil

    Hi Niel,
    How is the RFC connection established between DMS and cProjects system? Do check the authorizations of the RFC user through which the connection is established.
    Regards,
    Vivek Pandey

  • Microsoft OLE DB Provider for Oracle: Data type is not supported.

    I got the error:
    Microsoft OLE DB Provider for Oracle: Data type is not supported.
    Shortly after upgrading from Oracle 8 to Oracle 9. I was advised to download more up to date oracle drivers, but I was wondering if there was a way to tell what version of the 'OLE DB Provider for Oracle' is already at. Is there a command I can use via SQL Plus or something?

    I have found Microsoft ODBC for Oracle to be more stable than the Microsoft OLEDB for Oracle driver. I have also found both Microsoft ODBC and OLEDB drivers to be more stable than the drivers from Oracle.
    You could always get the latest MDAC (Microsoft Data Access Components) from Microsoft's MSDN Download site and then get the ODAC (Oracle Data Access Components) from Oracle's OTN Download site. ODAC requires MDAC. And ODAC has the latest drivers.
    I suppose it would help to have the latest patches for your Oracle client software too. Maybe Oracle MetaLink would have these?
    It may even help to have the latest service pack for Visual Studio 6 (Visual C++ 6 and Visual Basic 6) too.

  • Expense reports are not processing for future date?

    hi folks,
    in our co.expense reports are not processing for future date, even though the end date is one month from now the expense reports are not getting paid.
    can anybody assist me to come out of this issue.
    thanks in advance,
    regards
    bhanu

    HI,
               Could you please share how to go  Debug mode in Dymanic program, I have scenarion in SAP HR , when Employee is hire , during the hiring action Infotype 32 is updating based on following conditions
    ********INSERT IT0032 FOR CANDIDATE ID *************
    P0001-PERSG<>'5' - True
    P0000-MASSN='01'/X
    P0000-MASSN='H1'/X
    P0000-MASSN<>'84'/X
    P0000-MASSN<>'86'/X
    P0000-MASSN<>'99'/X
    GET_PNALT(ZHR_CREATEP0032)
    RP50D-FIELDS <> ''
    INS,0032,,,(P0000-BEGDA),(P0000-ENDDA)/D
    P0032-PNALT=RP50D-FIELD1
    P0032-ZZ_COMPID='05' _ True
                  Infotype record is being created but there is no data in "RP50D-FIELD1 , so i tried to debug the  subroutine GET_PNALT(ZHR_CREATEP0032) as mention in Dynamic action, its not going in debugger mode.
    Do you have any Idea about how to debug the  program.  used in dynamic action
    Regards,
    Madhu

  • Sybase ODBC driver for Linux - handle of numeric data type is not correctly

    Linux RHEL 4 + Oracle 10.2.0.3 - all work fine. But numeric data type does not coorectly show values. I gor driver from ASE 15. Who has already resolve this issue???

    To begin with:
    - what is the table definition in Sybase?
    - what is the table definition in Oracle: SQL> describe <table>@<sybase_hsodbc_link>;
    and probably you need to start a gateway debug trace (HS_FDS_TRACE_LEVEL-DEBUG) and an ODBC trace to see what happens.
    You could paste the appropriate section(s) here. Also paste the init<hsodbc>.ora and odbc.ini .
    Ed

  • Warning: Action and Event are not compatible for LinktoAction type

    Hi,
       I get a warning message "Action and event are not compatible" for the action associated with the type LinkToAction. The Action method "ShowDetails" has the parameters wdEvent (default) and IWDNodeElement.
       Can anybody please suggest what causes this warning?
    Regards
    Sagar

    Sagar,
    Unfortunately, it is impossible to remove this warning completely. However, you may safely ignore it.
    What you can do is copy text of warning (or part of text), then click "Filter" icon on Tasks view in IDE and set filter to hide these warnings. I do this for annoying "UI element has no lable text"
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • SP1 to R2 Upgrade - The installed Version of SQL Server is not supported for the operational database

    Hello, 
    Am trying to upgrade a SCOM SP1 environment to SCOM R2( 3 MGT servers, 1 GW and 2 Web console boxes )
    The prerequisites are failing and it is stating the following ; 
    Operational Database SQL Version Check - The installed Version of SQL Server is not supported for the operational database
    Data Warehouse  SQL Version Check - The installed Version of SQL Server is not supported for the data warehouse
    The SQL servers are running SQL 2012 SP1 64 Enterprise, which is compatible.
    All other pre-upgrade tasks have been done. 
    Help appreciated! 

    I'm having the exact same issue, I believe. I think that Tubble has problem with SCOM 2012. Not 2007.
    I've checked the compatibility list for both SCOM 2012 SP1 and R2. All newer Windows Server and SQL versions are supported. We're running the SQL 2012 SP1 x64 Standard edition on a Windows Server 2012 Standard.
    I even tried to move the database from SQL 2012 to an older SQL 2008 R2, but that's not supported either. Only upgrading. Not downgrading.
    So, I started checking the opsMgrSetupWizard.log file for clues. And the error message was there as well. But the reason why it says not supported is that it can't get the info about the OS version, so I guess it assumes the OS version is to low. The RPC
    service can not be reached.
    [10:29:11]: Error: :GetRemoteOSVersion(): Threw Exception.Type: System.Runtime.InteropServices.COMException, Exception Error Code: 0x800706BA, Exception.Message: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    [10:29:11]: Error: :StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [10:29:11]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    [10:29:11]: Error: :Error:IsValidSQLVersionCheck: SqlServer OS version is too low.
    [10:29:11]: Debug: :**************************************************
    [10:29:11]: Error: :<![CDATA[CheckPrerequisites: Logic Type:and IsValidOMDBSQLVersionCheck: 2]]>
    [10:29:11]: Error: :
    [10:29:11]: Error: :CheckPrerequisites: OMDBSqlVersionCheckTitle: Failed
    [10:29:11]: Error: :
    [10:29:11]: Debug: :**************************************************
    [10:29:33]: Error: :GetRemoteOSVersion(): Threw Exception.Type: System.Runtime.InteropServices.COMException, Exception Error Code: 0x800706BA, Exception.Message: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)
    [10:29:33]: Error: :StackTrace: at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
    at System.Management.ManagementScope.InitializeGuts(Object o)
    at System.Management.ManagementScope.Initialize()
    at System.Management.ManagementObjectSearcher.Initialize()
    at System.Management.ManagementObjectSearcher.Get()
    at Microsoft.EnterpriseManagement.OperationsManager.Setup.Common.SetupValidationHelpers.GetRemoteOSVersion(String remoteComputer)
    [10:29:33]: Debug: :IsSQLOnAValidComputer: remote OS version string was null or empty.
    [10:29:33]: Error: :Error:IsValidSQLVersionCheck: SqlServer OS version is too low.
    [10:29:33]: Debug: :**************************************************
    So, in our case this was just a FW that was blocking some high ports between management server and SQL. I believe TCP port 135 also needs to be open.
    Let's hope this fixes your issue as well, Tubble.
    Have a great day!

  • Yeild and Activity Types are not coming on confirmation

    Dear Sir's
    Hope everyone fine by the grace of GOD.
    Friends i am facing a problem while doing Confirmation of production order in T.Code Co11n .Yeild(net production) is not picking from the Production order and also Activity types are not coming while doing confirmation.
    please help me out in this problem
    Best Regards,
    HAFIZ ABDUL HASEEB KHAN
    SC.PP Consultant

    Dear
    There are 3 possibilities to populate the activity  and yeild field:
    1) The system can propose them based on quantity, using the standard
    formula, directly after entry of the operation being confirmed please check it in your order first
    2) The system can propose them at the time of saving
    3) They can be manually entered ~ however using this option, formula
    will not recalculate using the settings from the Standard value key,
    set for the work centre.
    To set one of the above as default in customising, follow these steps:
    - Call transaction OPK0
    - Select the default Confirmation Profile SAP001 is being ticked marked. - Default Values , Qty and Service in OPK0
    - Select the Default tab and set the default for Quants and Services
    to 'Immediate Proposal' or 'Propose When Saving'
    These options allow you to choose whether the activity  and yeild proposal in
    C011N is given immediately after entry of the operation to be
    confirmed or upon saving the confirmation. However note that if
    you subsequently override these proposals by maually entering activity
    details, the formulae will not be recalculated and manually entered
    data will take presidence.
    Hope this is clear
    Regards
    JH

  • One or more field types are not installed properly. Go to the list settings page to delete these fields.

    Hi Team,
    I have created Administrator -approved Infopath form template to my site and activated same template in CA.
    I have used this template in one of my Form library and i can able to submit the Form with success to the library.
    when i click "View Item" or "Edit Item" of the form it throws , "One or more field types are not installed properly. Go to the list settings page to delete these fields." error message.
    I have refered my log files also but there is no useful information in that, please find my logs for your reference.
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    Logging Correlation Data      
    xmnv
    Medium  
    Site=/sites/Prototypes
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    Monitoring                    
    b4ly
    High    
    Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=8.51588679566816
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    General                       
    8kh7
    High    
    One or more field types are not installed properly. Go to the list settings page to delete these fields.
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    General                       
    8sl1
    High    
    DelegateControl: Exception thrown while adding control 'ASP._controltemplates_publishingconsole_ascx': One or more field types are not installed properly. Go to the list settings page to delete these fields.
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    General                       
    8kh7
    High    
    One or more field types are not installed properly. Go to the list settings page to delete these fields.
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    Runtime                       
    tkau
    Unexpected
    System.Runtime.InteropServices.COMException: One or more field types are not installed properly. Go to the list settings page to delete these fields.   
    at Microsoft.SharePoint.Library.SPRequestInternalClass.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEARRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback,
    ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)    
    at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName, String bstrViewName, String bstrViewXml, SAFEA...
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    Runtime                       
    tkau
    Unexpected
    ...RRAYFLAGS fSafeArrayFlags, ISP2DSafeArrayWriter pSACallback, ISPDataCallback pPagingCallback, ISPDataCallback pPagingPrevCallback, ISPDataCallback pFilterLinkCallback, ISPDataCallback pSchemaCallback, ISPDataCallback pRowCountCallback, Boolean& pbMaximalView)
    w3wp.exe (0x2D7C)                       
    0x3790
    SharePoint Foundation         
    Monitoring                    
    b4ly
    Medium  
    Leaving Monitored Scope (Request (GET:http://test-sharepoint:80/sites/Prototypes/TRT/TRTLibrary/Forms/EditForm.aspx?ID=47&Source=http%3A%2F%2Ftest%2Dsharepoint%2Fsites%2FPrototypes%2FTRT%2FTRTLibrary%2FForms%2FAllItems%2Easpx&RootFolder=%2Fsites%2FPrototypes%2FTRT%2FTRTLibrary&ContentTypeId=0x01010100E7EE25E5A6898C4587A6B52C808EF03300FD54861D587A7E43BA3E2E6D392A3526&IsDlg=1)).
    Execution Time=32.443369199158
    w3wp.exe (0x08E4)                       
    0x2C58
    Access Services               
    Data Layer                    
    8jg2
    Medium  
    ResourceManager.PerformCleanup: Disk Manager: CurrentSize=0.
    w3wp.exe (0x08E4)                       
    0x2C58
    Access Services               
    Data Layer                    
    5pbr
    Medium  
    ResourceManager.EvictUnusedItems: Disk Manager: Going to evict unused items. CurrentSize: 0.
    w3wp.exe (0x08E4)                       
    0x2C58
    Access Services               
    Data Layer                    
    5pbs
    Medium  
    ResourceManager.EvictUnusedItems: Disk Manager: After unused items eviction. CurrentSize: 0 
    Diff:0.
    w3wp.exe (0x2D7C)                       
    0x0774
    SharePoint Foundation         
    Topology                      
    e5mc
    Medium  
    WcfSendRequest: RemoteAddress: 'http://test-sharepoint:32843/4ac2daef5ffe4850be08bd7bbebb5ac2/MetadataWebService.svc' Channel: 'Microsoft.SharePoint.Taxonomy.IMetadataWebServiceApplication' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
    MessageId: 'urn:uuid:dcba94c3-2764-428c-b44f-60e703328ceb'
    w3wp.exe (0x08E4)                       
    0x2E24
    SharePoint Foundation         
    Topology                      
    e5mb
    Medium  
    WcfReceiveRequest: LocalAddress: 'http://test-sharepoint.anca.com.au:32843/4ac2daef5ffe4850be08bd7bbebb5ac2/MetadataWebService.svc' Channel: 'System.ServiceModel.Channels.ServiceChannel' Action: 'http://schemas.microsoft.com/sharepoint/taxonomy/soap/IDataAccessReadOnly/GetChanges'
    MessageId: 'urn:uuid:dcba94c3-2764-428c-b44f-60e703328ceb'
    Jeeva

    Hello,
    Is there any other content type on library or check if there is any duplicate column? Could you please also show us your library columns detail? (pic is also fine of lib settings page)
    If you have any ""Property Promotion" column then SP create those columns as site column and associate them with this template so check "Allow management of content types" for that form library as well.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • One or more field types are not installed properly. Go to the list settings page to delete these fields. nativehr 0x81020014 /nativehr nativestack /nativestack

    Hi ,
    I am working in sharepoint 2013, This is a custom timer timer Execute method where i am moving a document item from one library to other once its expired,it was running fine and suddenly giving following error:-
    One or more field types are not installed properly. Go to the list settings page to delete these fields.<nativehr>0x81020014</nativehr><nativestack></nativestack>
    StackTrace = "   at Microsoft.SharePoint.SPGlobal.HandleComException(COMException comEx)\r\n   at Microsoft.SharePoint.Library.SPRequest.GetListItemDataWithCallback2(IListItemSqlClient pSqlClient, String bstrUrl, String bstrListName,
    String bstrViewName, String bstrView...
    I have filled all the meta data(site column) for the item but still same error, Please help me out as i have no clue why it is giving this error
    public override void Execute(Guid targetInstanceId)
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(sourceUrl))
    using (SPWeb web = site.OpenWeb())
    //gets the document lib
    SPList listFrom = web.Lists[sourceList];
    //gets the expired documents items
    SPQuery query = new SPQuery();
    query.ViewFields = "<FieldRef Name='Expiration_x0020_Date'/>";
    query.Query = @"<Where><Leq><FieldRef Name='Expiration_x0020_Date'/><Value Type='DateTime' ><Today /></Value></Leq></Where>";
    SPListItemCollection items = listFrom.GetItems(query);
    //if expired items found
    if (items.Count > 0)
    SPFile oFile = null;
    foreach (SPListItem item in items)
    string strfile = item.File.Name;
    oFile = web.GetFile(sourceList + "/" + strfile);
    //oFile.CopyTo("Archive/" + strfile);
    oFile.MoveTo(destinationList + "/" + strfile);

    Hi,
    I think the issue is related to the internal name of the Expiration Day.
    In the caml query code lines, we should use the right internal field name to retrieve and filter the list items.
    To avoid such mistake, we can use the CAML Designer tool to generate the caml query code.
    We can download the tool here: http://www.camldesigner.com/?p=594
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

Maybe you are looking for