REST API - Can't expand Title of lookup columns "System.ArgumentException : Value does not fall within the expected range"

I have a list that has more than 12 columns of type lookup with more than 5000 items and I am using a date field as an indexed column so I can restrict the results to meet the list view threshold.  I am also using $select to restrict the columns to
meet the lookup column threshold.
If I run the query below it all works as expected:
_api/web/Lists/MyList/items/?$Filter=Created gt '2015-03-10T05:00:00.000Z' and Created lt '2015-03-17T18:25:00.712Z'&$select=Lookup1/Id&$expand=Lookup1
If I run this query it does not work:
_api/web/Lists/MyList/items/?$Filter=Created gt '2015-03-10T05:00:00.000Z' and Created lt '2015-03-17T18:25:00.712Z'&$select=Lookup1/Title&$expand=Lookup1
Error:
<m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata">
<m:code>-2147024809, System.ArgumentException</m:code>
<m:message xml:lang="en-US">Value does not fall within the expected range.</m:message>
</m:error>
The lookup column "Lookup1" is using Title as the column's information and this should be working.  What is interesting is that changing the lookup threshold has no effect on this but raising the list item view limit does make it work.  The
date range is selecting less than 5000 items.  So what am I missing here? I just want the Title for the lookup column and my query has about 10 items in it.

Looking through the logs the error is thrown due to the following error messages:
03/19/2015 08:26:12.12 w3wp.exe (0x6D34)
0x7F38 SharePoint Foundation
Fields 84h8
High Field with internal name 'LookupFieldName_x005f_Title' already exists in the field cache
3446f49c-f2d2-d0a2-89f4-59dee19b2f45
03/19/2015 08:26:12.12 w3wp.exe (0x6D34)
0x7F38 SharePoint Foundation
Fields ki9p
High Unable to add join related fields to the Query.[Error 0x80070057]
3446f49c-f2d2-d0a2-89f4-59dee19b2f45
03/19/2015 08:26:12.12 w3wp.exe (0x6D34)
0x7F38 SharePoint Foundation
General xxpm
High Unable to execute query: Error 0x80070057
3446f49c-f2d2-d0a2-89f4-59dee19b2f45
03/19/2015 08:26:12.12 w3wp.exe (0x6D34)
0x7F38 SharePoint Foundation
General 8e2s
Medium Unknown SPRequest error occurred. More information: 0x80070057
3446f49c-f2d2-d0a2-89f4-59dee19b2f45
03/19/2015 08:26:12.12 w3wp.exe (0x6D34)
0x7F38 SharePoint Foundation
General aix9j
High SPRequest.GetListItemDataWithCallback2: UserPrincipalName=<removed>, AppPrincipalName= ,pSqlClient=<null> ,bstrUrl=siteUrl ,bstrListName=<removed> ,bstrViewName=<null> ,bstrViewXml=<View
Scope="RecursiveAll"><Query><Where><Eq><FieldRef Name="ID" /><Value Type="Counter">5481</Value></Eq></Where></Query><ViewFields><FieldRef Name="LookupFieldName"
LookupId="TRUE" /><FieldRef Name="LookupFieldName_x005f_Title" /></ViewFields><ProjectedFields><Field Name="LookupFieldName_x005f_Title" Type="Looku ,fSafeArrayFlags=SAFEARRAYFLAG_DATES_IN_UTC
3446f49c-f2d2-d0a2-89f4-59dee19b2f45
The very first message states that it is unable to add join related fields, what could be the possible cause of this?  As you can see rather than specifying a date range which I know contains less than 5000 items, even filtering based on ID gives the
same result.

