Problem with odata with custom query options

I have a datasource which uses custom query options
http://www.odata.org/documentation/odata-version-3-0/url-conventions/#url5.2
But those query options are not getting sent by Power Query with the $top requests.  Hopefully this is something you will correct in a subsequent release.
 - Chris

Here's the sequence of calls that Power Query makes:
GET /odata/catalog/test?$orderby=name&param=70442
GET /odata/catalog/$metadata
GET /odata/catalog/test?$orderby=name&$top=1000
GET /odata/catalog/test?$orderby=name&param=70442
GET /odata/catalog/$metadata
GET /odata/catalog/test?$orderby=name
GET /odata/catalog/test?$orderby=name&param=70442
The problem, as you can see, is that two of the calls did not include the "param" parameter which is resulting in incorrect behaviour. Is this a bug?
Thanks,
Chris

Similar Messages

  • OData group by query option

    Hi,
    I recently created an OData Service with the Netweaver Gateway Service Builder (SEGW), but unfortunately the grouping of properties does not seem to work as I know it from XS OData services.
    When I call the url below on an XS OData, I get a result where A and B are aggregated by YEAR
    .../odata/CA_CFA.xsodata/cfa?$select=A,B,YEAR
    This grouping does not work the same when I call the same $select parameter on the OData service I defined in SEGW.
    The properties A and B have the semantic set to "aggregate" and YEAR is set as a dimension.
    Is there a way to achieve the same behaviour with the ABAP OData service as with the XS OData service?
    Thank you!

    Hi,
    $select will return the field specified in resultset in OData query. for e.g. http://services.odata.org/OData/OData.svc/Products?$select=Rating,Price
    aggregation is not supported by OData version 2.0 on which SAP Gateway is based on.
    It will be available in OData 4.0 as mentioned here OData Extension for Data Aggregation Version 4.0
    you need to implement the grouping logic on client side. refer this discussion on similar lines Get a count of a linked collection using OData and LINQ - Stack Overflow
    Regards,
    Chandra

  • Need to reconcile users based on custom query in IT resource

    Hi,
    We have a requirement to reconcile users from DB based on below criteria:
    If the user have attribute=sysadmin as 'Y' then that user should be reconciled into idm.
    If user have two attributes=sysadmin as 'Y' and manager as 'Y', then that user should be reconciled into idm.
    If user have two attributes=sysadmin as 'Y' and manager as 'N', then that user should be reconciled into idm.
    But if If user have two attributes=sysadmin as 'N' and manager as 'N', then that user should not be reconciled into idm.
    I need to mention that in the custom query column of IT resource. I gave the below query but the schedule task fails with error.
    Custom Query: (|(|(|(|(CREATEGLOBAL_FLAG="Y")(SYSADMIN_FLAG="Y"))(ALLOCATE_FLAG="Y"))(RELEASE_FLAG="Y"))(LOCATION_RESTRICTIONS_FLAG="Y"))
    Error: ERROR,24 Apr 2012 20:29:15,830,[OIMCP.DATC],Class/Method: DBFacade/getRecord encounter some problems: ORA-00936: missing expression
    java.sql.SQLException: ORA-00936: missing expression
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    If anybody have implemented same scenario then please help us.
    Thanks,
    Kalpana.

    Try this query:
    select usr.usr_login, obj.obj_name, ost.ost_status from usr, obj, obi, oiu, ost where usr.usr_key = oiu.usr_key and obi.obi_key = oiu.obi_key and obi.obj_key = obj.obj_key and ost.ost_key = oiu.ost_key and obj.obj_name='<resource object name>'
    you can add : and ost.ost_status = <status value > to search status as well.
    regards,
    GP

  • Project Site custom list data reporting with Odata connection, BI reports in Project online 2013.

    Hi,
    Can we create an excel report with Odata feed connection which includes project site custom list data?
    Example: My Project is "ProjectTest" and it has a project site in which i created a custom list "ProjectNotes" with some new columns. I want to include these columns in my report.
    sandeep

    Hello,
    when using the SharePoint ODATA or REST APIs each list and site would have a different endpoint URL. Some example URLs are below:
    REST API:
    https://test.sharepoint.com/sites/pwa/Project01Test/_api/Web/Lists/getByTitle('ProjectNotes')/Items
    https://test.sharepoint.com/sites/pwa/Project01Test/_api/Web/Lists/getByTitle('Risks')/Items
    ODATA SVC:
    https://test.sharepoint.com/sites/pwa/Project01Test/_vti_bin/listdata.svc/Issues
    https://test.sharepoint.com/sites/pwa/Project01Test/_vti_bin/listdata.svc/ChangeRequests
    The down site is that in Excel you cant dynamically update the connection URL so would have to add all of these in manually and create the data models - I guess this is ok if you don't have many projects and don't create many new projects. In code such as
    JavaScript it is easy and you can build up the URL dynamically using variables like below:
    projSiteUrl + "/_api/Web/Lists/getByTitle('ProjectNotes')/Items"
     The options to explore to see if you have make this dynamic and get the data you want are:
    Potentially look at the search API and use that in Excel:
    http://sharepoint.stackexchange.com/questions/98159/retrieving-list-items-from-multiple-sites-via-odata-with-excel
    http://social.technet.microsoft.com/Forums/windows/en-US/727c1893-6b42-478b-afca-b32fb259a53d/retrieve-custom-lists-from-all-projects-for-excel-reports-by-using-odata?forum=sharepointgeneral
    Power Query:
    http://blog.oraylis.de/2013/05/using-dynamic-parameter-values-in-power-query-queries/
    JavaScript (put the data on a page), example:
    http://gallery.technet.microsoft.com/scriptcenter/Server-Risks-and-Issues-on-65dcbe0e
    Or bring the data down to a custom SQL database table and report of that data:
    http://nearbaseline.com/blog/2014/04/project-site-custom-list-reporting-using-ssis-odata-connector/
    Hope that helps
    Paul
    Paul Mather | Twitter |
    http://pwmather.wordpress.com | CPS

  • Need advise on a problem one of my customer have with properties going missing in Acrobat Reader

    Hi there.
    I need some advise on a major problem I got with acrobat reader on one of my customer's laptop.
    I might not have all the informations, but I can explain about everything that I could dig out of the problem.
    One of my customer asked me to find a solution to his problem as he just bought a Mac laptop and he has only been using a Windows PC before. He needed a way to be able to manipulate some texts and picture on a file (template) that he print a couple of times each week. I have built a 2 pages PDF form for him and it was a success on every computer we tried it on, except for his new Mac Laptop.
    Whenever we open the file on his laptop in acrobat reader, every single properties of any forms are not readed.
    Those "missing" properties include :
    - Everything in the "Text field property" which include size, choice of font (I specifically took a system font available on both PC and Mac and tested it on another Mac), alignment and apearances.
    - All forms, checks and buttons are resetted to a "default" appearance.
    The names and ID of the forms seems to be correct and forms with the same name seems to work. (if he fills in one part, it automaticly fills some parts on the 2nd pages instead of having him rewrite the whole stuff.)
    The sizes of the forms are correct too. It seems to only affect the form properties, but not the manually inserted javascript.
    I tried to open another form PDF I took from the Web (gouvernment forms) and it seems like the problem is not from my file as it happen with all PDF files with forms.
    I checked his Acrobat Reader version and it seems like it's up to date, as well as his java software.
    Since I couldn't do a full check-up and tried to reinstall Acrobat Reader and java as I only had about 20 minutes to check things, I'm asking around before taking that kind of option into account.
    If any got any idea or have already experienced that kind of strange thing, please tell me where could the problem be.
    Thanks!

    The file is opened manually with Adobe Reader directly on the customer's computer harddrive. (Right click on the file directly stored on the desktop. "Open with ..." and then select "Adobe Reader". The program showed on the top bar is Acrobat Reader and it's hard to mix it up as it's totally different from the "Preview" program on the Mac.)
    If I opened it with Preview (on the Mac), it was even LESS buggy. While some options  are not accessible in Preview (mainly those who use javascripts or adobe reader/acrobat only features), the visual that aren't working in Adobe Reader were working fine. Since some basic options aren't available in Preview, my customer needs to use it in Adobe Reader.
    I can garanty that the problem is related to Adobe Reader and/or maybe background process that Adobe Reader uses (for exemple : Java, C++, etc.)
    I asked around to know if someone have already experienced this issue and if they have found a way to repair it without doing a full reinstall of every kind of process that Adobe Reader uses.
    Also, if I'm doing a clean up for a restoration of Adobe Reader, is there any other program to reinstall then Adobe Reader and Java?

  • Can I use custom query in DB Adapter with Polling

    Hi All,
    I am getting problem while using db adapter with polling. Can I use custom query in db adapter with polling.
    I am using 2 tables; table 1 and table2
    Structure of table1 is as:
    File_name
    Batch_id
    Creation_date
    Status
    Structure of table2 is as:
    Batch_id
    Employee_ID
    Last_Name
    First_Name
    Middle_Name
    Group_ID
    Site_ID
    Dept_Num
    Report_id
    I have to use below query while polling to table1
    Select count(*) as NOSEXP, Report_id
    from table1, table2
    where table2.batch_id =
    table2.batch_id
    and table1.Status= 0
    group by Report_id;
    I mean, when I use DB adapter to poll table1, I have to use above query.
    Can you Please suggest on this.
    Thanks in advance.

    I will check for existance not based on Primary key but based on three other fields in the table. I think , by default DB adapter configured for MERGE checks for existance based on PK. Can we change the Primary Key in the mapping file after the DB adapter is configured. In that case , will it check for existance based on the fields , I mention.
    Edited by: user12020809 on Sep 16, 2012 6:08 PM

  • Backslash in query expression in LS2 with oData

    Hi together,
    we just migrated a LS project to v2 and came across the following problem: A query to a service (attached to LS) fails, the query condition is 'IFB\i10600' (user name with domain). We get the error 'Bad Request - Error in query syntax' - during processing
    the backslash in the query is converted to a '/', so the complete service call is
    GET /ActiveDirectoryData.svc/Users('IFB/i10600') which fails with the above error.
    To make it clearer: The domain\username string is used as foreign key in several tables and then used in the service call.
    If I execute the query manually with ../Users('IFB%5Ci10600')  (backslash replaced with HTML equivalent) the query is execuded without error, BUT: How can I get the LS data service to do the same? (In LS1 this worked without problems.)
    Generally, LS2 treats these special characters correctly in it's oData calls, as far as I see in a simple test project; what's the difference with the service call here?
    Thanks and best regards
    Robert

    Hi Beth / Robert,
    We have the same problem with "\" and 'Bad Request - Error in query syntax'
    Fix would be very helpful.
    Thanks.

  • A problem with LOV and my query. Help to solve, please...

    Hello!
    Here is a query:
    SELECT FULLNAME||', '||(SELECT NAMEOFGROUP||', '||(SELECT CITY FROM CITY WHERE PRKEY=TLL.CITY) FROM GROUPS TLL WHERE PRKEY=TL.GROUPOF) t ,PRKEY r FROM MINEUSERS TL
    In SQL DEVELOPER it works fine. But in APEX - when I try to save my "SELECT LIST" - it falls with error - "If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
    How can I reassemble my query to fix this problem - I have no idea... :(
    Thanks

    You may create a pipelined function returning two values, display and return, to return
    the result from your query. After that, your LOV should work. See example here:
    http://htmldb.oracle.com/pls/otn/f?p=31517:146
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Facing problem in integrating my custom jsp with the workflow engine

    Hi,
    I am using Jdeveloper 11.1.1.6.0 for BPM 11g implementation on my Application.I have Weblogic Server 10.3 Installed and configured the domain. Also the server is up and running.
    I am trying to create workflow and wants to integrate it with my custom jsp but i am facing problem in integrating my custom jsp with the workflow engine.Can you please answer the following questions:
    1)how to link BPM human task with my custom jsp (Requester jsp).
    2)how my custom jsp data(Requester data) will be stored in workflow engine and how the same data will be visible to the next custom jsp(Reviewer jsp).
    This is urgent .Any early reply will be great help.
    Thanks in advance.
    Edited by: 990133 on Mar 24, 2013 5:31 AM

    you forgot to add the usage dependency in the DC metadata section in your DC, you have to add the XSS~utils and fpm as a used DC's as part of your DC, try to add those, if you already done that, so check where missed the adding of used webdynpro components in any of the VAC's or FC's,
    Cheer,
    Appa

  • Problems with Automatic Workflow Customizing

    Hi!
    I am having problems with Automatic Workflow Customizing (SWU3). I am trying to execute "Configure RFC Destination" manually. I receive the message "Synchronization of passwords failed".
    We are using CUA and it is therefor not possible to create the user from SWU3 which means that WF-BATCH has been created in CUA with a pw which is then filled in by me when executing "Configure RFC Destination".
    WF-BATCH has authorization SAP_NEW, SAP_ALL
    My user also has SAP_NEW and SAP_ALL and usergroup SUPER.
    Does anyone know what might be the problem?
    Sincerley
    Anders Öhrling

    Hello Anders,
    Check if the user is locked in SU01. Then check if your user has been created in CUA.
    It is recommended to delete WF_BATCH. The system will auto create the user ID WF-BATCH and synchronize the password.
    Do let me know if your problem is resolved.
    Thank you.
    Regards,
    Manomeet
    - Award points if helpful -

  • Problems with Partition pruning using LIST option in 9i

    I am declaring the following partitions on a fact table and when
    I do an explain plan on the following SELECT statements it is
    doing a full table scan on the fact table. However if I use
    the "PARTITION" statement in the FROM clause it picks up the
    correct partition and runs great. I have used the analyze
    command and dbms_utility.analyze_schema command on all tables
    and indexes. I had simaliar problems when partitioning with the
    RANGE options too. I have looked through all of the INIT file
    parameters and don't see anything obvious. Is there something I
    am missing?
    Any help would be appreciated!
    Thanks,
    Bryan
    Facttable create statement....
    CREATE TABLE FactTable (
    ProductGID INTEGER NULL,
    CustomerGID INTEGER NULL,
    OrganizationGID INTEGER NULL,
    TimeGID INTEGER NULL,
    FactValue NUMBER NOT NULL,
    ModDate DATE NULL,
    CombinedGID INTEGER NOT NULL)
    PARTITION BY LIST (CombinedGID)
    (PARTITION sales1 VALUES(9999101),
    PARTITION sales2 VALUES(9999102),
    PARTITION sales3 VALUES(9999103),
    PARTITION model1 VALUES(9999204),
    PARTITION model2 VALUES(9999205),
    PARTITION model3 VALUES(9999206));
    Select statement....that is causing a full table scan.....the
    *tc tables are the equivelent to dimension tables in a star
    schema.
    SELECT tco.parentgid, tcc.parentgid, tcp.parentgid, sum
    (factvalue)
    FROM facttable f, custtc tcc, timetc tct, prodtc tcp, orgtc tco
    WHERE
    tco.childgid = f.organizationgid
    AND tco.parentgid = 18262
    AND tcc.childgid = f.customergid
    AND tcc.parentmembertypegid = 16
    AND tcp.childgid = f.productgid
    AND tcp.parentmembertypegid = 7
    AND tct.childgid = f.timegid
    AND tct.parentgid = 1009
    GROUP BY tco.parentgid, tcc.parentgid, tcp.parentgid;
    Select statement that works great....
    SELECT tco.parentgid, tcc.parentgid, tcp.parentgid, sum
    (factvalue)
    FROM facttable partition(sales1) f, custtc tcc, timetc tct,
    prodtc tcp, orgtc tco
    WHERE
    tco.childgid = f.organizationgid
    AND tco.parentgid = 18262
    AND tcc.childgid = f.customergid
    AND tcc.parentmembertypegid = 16
    AND tcp.childgid = f.productgid
    AND tcp.parentmembertypegid = 7
    AND tct.childgid = f.timegid
    AND tct.parentgid = 1009
    GROUP BY tco.parentgid, tcc.parentgid, tcp.parentgid;

    Hi Hoek,
    the DB version is 10.2 (italian version, then SET is correct).
    ...there's something strange: now I can INSERT rows but I can't update them!
    I'm using this command string:
    UPDATE TW_E_CUSTOMER_UNIFIED SET END_VALIDITY_DATE = TO_DATE('09-SET-09', 'DD-MON-RR') WHERE
    id_customer_unified = '123' and start_validity_date = TO_DATE('09-SET-09', 'DD-MON-RR');
    And this is the error:
    Error SQL: ORA-14402: updating partition key column would cause a partition change
    14402. 00000 - "updating partition key column would cause a partition change"
    *Cause:    An UPDATE statement attempted to change the value of a partition
    key column causing migration of the row to another partition
    *Action:   Do not attempt to update a partition key column or make sure that
    the new partition key is within the range containing the old
    partition key.
    I think that is impossible to use a PARTITION/SUBPARTITION like that: in fact the update of "END_VALIDITY_DATE" cause a partition change.
    Do u agree or it's possible an update on a field that implies a partition change?
    Regards Steve

  • Schedule Export Processes with Custom Query

    Hi,
    Can I use Schedule Export Processes, with a custom query over HZ_PARTIES and HZ_LOCATIONS, in order to export suppliers data in a specific field order with join conditions?
    I used Schedule Export Processes with "PARTY", selecting proper fields, but exported csv is in a different field order than the required by an external system.
    Thanks,
    Erick.

    Can you elaborate on the issue here. Are you looking for a way to run "ad-hoc" SQL queries for the filters ? I do not think that is possible, depending on your environment you may be able to create a custom view object to match your requirements.
    As for the orders I think you should be able to control the order using the sequence as the FAQs state:
    What happens if I change the sequence number or header text?
    Changing the sequence number changes the order of the attributes in the exported data file. Changing the header text enables you to give a more intuitive meaning to the attribute and the associated data.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • I have downloaded AI Trial but am getting a Configuration Error as follows 'A problem has occured with the licensing of this product. Restart your computer and re-launch the product.  If this problem still occurs after restarting, contact Customer Support

    I have downloaded AI Trial but on launching I am getting a Configuration Error which reads '
    A problem has occured with the licensing of this product. Restart your computer and re-launch the product.
    If this problem still occurs after restarting, contact Customer Support for further assistance, and mention the error code shown at the bottom of this screen.
    Error: 213:5.
    I have tried the restart suggestion, but the problem persists.
    Can anyone assist.
    TIm

    Tim,
    This may be one for this specialized forum (where you may be able find the answer from previous threads),
    http://forums.adobe.com/community/download_install_setup
    or for a chat,
    Creative Cloud support (all Creative Cloud customer service issues, chat open between 5AM and 7PM PST/PDT on workdays)
    http://helpx.adobe.com/x-productkb/global/service-ccm.html
    or for Adobe phone Support,
    http://helpx.adobe.com/adobe-connect/adobe-connect-phone-numbers.html

  • Hi! Everyone, I have some problems with JOIN and Sub-query; Could you help me, Please?

    Dear Sir/Madam
    I'm a student who is interested in Oracle Database and
    I have some problems with JOIN and Sub-query.
    I hope so many of you could help me.
    if i use JOIN without sub-query, may it be faster or not?
    SELECT field1, field2 FROM tableA INNER JOIN tableB
    if i use JOIN with sub-query, may it be faster or not?
    SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
    Thanks in advance!

    Hi,
    fac30d8e-74d3-42aa-b643-e30a3780e00f wrote:
    Dear Sir/Madam
    I'm a student who is interested in Oracle Database and
    I have some problems with JOIN and Sub-query.
    I hope so many of you could help me.
    if i use JOIN without sub-query, may it be faster or not?
    SELECT field1, field2 FROM tableA INNER JOIN tableB
    if i use JOIN with sub-query, may it be faster or not?
    SELECT field1,field2,field3 FROM tableA INNER JOIN (SELECT field1,field2 FROM tableB)
    Thanks in advance!
    As the others have said, the execution plan will give you a better idea about which is faster.
    If you're trying to see how using (or not using) a sub-query affects performance, make the rest of the queries as similar as possible.  For example, include field3 in both queries, or ignore field3 in both queries.
    In this particular case, I guess the optimizer would do the same thing either way, but that's just a guess.  I can't see your execution plans.
    In general, simpler code is faster, and better in other ways, too.  In this case
    tableB
    is simpler than
    (SELECT field1, field2  FROM tableB)
    Why do you want a sub-query in this example?

  • Help with export with query option

    I need help with an export with query option.
    I have a script that includes the following
    auddate=`date '+20%y%m%d'`
    file="cal_shrlgpa"$auddate".dmp"
    exp / file=$file tables=shrlgpa query\=" where shrlgpa_pidm in (Select sztahbr_pidm from purdue.sztahbr where sztahbr_to_extract\=\'Y\' and sztahbr_export_status\=\'N\')\"
    echo 'cal export file created:'$file
    when I run the script, I get the following error:
    cal_export_tables.sh[7]: 0403-057 Syntax error at line 7 : `"' is not matched.
    Can somone help me with the query option?

    I made the suggested change:
    exp / file=$file tables=shrlgpa query=" where shrlgpa_pidm in (Select sztahbr_pidm from purdue.sztahbr where sztahbr_to_extract=\'Y\' and sztahbr_export_status=\'N\')"
    and got the following error:
    LRM-00116: syntax error at 'sztahbr_to_extra' following 'where'
    EXP-00019: failed to process parameters, type 'EXP HELP=Y' for help
    Shannon

Maybe you are looking for

  • Error while transporting Planning board profiles from Dev to QA

    Hi All, I have created planning board profile by copying an already existing Non-Standard profile. The Profile is working fine in Dev and i am able to see all the charts and Graphical objects as per the settings in the profile. But when i transport t

  • Value date BSEG-VALUT

    Hello, Please help me with some information regarding the field "Value date" (is used in transaction F-29 for example). The help information say that is used in bank accounts and bank sub-accounts but how is used and for what? Thank you

  • Error while accessing easconsole

    Hi All, I am trying to access another mc's easconsole using http://mc name:portno/easconsole/console.html.But it is showing error An error occurred while launching/running the application. Title: Oracle Essbase Administration Services Vendor: Oracle

  • MICR Printing  for Cheques

    Hi all,     IIam having Problem printing the MICR font on the Cheques . I searched many responses  , but  cudnt    get the solution yet. We have installed   MICR font  on the Cheque printer. I have created  character format MI  which has family  MICR

  • How many documents can go in a folder in iCloud (Pages)?

    Just wondering if there is a limit to how many documents can go inside a folder in iCloud (Pages). I'm using Pages on my Mac and want to move all my Google Docs into Pages but I'm worried I'm going to hit an Apple ceiling. If it's unlimited, that'd b