I have a list of page URLs - I want a report showing their SiteCatalyst Page Names

I have a list of page URLs and I want to generate their respective page names.  Is this possible?  I have access to SiteCatalyst 15 and Discover 3.1.
I want to end up with this table:
Page URL
Page Name
www.example.com/page1
Page 1
www.example.com/page2
Page 2

You want to do this within CQ ? If yes then you can use pagemanager API to get page http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/wcm/api/Page.html#getName() name and JCR API to get path http://www.day.com/maven/javax.jcr/javadocs/jcr-2.0/javax/jcr/Item.html#getPath()
To get absolute URL you can also use externilizer service http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/commons/Externalizer.html#absolut eLink(org.apache.sling.api.SlingHttpServletRequest, java.lang.String, java.lang.String)
Yogesh

Similar Messages

  • I have these three tables data and i want this report as given below

    here cpv means cash payment voucher<pre>i have voucher header tableVoucher Voucher Voucher Entry ID Type Date Date1 CPV 2014-12-10 16:47:00 0 2014-12-10 00:00:00
    1 CRV 2014-12-10 16:22:00 0 2014-12-10 00:00:00
    1 JV 2014-12-10 16:49:00 ccc 0 2014-12-10 00:00:00
    2 CPV 2014-12-10 16:51:00 sss 0 2014-12-10 00:00:00
    2 CRV 2014-12-10 16:59:00 0 2014-12-10 00:00:00
    2 JV 2014-12-20 14:31:00 0 2014-12-20 00:00:00
    3 CPV 2014-12-20 14:33:00 0 2014-12-20 00:00:00
    3 CRV 2014-12-13 15:02:00 0 2014-12-13 00:00:00
    3 JV 2014-12-13 15:02:00 0 2014-12-20 00:00:00
    4 CPV 2014-12-20 14:33:00 0 2014-12-20 00:00:00
    4 CRV 2014-12-13 15:13:00 0 2014-12-13 00:00:00
    4 JV 2014-12-23 00:21:00 0 2014-12-23 00:00:00
    5 CPV 2014-12-20 20:50:00 0 2014-12-20 00:00:00
    5 CRV 2014-12-14 23:39:00 0 2014-12-14 00:00:00
    5 JV 2014-12-23 00:24:00 0 2014-12-23 00:00:00
    6 CPV 2014-12-20 22:43:00 0 2014-12-20 00:00:00
    6 CRV 2014-12-14 23:40:00 0 2014-12-14 00:00:00 select VoucherID,VoucherType,Remarks ,Debit,Credit from voucherbody
    1 CRV fsdd 0.000000000 44.000000000
    1 JV xccc 4.000000000 4.000000000
    2 CRV sdf 0.000000000 40.000000000
    2 CPV ss 33.000000000 0.000000000
    1 CPV cxvx 43.000000000 0.000000000
    3 CRV 0.000000000 33.000000000
    4 CRV 0.000000000 200.000000000
    5 CRV 0.000000000 3444.000000000
    6 CRV 0.000000000 343333.000000000
    2 JV 300.000000000 300.000000000
    3 CPV 40000.000000000 0.000000000
    7 CRV 0.000000000 34.000000000
    8 CRV 0.000000000 4000.000000000
    9 CRV ss 0.000000000 3444.000000000
    4 CPV 345.000000000 0.000000000
    5 CPV 230.000000000 0.000000000
    3 JV 4000.000000000 4000.000000000
    6 CPV 2.000000000 0.000000000
    7 CPV 3432.000000000 0.000000000
    8 CPV 222.000000000 0.000000000
    9 CPV 2000.000000000 0.000000000
    10 CPV 233.000000000 0.000000000
    11 CPV 3444.000000000 0.000000000
    10 CRV 0.000000000 45555.000000000
    12 CPV 333.000000000 0.000000000
    13 CPV 344.000000000 0.000000000
    14 CPV 4555.000000000 0.000000000
    15 CPV 455.000000000 0.000000000
    16 CPV 2222.000000000 0.000000000
    17 CPV 333.000000000 0.000000000
    18 CPV ss 232.000000000 0.000000000
    19 CPV 222.000000000 0.000000000
    11 CRV 0.000000000 2222.000000000
    4 JV xx 200.000000000 200.000000000
    12 CRV 0.000000000 333.000000000
    20 CPV 3333.000000000 0.000000000
    13 CRV 0.000000000 3333.000000000
    14 CRV 0.000000000 4444.000000000
    5 JV 33.000000000 33.000000000
    21 CPV ssss 2222.000000000 0.000000000
    22 CPV wsss 2222.000000000 0.000000000
    23 CPV 22222.000000000 0.000000000
    24 CPV qqq 1111.000000000 0.000000000
    25 CPV 222.000000000 0.000000000
    26 CPV 2222.000000000 0.000000000
    15 CRV qqqq 0.000000000 11111.000000000
    16 CRV 0.000000000 2000.000000000
    27 CPV 10000.000000000 0.000000000
    28 CPV 23.000000000 0.000000000select AccountNo,AccountTitle,AccountType,OpeningDebit,OpeningCredit from AccountChart100001 Majid ASSET 2000.000000000 3000.000000000
    100002 Salman ASSET 2999.000000000 1000.000000000
    100003 Kamran ASSET 4000.000000000 4500.000000000
    100004 Arif ASSET 3000.000000000 2000.000000000
    100005 Aslam ASSET 2000.000000000 50000.000000000
    100006 Akram ASSET 30.000000000 454.000000000
    100007 Sohail ASSET 3.000000000 353.000000000
    100008 Kashif ASSET 78897.000000000 7879.000000000
    100009 Asif ASSET 4200.000000000 3242.000000000
    100010 Tajmul ASSET 1111123.000000000 3000.000000000
    100011 Kamran ASSET 3.000000000 113.000000000
    100012 Taswer ASSET 2000.000000000 1000.000000000
    100013 dfd ASSET 2000.000000000 1000.000000000
    100014 Tameer ASSET 3000.000000000 2000.000000000
    100015 No Name ASSET 5000.000000000 1999.000000000
    100016 Saleem ASSET 3339.000000000 9999.000000000
    100017 Awais ASSET 6000.000000000 4000.000000000
    100018 Abid ASSET 4000.000000000 1000.000000000
    200001 Muazam LIABILITY 500.000000000 0.000000000i want this report as given below from above tables account no AccountTitle accounttype Debit Credit1 CRV fsdd 0.000000000 44.0000000001 cash fsdd 44.000000000 0.000000000</pre>

    SELECT AC.AccountNo
    ,AC.AccountTitle
    ,AC.AccountType
    ,VB.Debit
    ,VB.Credit
    FROM voucherheader VH
    INNER JOIN voucherbody VB ON VH.VoucherID = VB.VoucherID
    INNER JOIN AccountChart AC ON AC.AccountNo = VH.AccountNohere voucher header has voucherID and not Accountnoit is showing error at vh.accountno

  • Want the Report to show all the records but side by side not a list of 15

    I created a report and the report shows a list 1 to 15, I want it to show all but next to each other how do I do that?

    I'm not sure I understand Your question but in Report Atrributes U have a "Layout and Pagination" field - there U can change Pagination Scheme. Maybe one of default will help U to receive what U want

  • List of all users in a client along with their roles

    Hi All,
    Is there a way to get a list of all the users available in a client along with the roles assigned to them?
    I could actually compare the users and roles individually. But i would like to have a complete list.
    Thanks
    Vijay

    basically you want user reports...
    You can try go to transaction SE38 -> RSUSR*  , all the user reports are started with RSUSRxxxxx, inside might have something relevant to your request.
    cheers,
    Vincent

  • New page names- file confusion?

    Hi, I'm reorganising my site and would like to change some page names in iWeb. Is this OK, or will it mean that all the files on that page will not be 'found' any more since they have the original name ?
    Thanks, Kay.

    but can I then simply change the names of the pages in the Navigation bar?
    Only if you're using a Text Based Navbar and not the standard navbar.
    With the standard navbar the page name is what appears in the navbar. To change what's in the navbar you have to change the page name. With a text based navbar you can put any name in the text box navbar you want and point it to the existing page your want.
    OT

  • Setup my site error message says: "You do no have permissions to have lists and pages within my site

    Hello Community
        In Sharepoint 2010 after entering the url to My Site in order to create my personal site
     the "My Content" link was clicked.
        Instead of going to another page a message gets display across the page stating:
    "You do not have permissions to have lists and pages within My Site."
        I am not logged on as the Farm account and I am not supposed to be.  I am just logged
    on as the domain user that created these web applications, services  and My Site.
        What kind of permissions do I need to have lists and pages within My Site?
        Thank you
        Shabeaut

    Hello Guru Karnik
        There has been no mention of "AAM" which I know understand is the abbreviation for:
    "Alternate Access Mapping."
        The "My site Host (url)" is the url of the
    :port/">http://<servername>:port/ that I created for the web application/site collection?
        And After that then will I have permissions to have lists and
    pages within My Site when I click "My Content"?
        If so, how do I create the AAM in SharePoint 2010?
        Thank you
        Shabeaut

  • At the top of my Mozilla home page, it lists the current URL site I am on. How do I delete them and the others in the drop down box? Highlighting and hitting delete does not work

    At the top of my Mozilla home page, it lists the current URL site, such as http://www.safeco.com, I am on plus the others in the drop down box. How do I delete them. Highlighting and hitting delete does not work.
    I am using windows Vista 007 and Mozila 3.6.1.3

    Do those entries have a yellow star at the far right?
    If they have then they are bookmarks. You can remove them if you open that link and click the star to open the Edit This Bookmark dialog and click the Remove button in that dialog.
    * [[Clearing Location bar history]]
    * [[Cannot clear Location bar history]]

  • How do I create a URL to filter a view when the value I have from list one is the ID that was used by list 2 to pull in the list 1 title?

    My list "Tasks" has an record with Title = "Build SSIS for Duke Energy" and its ID is 1. Then I have a list "Journal" where I have tracked entries related to the progress of the task. When I create the Journal entries I passed
    in the ID of the task 1 which then pulled the title into the Journal's Associated task lookup column. Now I'd like to have a column in the Tasks list that would have a URL to take me to all journal entries related to the Task. But passing in the ID 1 of the
    task does not work. 
    If the lookup column has the actual Title from the task in all the time and it is not dynamically pulled every time the list is queried shouldn't I be able to filter on the Title e.g. "Build
    SSIS for Duke Energy"  

    I ended up going with a workflow to build the URL and sending the title to the look-up column. 
    I tried the script at that site and ran into several problems. It didn't work with views that were grouped, the calculated links did not show on the edit and view forms. I assume those forms would have to be changed to run the script also.
    In addition to, I have to add a CEWP to each view and I was also losing the "Items" and "List" options (next to "Browse") from the ribbon until I clicked around in the list. 
    What are the downfalls of a workflow? I ask because many people default to using a similar TextToHTML script like you mentioned.

  • When you have a list or blog within a box on a page, how do you get it to scroll within the box.

    When you have a list or blog within a box on a page, how do you get it to scroll within the box?

    Thanks so much!  Whatever I was trying only worked randomly. You made my day!

  • Does anyone have a list of all iWork Pages templates handy? I'm not at my Mac now.

    Does anyone have a list of all iWork Pages templates handy? I'm not at my Mac now.

    Sorry this forum is playing up again, refusing to take the image. Finally got it to bite.

  • Question about "Get Web Drawing URL and Page Name From" for Visio Web Access

    I am trying to get both the web drawing URL and the page name from a list through Share Point Designer 2013, but it doesn´t work.
    It looks fine when a do the web part connection wizard. I select from which columns to get the URL and the page name. But on the final web part page nothing happens. It just shows the URL that is selected in the Visio Web Access Web part. I had hoped that
    that value should be overrided by the SPD-settings.
    I have googled for hours..

    Hello,
    I have now saved the Visio-file in .vdw-format, but it says Visio 2010 Web Drawing (*.vdw). Is there a .vdw-format for 2013? Isn´t that the .vsdx-format?
    Still doesn´t work with the .vdw-format, but maybe I am doing something wrong.
    Any ideas?

  • I have a list a and want to use (CSR) Jslink to change the view but multiple fields

    I have a list but want to use CSR - jslink to change the view of multiple fields. Can a jslink have multiple fields to change. Looking at the samples
    here
    Would like to merge 2 or 3 script in one to do multiple things. Is this a best practice?
    Thanks in Advance
    Code snippet here below(tried this but not working for me.Sure im missing something): Trying to combine the prioritycolor and percentagecomplete together but not working
    // Create object that have the context information about the field that we want to change it's output render
    var fieldsContext= {};
    fieldsContext.Templates = {};
    fieldsContext.Templates.Fields = {
    // Apply the new rendering for Priority field on List View
    "Priority": { "View": priorityFiledTemplate },
    "PercentComplete": {
    "View": percentCompleteViewFiledTemplate,
    "DisplayForm": percentCompleteViewFiledTemplate,
    "NewForm": percentCompleteEditFiledTemplate,
    "EditForm": percentCompleteEditFiledTemplate
    SPClientTemplates.TemplateManager.RegisterTemplateOverrides(fieldsContext);
    // This function provides the rendering logic for list view
    function priorityFiledTemplate(ctx) {
    var priority = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    // Return html element with appropriate color based on priority value
    switch (priority) {
    case "(1) High":
    return "<span style='color :#f00'>" + priority + "</span>";
    break;
    case "(2) Normal":
    return "<span style='color :#ff6a00'>" + priority + "</span>";
    break;
    case "(3) Low":
    return "<span style='color :#cab023'>" + priority + "</span>";
    // This function provides the rendering logic for View and Display form
    function percentCompleteViewFiledTemplate(ctx) {
    var percentComplete = ctx.CurrentItem[ctx.CurrentFieldSchema.Name];
    return "<div style='background-color: #e5e5e5; width: 100px; display:inline-block;'> \
    <div style='width: " + percentComplete.replace(/\s+/g, '') + "; background-color: #0094ff;'> \
    &nbsp;</div></div>&nbsp;" + percentComplete;
    // This function provides the rendering logic for New and Edit forms
    function percentCompleteEditFiledTemplate(ctx) {
    var formCtx = SPClientTemplates.Utility.GetFormContextForCurrentField(ctx);
    // Register a callback just before submit.
    formCtx.registerGetValueCallback(formCtx.fieldName, function () {
    return document.getElementById('inpPercentComplete').value;
    return "<input type='range' id='inpPercentComplete' name='inpPercentComplete' min='0' max='100' \
    oninput='outPercentComplete.value=inpPercentComplete.value' value='" + formCtx.fieldValue + "' /> \
    <output name='outPercentComplete' for='inpPercentComplete' >" + formCtx.fieldValue + "</output>%";

    Hi Patrick,
    It works in my test environment using your code.
    I suggest follow the steps as below:
    1. Save the following code as a js file (TaskListView.js) and upload it into the SiteAssets Document Library.
    2. Edit the list view page.
    3. Edit the list web part. Go to Miscellaneous -> JS Link.
    4. Add the following URL into the JS Link textbox.
    ~site/SiteAssets/TaskListView.js
    5. Click "OK" and save the page.
    If it still not works, please check whether active the Minimal Download Strategy feature in site feature or not.
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How to add custom action group in list settings page?

    I want to add one custom action in my custom group in list settings page. I have done following for that
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomActionGroup
    Id="LibrarySettings.MyGroup"
    Title ="My Group"
    Sequence="1000"
    Location="Microsoft.SharePoint.ListEdit">
    </CustomActionGroup>
    <CustomAction Id="Custom.Configuration.ListCustomSettings"
    GroupId="LibrarySettings.MyGroup"
    Location="Microsoft.SharePoint.ListEdit"
    RequireSiteAdministrator="FALSE"
    Sequence="100"
    Title="Library Admins">
    <UrlAction Url="_layouts/15/LibrarySettings.aspx?List={ListId}" />
    </CustomAction>
    </Elements>
    But custom group is not created in list settings
    Any idea what I am missing here?

    Hi,
    Per my understanding, you might want to add a custom action group into the list settings page.
    In the same way, we can add custom group into “Site Settings” page(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\settings.aspx) by specifying
    the Location attribute to "Microsoft.SharePoint.SiteSettings".
    However, in the “List Settings” page(C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\listedit.aspx), the three groups “General Settings”,
    “Permissions and Management” and “Communications” are hardcoded there which occupy all the space, it is by design.
    As a workaround, you can modify the HTML source code of the “listedit.aspx” to generate a custom group there manually.
    Thanks
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • 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