Similar Messages

  • I have added about 2000 cds to itunes without the song details. as i slowly update the song titles and genres etc in itunes, it does not always update the file in explorer. is there a solution to this? thanks.

    i have added about 2000 cds to itunes without the song details. as i slowly update the song titles and genres etc in itunes,it does not always update the file in explorer.is there a solution to this? thanks.

    Windows Explorer will display tag properties for mp3 & wma files, not aac (m4a) or wav. It is possible for mp3 files to contain multiple tags but only one will be displayed. Try inspecting the problem fils with a third party tag editor to see if you can tell what is going on. For mp3 files, provided all the details that you want the file to have are displayed in iTunes, you can try using the right-click option Convert ID3 Tag > None a few times followed by Convert ID3 Tag > ID3v2.3 which may well help.
    tt2

  • HT2589 i can sign into itunes using my appleID, but my appleID does not work for the app store . . . help??

    help

    Hello nick,
    Thanks for dropping by our Support Community!
    The following article would be a great place to start in your efforts to restore the iTunes Store's functionality to your computer.
    Can't connect to the iTunes Store
    http://support.apple.com/kb/TS1368
    Cheers,
    Allen

  • Unable to lookup home: Path to object does not exist at : java:comp#

    Hallo,
    I do not understand why I am getting the exception:
    Unable to lookup home: Path to object does not exist at : java:comp#
    if i have defined in the ejb-j2ee-engine.xml the jndi name:
    <enterprise-beans>
         <enterprise-bean>
              <ejb-name>MyConverterBean</ejb-name>
              <jndi-name>MyConverterBean</jndi-name>
              <session-props/>
         </enterprise-bean>
    </enterprise-beans>
    and in the ejb-jar.xml :
    <enterprise-beans>
       <session>
          <description>the converter bean</description>
          <display-name>MyConverter</display-name>
          <ejb-name>MyConverterBean</ejb-name>
          <home>converter.MyConverterHome</home>
          <remote>converter.MyConverter</remote>
          <local-home>converter.MyConverterLocalHome</local-home>
          <local>converter.MyConverterLocal</local>
          <ejb-class>converter.MyConverterBean</ejb-class>
          <session-type>Stateless</session-type>
          <transaction-type>Container</transaction-type>
        </session>
    </enterprise-beans>
    I am creating the EJB in this way:
    ic = new InitialContext();
    objRef = ic.lookup("java:comp/env/ejb/MyConverter");
    home = (MyConverterHome)PortableRemoteObject.narrow(objRef, MyConverterHome.class);
    converter = home.create();
    I checked in the Administrator tool under JDNI / ejbContext and I can see MyConverterBean in the list.
    Do you have any idea what I am doing wrong?
    thanks a lot for your help,
    SAPLernen

    Hi Vladimir,
    do you have some example or tutorial of how can i implement java proxies from a java stand alone application.
    i allready make everyting but i'm still having problem.
    this line give me a null
    queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)ctx.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
    this is my java class that invoke my ejb java proxy
    package com.gsk.xi.demo;
    import java.util.Properties;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import com.sap.aii.proxy.xiruntime.core.MessageSpecifier;
    public class InvokeProxy {
         private Object objRef = null;
         private InitialContext ic = null;
         public String getRole(String name, String pwd){
              String role="0";
              UsersSyncMI_PortTypeLocalHome queryOutLocalHome=null;
              UsersSyncMI_PortTypeLocal queryOutLocal=null;
              try{
                   Context ctx = null;
                   Object ref = null;
                   Properties p = new Properties();
                   p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
                   p.put(Context.PROVIDER_URL, "buasapp012.gwamericas.corpnet1.com:50004");
                   p.put(Context.SECURITY_PRINCIPAL, "J2EE_ADMIN");
                   p.put(Context.SECURITY_CREDENTIALS, "was1234");
                   ctx = new InitialContext();
                   //objRef = ic.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
                   //queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)PortableRemoteObject.narrow(objRef, UsersSyncMI_PortTypeLocalHome.class);     
                   queryOutLocalHome = (UsersSyncMI_PortTypeLocalHome)ctx.lookup("java:comp/env/ejb/UsersSyncMI_PortTypeBean");
                   queryOutLocal = queryOutLocalHome.create();
                   MessageSpecifier msg = queryOutLocal.$messageSpecifier();
                   msg.setSenderService("JAVA");
                   queryOutLocal.$messageSpecifier(msg);
                   UserDT_Type reqtype = new UserDT_Type();
                   reqtype.setUsername(name);
                   reqtype.setPassword(pwd);
                   UsersDBMTResponse_Type response = new UsersDBMTResponse_Type();
                   response = queryOutLocal.usersSyncMI(reqtype);
                   role = role + response.getStatementResponse().getRow().getRole();
              catch(Exception ex){
                   System.out.println(ex.getMessage());
              return role;
    } //end of class
    thanks for your time
    Lionel

  • HT4907 I am able to connect to my Mac Mini on Back to My Mac through iCloud but the keyboard/trackpad on the MBAir or MBP with which I access does not register on the Mini.  So I can see the screen but cannot interact with it. Mini works accessing MBP/Air

    I am able to connect to my Mac Mini on Back to My Mac through iCloud but the keyboard/trackpad on the MBAir or MBP with which I access does not register on the Mini.  So I can see the screen but cannot interact with it. Mini works accessing MBP/Air and I can use Mini to input data or interact with screens of those computers.

    Regarding your first question about bookmarks, I think you discovered the answer in when you pressed the address bar. The second tab there has your bookmarks.
    As for the keyboard, I'm not sure why your Firefox is reacting so slowly; mine seems to show keyboards even when I don't want them. If you have accumulated a lot of history, perhaps that's an issue?
    Did you use any third party software to move your Firefox data from internal memory to the storage card?

  • When trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    when trying to update apps i keep getting billing method incorrect(this is on iphone 4s) i hsve tried this store,apple id,view id,payment info but does not offer me the none option,i can npt update my phone any ideas anybody please?

    If you dont have none option then you must own itunes some money. So you have to enter the payment like a itunes giftcard. you can contact itunes by email by going to expresslane.apple.com

  • My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    My iphone 4 does not register calls made to it. if i make a call from another phone, i can hear it ringing, but it does not register on the iphone. also, i do not get any messages when this happens. then after a day or two it decides to start working.

    Clean iPhone charging port with clean dry toothbrush. See if better. If still problem clean charging port again with toothbrush and small amount of Isopropyl Alcohol.

  • HT4009 I would like to make an in app purchase using my $20.00 credit that I have on I tunes. I am using my  i phone5. It does not give me the choice of using the credit that I have, only a credit card. How can I use the credit for the purchase??

    I would like to make an in app purchase using the $20.00 credit that I have on itunes. I am using my i phone5. It does not give me the option of using the credit that I already have, only of using a credit card. How can I use the credt that I already have instead of a credit card?

    Is Settings > General > Restrictions > In-App Purchases: ON (green)?
    Some In-App Purchases works only with credit card.

  • Numbers does not open with the main user after installing mountain lion. It works flawlessly when I use the second account on my mac. What got corrupted in the admin-account, something in the user-library? How can I fix it? I´m kinda desperate...

    Numbers does not open with the main user after installing mountain lion. It works flawlessly when I use the second account on my mac. What got corrupted in the admin-account, something in the user-library? How can I fix it? I´m kinda desperate... (the same happens with the other iWork-Apps!)
    Looking forward to hearing from somebody with a littlemore expertise than me, Chris

    you can remove preferences files by navigating to the Preferences folder for your user as follows:
    0) Quit ALL iWork apps (Keynote, Pages and Numbers)
    1) from the Finder select the menu item "Go > Go To Folder…".  This will bring up a dialog:
    2) enter the path "~/Library/Preferences" (no double quotes)
    3) find the files:
    com.apple.iWork.Keynote.plist
    com.apple.iWork.Numbers.plist
    com.apple.iWork.Pages.plist
    and move these to the trash.  I would NOT empty until later.
    4) restart Numbers

  • I recently updated my e-mail address with apple, but now it does not show all the "purchased" music that I purchased under my old e-mail address.  How can I re-gain access to those hundreds of purchased songs?

    I recently updated my e-mail address with apple, but now it does not show all the "purchased" music that I purchased under my old e-mail address.  How can I re-gain access to those hundreds of purchased songs?

    You are trying to find a loophole to circumvent a basic rule that prohibits the transfer of purchased content from one Apple ID to another.
    Content tied to an Apple ID are bound to that Apple ID forever. You can not merge or trade accounts. Well, not (officially) anyway...

  • When I save my book in iBooksAuthor as .ibooks, it does not open on the Intro Media page.  How can I be sure it opens on the first page?

    When I save my book in iBooksAuthor as .ibooks, it does not open on the Intro Media page.  How can I be sure it opens on the first page?

    hello suffaman46, please refer to the documentation provided by yahoo for this issue: http://help.yahoo.com/kb/index?locale=en_US&y=PROD_ACCT&page=content&id=SLN2896

  • How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    How to get a question in the course placed anywhere in the course and does not appear in the quiz result or total number of questions. Pretest would work except it can't go anywhere in the course (at least for me it can't)

    Use a normal question, and do not add the score to the total score. That will give you a correct score at the end. But the total number of questions, that system variable will still take into account all questions. You'll need a user variable, and calculate its value by subtracting 1 from the system variable cpQuizInfoTotalQuestionsPerProject. Same for the progress indicator if you want to show it?
    Customized Progress Indicator - Captivate blog
    If you want to allow Review, you'll have to tweak as well. You didn't specify the version, and all those questions I now mentioned.
    And my approach, since you talk about only one question: create a custom question, because you'll have total control then.

  • Ipod touch does not turn on the screen shows USB cable and ask to connect to the itune, itune message pops up can not connect because it is locked with pass code how can i turn on this device?

    My son's ipod touch 3 screen shows a USB cable image and ask to connect to the itune. Itune does not connect with the message shows: this device is locked and can not be connected to the itune before you unlock it" I have no idea how to turn on this device and how to connect this to the itune, any help is highly appreciated.

    Try to get it to recognize it by using DFU Mode. Then restore.
    Basic troubleshooting steps  
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • I have installed the font Broadway on my computer and it works in Microsoft Word but does not appear in the font list in InDesign.  How can I fix this problem?

    I have installed the font Broadway on my computer and it works in Microsoft Word but does not appear in the font list in InDesign.  How can I fix this problem?

    Start by rebooting the computer. If that doesn't work, search for adobefnt*.lst and delete all instances where * becomes a 2-digit number.

  • HT2513 In my iCal, "new reminder" does not appear in the menu under "File". How can I get reminders to show up on my iCal

    In my iCal, "new reminder" does not appear in the menu under "File". How can I get reminders to show up on my iCal?

    If you're running Mountain Lion (10.8.3), reminders is now a separate app.  Launch reminders from your applications group and you will be able to access File>New Reminder.

Maybe you are looking for

  • Logon methods in user mapping

    Hi friends,    In user mapping we use any of the three logon methods which are nothing but authentication methods.can anybody please explain what are these methods? with regards sireesha

  • Value mapping in UDF?

    Hi Guys, Is it possible to do the value mapping in a UDF. ReceiverService at runtime - X --> Value mapping not maintained ReceiverService - Y ---> Value mapping maintained.  I want to use this receievr service. There are more than 300 VM groups and i

  • FS-CD Installation

    Hello Gurus, Could you please let me know if we need to install FSPM to activate FSCD? Thanks and Regards, Prasad

  • Billing document with email output

    Hi, I have completed all the config to get my billing documents to output via email. However i cannot get VF31 to automatically generate the output for these. Only works if i manually assign output with VF02. Can anyone advise in simple steps what ne

  • How to build custom search using API - 10.1.2

    Hi, I have been looking through some documentation and i can't seem to find how to use the API in portal 10.1.2 to create a custom search. Any help or samples would be appreicated. Thanks