BAPI execution in webdynpro returns only a few records

Hi,
        I'm executing a BAPI in my webdynpro application and it is returning only a few records from backend table. When i execute the BAPI in R/3 with the same input i'm getting all the records. In webdynpro i'm getting only 22 records for different set of inputs while in R/3 i'm getting all records(37,41 etc). Any help in this regard will be valuable.
Regards,
Shabeer

Hi,
     I am invalidating the output node after execution of BAPI. The BAPI is executing properly and it is returning records also.But the problem is with the number of records returned by BAPI. As i've mentioned earlier it is always returning 22 records, eventhough the actual output contains more than 22 records(I checked this in R/3). I was told that the BAPI is calling a transaction(i don't know whether it is the problem since i am not familiar with ABAP and R/3 that much).Is it possible that webdynpro is fetching records even before the BAPI execution is complete in R/3 and hence returning partial output(I'm not sure about this thing) ?
Any help in this regard will be valuable.
Thanks and regards,
Shabeer

Similar Messages

  • Getting only a few records at a time.

    Using a Select * from. Is there an option where I get only so many records. This is for a console application. I wanted some thing where it will display only 3 records at a time. And then I have the option of viewing the next 3 and then the next 3 records
    and so on.
    Any one have any ideas.
    Merry Christmas EVERY ONE and thanks to all the members on msdn forums for helping me with my code.
    Joe Moody
    http://www.starfiresoft.com
    Pro-Forums
    Delta Force Barracks
    On the Frontlines

    Thanks. It doesn't matter as long as I can get it to work. The idea is to display 3 records at a time. Then the user should be able to go backward or forward in the list. Let me show you what I have. This will give you some idea on how I have it displaying
    the info.
    SqlCeCommand cm = new SqlCeCommand("SELECT * FROM users", cn);
    //cm.Parameters.AddWithValue("@tooid", num);
    //cm.Parameters.AddWithValue("@fromid", Id);
    SqlCeDataReader rd = cm.ExecuteReader();
    try
    while (rd.Read())
    Door.CursorRight(10);
    Door.WriteLn("|0C___________________________________________________");
    Door.CursorRight(10);
    Door.WriteLn("|0FId |04: |03" + rd["Id"].ToString() + " |0FName |04: |03" + rd["username"].ToString());
    Door.CursorRight(10);
    Door.WriteLn("|0FStatus |04: |03" + rd["status"] + " |0FDate Jointed |04: |03" + rd["joindate"]);
    Door.CursorRight(10);
    Door.WriteLn("|0C___________________________________________________");
    catch (Exception e)
    throw new Exception(e.Message);
    cn.Close();
    This is inside of a do loop. and at the bottom I have it waiting for user input. or the user can quit and return to the main menu.
    Door.WriteLn();
    Door.Write("|07Page |0F<|04||0F> |0FQ|09)|0BQuit |07Choice |04: |0C");
    cc = Char.ToUpper(Door.ReadKey());
    Above is my prompt. This waits for user input. and I use a switch to tell the software what to do. Any way if you want to know what Door.writeLn() is, Think of it like this "Console.Writeline()". This is just a library I use for the kind of programming I
    do.Any help would be great. Thanks and have a safe Xmas.
    Joe.
    http://www.df-barracks.com Delta Force Barracks
    http://www.starfiresoft.com Starfire Software

  • How to get all records using Invoke-webrequest?/Why Invoke-webrequest returns only first 2000 Records?

    invoke-webrequest content returning only 2000 records though it has around 4000 records in web api.
    The same url if I give in excel oData Data feed I am getting all the records.
    See the below script
    Script:
    $QueryResult= (Invoke-WebRequest -Uri $ODataURI -UseDefaultCredentials)
    [xml]$xmlResult=$QueryResult.content
    foreach($obj in $xmlResult.feed.entry.content.properties)
    $Name=$obj.Name;
    $IsAvail=$obj.isAvail.'#text';
    $PGroup=$obj.PGroup
    I am exporting the above result as a CSV file and my CSV file contains only 2000 records. 
    But,  $xmlResult.feed.Count --> it Shows 4000 Records.
    The same Odata url if I give in excel oData Data feed I am getting all the 4000 records.
    So Please help me how can I get all the records using power shell.
    Thanks
    A Pathfinder..
    JoSwa
    If a post answers your question, please click &quot;Mark As Answer&quot; on that post and &quot;Mark as Helpful&quot;
    Best Online Journal

    Hi Jo Swa(K.P.Elayaraja)-MCP,
    Would you please also post code which is used to export the records?
    In addition, to use the cmdlet invoke-RestMethod to work on ODate feeds, please refer to this article:
    Interacting with TechEd NA 2012 Schedule using PowerShell v3
    I hope this helps.

  • Showing only a few records in a region

    Hi Guys,
    I am creating a shopping page using OA F/w.
    In this page i have created a search screen and there is a shopping cart at the upper right corner.
    Now my requirement is to show shopping cart like this
    Shopping Cart
    Number of items: x
    item1 qty1
    item2 qty2
    item3 qty3
    item4 qty4
    item5 qty5
    more...
    what i have achieved so far is
    i have created a content container.
    I have got the items and quantities (using child attribute feature in a stach layout region)
    now my requirement is
    1. to show number of items
    2. to show only 5 records (not using table region)
    3. to show more link which will take to complete shopping cart.
    can u please help me out with this
    Thanks
    Husain

    instead of creating so many VOs, try something like this
    1. From CO call a method in AM, something like public Vector getAllItems()
    2. In that method in the AM, have a VO bring the items in the cart (VO.executeQuery())
    3. Loop your VO and form a Vector of the items and return this vector to the CO.
    4. In CO, when the method has returned , you have a Vector of all items.
    5. size() method will give you the number of items
    6. loop the vector, and paste the data in a bean in your content container
    7. if loop becomed > 5 (means 6th row - i.e 5 items are already painted), then break; the loop and paint a more.. link instead of the item from the vector.
    8. Clicking on the more link takes you to another page, navigate there and retain the AM while you go, so your VO also is present, you dont need to query again.
    Thanks
    Tapash

  • Lock only a few records in a VIEW_MAINTENANCE_CALL.

    Hello,
    I want to update one View using the FM: VIEW_MAINTENANCE_CALL, restricting the value of one field.
    Using the the FM with the restricting field it’s easy, no problem. The problem is controlling the lock of those records, I just want to lock those records, not lock all records table view to the other users.
    Any help to this issue...
    Regards,
    Duarte
    Duarte

    Hi,
    You can not lock single record.
    Regards,
    Satish

  • Master - some records : Detail - for only a few i(not all)records in master

    Hi
    I have a requirement like master and detail. However I do not wish to see the details of everything that is there in the master but only a few records (based on some criteria). Example:
    Id Desc Col3 Col4
    1 1 desc 1col3 1col4
    2 2 desc 2col3 2col4
    3 3 desc 3col3 3col4
    id col5 col6 col7
    3 abc def ghi
    4 4 desc 4col3 4col4
    How can I have such a layout in which detail shows details of only selected records present in the master?
    Any help appreciated big time.
    Thx!

    1. create two queries. master and detail and link on the fields of interest.
    2. on the layout, have repeating frames. one for the master and inside the master frame, a repeating frame for the detail.
    hope this is what you are looking for..

  • Only a few of rows in the table are indexed without an error message

    When I executed the sql command:"create index ... indextype is ctxsys.context...",
    only a few of rows were indexed.
    The number of rows returned from query clause "select * from table where contains(field,'keyword') " is much less than that returned from "select * from table where field like '%keyword%'",though its speed is very fast.
    I checked the I table,the indexed words was few.The create index command ends in 3 mins on a table with more than 2 millions rows.
    The language setting is Chinese.
    The documentations about the intermedia text services on chinese languages is difficult to find.Can someone give me some or help me to solve this problem?
    Thanks in advance!

    I get the same thing in Mac OSX 10.7.3.  When I control-click on a preview and select 'open in camera raw' I get a dialog that says it's not enabled and requires a qualifying app to have been launched first:
    I've launched bridge and photoshop and if I open an app from the mini-bridge within photoshop, camera raw is launched.

  • Oracle 11g:Query to return only 1 to 1 relationship & random selection

    Hi
    I have a complex query to modify but I have below the sample tables and data with only very few fields(only affected fields).
    Query based on 2 tables b_test and s_test.
    Pls see below.
    create table b_test(building_id number not null,invalid varchar2(1));
    create table s_test(sub_building_id number not null,building_id number ,invalid varchar2(1),sequence_no number);
    insert into b_test values (1000,'N');
    insert into b_test values(2000,'N');
    insert into b_test values(3000,'N');
    commit;
    insert into s_test values(1,1000,'N',90);
    insert into s_test values(2,1000,'N',91);
    insert into s_test values(3,1000,'N',92);
    insert into s_test values(4,1000,'Y',93);
    insert into s_test values(5,NULL,'N',NULL);
    insert into s_test values(1,2000,'N',94);
    insert into s_test values(2,2000,'N',95);
    insert into s_test values(3,2000,'N',96);
    insert into s_test values(4,2000,'N',97);
    insert into s_test values(5,2000,'N',98);
    insert into s_test values(6,NULL,'N',NULL);
    insert into s_test values(10,3000,'N',99);
    insert into s_test values(11,3000,'N',100);
    commit;The query below returns all rows required:(also see results:)
    select b.building_id,b.invalid,s.sub_building_id,s.sequence_no from b_test b,
    (select * from s_test where invalid='N') s
    where b.building_id = s.building_id(+)
    and b.invalid='N'
    Results:
    BUILDING_ID INVALID      SUB_BUILDING_ID     SEQUENCE_NO
    1000              N     1                     90
    1000             N     2                     91
    1000             N     3                     92
    2000             N     1                     94
    2000             N     2                     95
    2000             N     3                     96
    2000             N     4                     97
    2000             N     5                     98
    3000             N     10                      99
    3000             N     11                     100Now there are 2 requirements:
    1)How can the above query be changed so that 1:1 relationship if sub_building_id is returned?i.e For 1 building_id, only show 1 sub_building(This could be a random selection)
    (Pls help with query)
    The results would be like
    BUILDING_ID INVALID     SUB_BUILDING_ID     SEQUENCE_NO
    1000               N     1                      90
    2000               N     1                      94
    3000               N     11                     1002)How can the same SEQUENCE_NO be shown for all sub_buildings for the same building? (Pls help with query)
    The results will be:
    BUILDING_ID INVALID     SUB_BUILDING_ID     SEQUENCE_NO
    1000             N     1                       90
    1000             N     2                       90
    1000             N     3                       90
    2000             N     1                       94
    2000              N     2                       94
    2000             N     3                       94
    2000             N     4                       94
    2000             N     5                       94
    3000             N     10                       99
    3000             N     11                       99Many thanks!
    Edited by: Krithi on 08-Nov-2012 08:48
    Edited by: Krithi on 08-Nov-2012 08:55

    Krithi wrote:
    Hi
    I have a complex query to modify but I have below the sample tables and data with only very few fields(only affected fields).
    Query based on 2 tables b_test and s_test.
    Pls see below.
    create table b_test(building_id number not null,invalid varchar2(1));
    Thanks for posting the CREATE TABLE and INSERT statements, and your existing query; that's very helpful.
    The query below returns all rows required:(also see results:)
    select b.building_id,b.invalid,s.sub_building_id,s.sequence_no from b_test b,
    (select * from s_test where invalid='N') s
    where b.building_id = s.building_id(+)
    and b.invalid='N'
    Results:
    BUILDING_ID INVALID      SUB_BUILDING_ID     SEQUENCE_NO
    1000              N     1                     90
    1000             N     2                     91
    1000             N     3                     92
    2000             N     1                     94
    2000             N     2                     95
    2000             N     3                     96
    2000             N     4                     97
    2000             N     5                     98
    3000             N     10                      99
    3000             N     11                     100
    When I run your query, I get NULL for sequence_no on the last 2 rows, where building_id=3000. The numbers 99 and 100 don't seem to occur in either table. Did you post the worng sample data and/or results?
    >
    Now there are 2 requirements:
    1)How can the above query be changed so that 1:1 relationship if sub_building_id is returned?i.e For 1 building_id, only show 1 sub_building(This could be a random selection)
    (Pls help with query) Here's one way:
    WITH       got_r_num  AS
         SELECT  sub_building_id
         ,     building_id
         ,     sequence_no
         ,     ROW_NUMBER () OVER ( PARTITION BY  building_id
                                   ORDER BY          sequence_no
                           )         AS r_num
         FROM    s_test
         WHERE     invalid     = 'N'
    SELECT    b.building_id
    ,       b.invalid
    ,       r.sub_building_id
    ,       r.sequence_no
    FROM             b_test     b
    LEFT OUTER JOIN      got_r_num  r  ON  r.building_id  = b.building_id
    WHERE     NVL ( r.r_num
               , 1
               )          = 1
    ORDER BY  b.building_id
    ;This is called a Top-N Query , because we're picking N items (N = 1 in this case) from the top of an ordered list. What makes one item the "top", and another one "lower"? That's determined by the analytic ORDER BY clause, in this case
    ORDER BY      sequence_noThat means the row with the lowest sequence_no (for each building_id) will get r_num=1. If you want a random row from that building_id to be chosen as #1, then you can change the analytic ORDER BY clause to
    ORDER BY      dbms_random.valueYou can ORDER BY anything you like, even a constant, but you must have an analytic ORDER BY clause. ROW_NUMBER requires an analytic ORDER BY clause.
    The results would be like
    BUILDING_ID INVALID     SUB_BUILDING_ID     SEQUENCE_NO
    1000               N     1                      90
    2000               N     1                      94
    3000               N     11                     100
    Again, I don't see where the 100 comes from. The results I get are:
    BUILDING_ID I SUB_BUILDING_ID SEQUENCE_NO
           1000 N               1          90
           2000 N               1          94
           3000 N              11
    2)How can the same SEQUENCE_NO be shown for all sub_buildings for the same building? (Pls help with query)
    SELECT    b.building_id
    ,       b.invalid
    ,       s.sub_building_id
    ,       MIN (s.sequence_no) OVER ( PARTITION BY  s.building_id)
                            AS seq_no
    FROM             b_test  b
    LEFT OUTER JOIN      s_test  s  ON  s.building_id  = b.building_id
                                AND s.invalid      = 'N'
    The results will be:
    BUILDING_ID INVALID     SUB_BUILDING_ID     SEQUENCE_NO
    1000             N     1                       90
    1000             N     2                       90
    1000             N     3                       90
    2000             N     1                       94
    2000              N     2                       94
    2000             N     3                       94
    2000             N     4                       94
    2000             N     5                       94
    3000             N     10                       99
    3000             N     11                       99
    Again, I don't see where you get sequence_no = 99. The results I get are:
    BUILDING_ID I SUB_BUILDING_ID     SEQ_NO
           1000 N               1         90
           1000 N               2         90
           1000 N               3         90
           2000 N               1         94
           2000 N               2         94
           2000 N               5         94
           2000 N               3         94
           2000 N               4         94
           3000 N              10
           3000 N              11Edited by: Frank Kulash on Nov 8, 2012 12:12 PM
    Added explanation and results
    Edited by: Frank Kulash on Nov 8, 2012 12:28 PM
    It looks like you cahnged your sample data from
    insert into s_test values(10,3000,'N',NULL);
    insert into s_test values(11,3000,'N',NULL);to
    insert into s_test values(10,3000,'N',99);
    insert into s_test values(11,3000,'N',100);The queries I posted are niow getting 99, like you requested.

  • HT201177 My new Mac Mini is plugged directly into my tv via hdmi cable and the screen will abruptly go blank and then return after a few seconds. Why is this happening?

    So I recently got a Mac Mini about two weeks ago and for some reason while I am on it the display will go blank and then return after a few seconds. It is happening very frequently. I checked the HDMI cable, I checked my tv and nothing seems to be wrong with them and I don't know what is going on.
    I am getting a bit frustrated because this Mac is brand spanking new and it is totally acting up for no reason whatsoever.
    Could someone please help me with this? I don't want my new computer to be useless. I need it.

    Which TV model do you have?
    Be aware of the fact that very many TVs do expect video signals on their HDMI inputs, not data signals from Macs or PCs. Please consult your TV manual if PCs or Macs can definitely be connected via HDMI, or if e.g. only DVI or RGB/VGA connectors are to be used.
    In case of DVI inputs for data being present, it's not a problem if an HDMI->DVI adapter, or better, cable is being used.
    Many users here are overlooking this potential reason for problems, assuming that HDMI outputs must always communicate with any HDMI input, certainly also because TV manufacturers do not "advertise" such limitations loudly.
    AV receivers with multiple HDMI inputs and a single HDMI video output to the TV are typically more "tolerant" and provide a sort of "converter" function. If present, feed a Mac's HDMI signal into the receiver, not the TV directly. If the receiver does not have enough HDMI inputs, consider to connect rather a video source (DVD player or similar) directly to the TV than the the Mac.

  • Installed Itunes: New PC, Windows 7 x64, updated ipod software, click to eject ipod, PC goes to blue screen, dumps data, restarts; songs do not play correctly on ipod. IE: play a song - only first few seconds will play. Some songs play fully, some do not.

    Installed Itunes: New PC, Windows 7 x64, updated ipod software, click to eject ipod, PC goes to blue screen, dumps data, restarts; songs do not
    play correctly on ipod. IE: play a song - only first few seconds will play. Some songs play fully, some do not.

    Hi just wanted to let you know I solved most of my XP problems with my new IPOD. It won't recognise the IPOD or driver and froze and locked up and then the battery died. After hours of trying different things here is what I did. I completly closed computer down. Waited 15 minutes turned on and reloaded everything. I put the usb cable in but not hooked up to IPOD. I turned off Mcaffee (all of it). After my computer came on. I then went and closed everything I didn't need in the bottom toolbar. (taskbar). I then reloaded the software and waited. Took forever to reload and I don't know why but whatever it worked but I DID NOT HOOK UP THE IPOD LIKE IT SAID! I instead shut down the computer after loading the software and waited 5 minutes and turned it back on. I again waited and shut of mcaffee. It loaded everything fine this time and said new hard ware and drivers detected. I plugged my IPOD in and YES I WAS UP AND RUNNING (THIS IS AFTER 6 HOURS OF PLAYING WITH OTHER THINGS!) I am able to load and play, burn, watch movies, see pictures and everything your suppose too! The only thing I see different than the instructions is I left my usb cable plugged in and when it said to eject the disk I didn't. I also didn't plug in the IPOD (5th Gen) and then I shut down waited and then restarted the computer. I hope this helps others because I know the feeling of wanting to return something you paid dearly for and worked hard at saving money to buy one and it doesn't work. My only thing I dislike about apple is they didn't supply a ac adapter for the IPOD and the instructions say to plug it up when trying to charge battery. DUHHHHHH, ya can't do that if ya don't have one and stores are closed and won' open until Monday! But at least I am up and running. I just hate having to plug up IPOD to computer daily to charge the battery which only last a half a day1

  • Using index in a query return few records than full table access

    Today we have an issue with a query, when it use the ok index the returned are not all records that apply to where clause condition.
    See bellow
    explain plan for
    select * from movdb.zan_m03 where
    M00AF = TO_DATE('11/01/28','YY/MM/DD') AND
    M00za = 10 AND
    m00AC = 50 AND
    M00AD between 136906 and 136999
    SELECT * FROM TABLE(dbms_xplan.display);
    PLAN_TABLE_OUTPUT
    Plan hash value: 1882720105
    | Id | Operation | Name |
    | 0 | SELECT STATEMENT | |
    | 1 | TABLE ACCESS BY INDEX ROWID| ZAN_M03 |
    |* 2 | INDEX RANGE SCAN | PK_ZAN_M03 |
    Predicate Information (identified by operation id):
    PLAN_TABLE_OUTPUT
    2 - access("M00AF"=TO_DATE('11/01/28','YY/MM/DD') AND "M00ZA"=10 AND
    "M00AC"=50 AND "M00AD">=136906 AND "M00AD"<=137141)
    filter("M00AD"<=137141 AND "M00AD">=136906)
    Note
    - rule based optimizer used (consider using cbo)
    20 rows selected.
    The query above return only one row insted 1579 record that apply to this conditions.
    When forcing a full table acess with a hint, the query return all records that apply, the 1579 record.
    select /*+ FULL(zan_m03) */ M00AF, M00za, m00AC , M00AD from movdb.zan_m03 where
    M00AF = TO_DATE('11/01/28','YY/MM/DD') AND
    M00za = 10 AND
    m00AC = 50 AND
    M00AD between 136906 and 137141
    Can you help me to identify what's happening?
    I am with Oracle 10g R2 10.2.0.4 standard edition
    the statistics are up to date
    the opitimizer_mode are rule, but altering in session level to all_rows happens the same issue.
    Nothing about corruption in the alert log.
    Thanks in advance
    Regards
    Cristiano

    Yes the query are the same and correct restriction for where clause are M00AD between 136906 and 137141.
    I've pasted, by mistake, another test query
    The corrects are:
    select M00AF, M00za, m00AC , M00AD from movdb.zan_m03 where
    M00AF = TO_DATE('11/01/28','YY/MM/DD') AND
    M00za = 10 AND
    m00AC = 50 AND
    M00AD between 136906 and 137141
    This use pk index and return one row
    select /*+ FULL(zan_m03) */ M00AF, M00za, m00AC , M00AD from movdb.zan_m03 where
    M00AF = TO_DATE('11/01/28','YY/MM/DD') AND
    M00za = 10 AND
    m00AC = 50 AND
    M00AD between 136906 and 137141
    This does a full table access and return 1579 records
    I´ve been searching for wrong results bugs on my oracle support, but not found one that mentions something like our issue.
    I checked the dba_tables and dba indexes and the number of rows are different, and I think this would be the same because it's is a pk.
    Look this
    SQL> select NUM_ROWS from dba_tables where table_name = 'ZAN_M03'
    2 /
    NUM_ROWS
    228527878
    select NUM_ROWS from dba_indexes where index_name = 'PK_ZAN_M03';
    SQL> select NUM_ROWS from dba_indexes where index_name = 'PK_ZAN_M03';
    NUM_ROWS
    217510185
    Is normal a index for pk having much fewer rows than table? I think not, but not sure.
    Again
    Thanks in advance
    Regards
    Cristiano

  • BAPI.. with screen return?

    BAPI is processed without returning any screen dialogs to the calling application.
    But there are some released BAPIs provided by SAP like BAPI_CUSTOMER_EDIT, in which statement CALL TRANSACTION 'XD02', causes screen return to the user.
    This prevents it to be used in background, to be called from some external system application.
    What is that in these BAPIs that makes it different with any other normal function module which has user interface?
    G@urav.

    Hi,
    Keep in mind the history of BAPI's.  Originally, Business Objects and BAPI's were created for Business Workflow, not for the outside world.  Often there are existing BAPI's that send screens (for workflow), but BAPI's outside of workflow should only send back info, not screens.  The original BAPI's did not have this restriction.
    As for BAPI_CUSTOMER_EDIT it may be worth noting that this function module was one of the early BAPI's (R/3 release 3.0A).  Also worth noting: In the BAPI browswer (transaction BAPI) there is a "Dialog" checkbox in the "Method (BAPI)" details screen.  The checkbox is on for BAPI's that use "call transaction/screens" and off for the other BAPI's.
    Regards,
    Jamie

  • BAPI Execution Error

    HI,
    I have a screen for searching the values by either by first name or by last name.I have 2 buttions GO and EXIT.When I input some text in the search criteria in the first name or last name and click GO,its returning the necessary records.EXIT button will close the indow.
    My Problem:-
    I put * as the search criteria and click GO.
    Its returning corrct value(20 records).
    Without clicking EXIT,when I click GO again,its returning 40 records and the multiple time I click GO,that many number of times the record is displayed in the table.
    I am execuion the BAPI onActionGo();
    Similarly If I write PITT as search createria and click GO,its returning 1 recorord.Similarly if I click 5 times ,5 PITT record is coming.Now if I put * as search criteria and click GO 6th time its returning 6*20=120 records.Now if I put PITT in the search criteria and click GO 7th time,PITT is coming 7times.
    I invalidate the node instance before execution  and after execution of the BAPI.Still its getting reflected.
    Basically the problem is,as many times as I am Clicking GO,that many times its returning the search criteria value.
    PLease suggest.Its a bit issue for me.
    Regards
    -Sandip

    Hi,
    the table is bind with rfc node or value node ?
    if it is value node do the following each time you executing the rfc
    wdContext.node<Value node name>().invalidate();
    or it is directly bind with rfc node
    make sure ,in component controller execute method of the rfc have the following statement.
    wdContext.node<rfc output node name>().invalidate();
    Regards,
    ramesh

  • Power Query occassionally connects, seems to load, but returns only 200 rows with 1 error

    I have a Power Query that i have used for few weeks, successfully, but occasionally requires being run a few times to return records.  Just lately it seems to require run more than a few times to make it work. 
    When it doesn't return records , it seems to connects and start retrieving data, but returns only randomly like 100 - 200 rows with 1 error.  The error doesn't have any message. So its hard to troubleshoot from that perspective.
    Query appends two other large and merges in a few others. The data sources are either csv files, Sharepoint Lists and tables in workbook.
    I haven't identified anything in terms of environment or query changes that might cause this.
    When it finally does retrieve all records,  it might be after i have done the following things, but i can't say for certain exactly what did the trick:
    * to run query multiple times
    *maybe simply changing anything in query resolves issue
    * making upstream queries (that are merged or appended into this query)  to Not Load to worksheet or model, eg just have connection
    I'd think this type of error and situation while not common is encountered by others.
    Does this ring a bell for anyone, and if so, can you please shed some light on the reasons and resolutions for this?
    Thanks!

    If you click on "1 error" it should show the editor with a query that will select the rows with errors. This unfortunately might not show all errors for various reasons, but you should try it.
    If that doesn't work, here's an example of how to retrieve error details.
    Suppose the following query:
    = Table.FromRecords({[A="B", B="C" + 1]})
    Notice how we're using the + operator with a string and number. This will result in an error.
    I can create a custom column that uses the 'try' operator over the B column. This returns a record with details which I then expand to retrieve the message.
    let
    Source = Table.FromRecords({[A="B", B="C" + 1]}),
    #"Added Custom" = Table.AddColumn(Source, "Custom", each try [B]),
    #"Expand Custom" = Table.ExpandRecordColumn(#"Added Custom", "Custom", {"HasError", "Error"}, {"Custom.HasError", "Custom.Error"}),
    #"Expand Custom.Error" = Table.ExpandRecordColumn(#"Expand Custom", "Custom.Error", {"Message"}, {"Custom.Error.Message"})
    in
    #"Expand Custom.Error"
    Let me know how this works for you.
    Tristan

  • Need help returning only 1min

    I'm working on a custom Discrete Job Picklist and am trying to return the locator with the least amount of the item that is required to pick. This is working fine except when the minimum is not distinct.
    Here's the bit of code that I'm working with:
    and d.total_qoh = (select min(f.total_qoh)
    from apps.mtl_onhand_locator_v f
    where d.item = f.item)
    This returns the mins but give me duplicates when the mins are the same. I'd like to return only 1 min locator per item. I've tried using a select distinct, but this does not work.
    Ideally, I'd like to use the min(locator_id) to determine which locator to use should the min(total_qoh) be non-distinct.
    I've tried using:
    and d.total_qoh = (select *(select min(f.total_qoh)
    from apps.mtl_onhand_locator_v f
    where d.item = f.item
    order by d.locator_id)
    where rownum = 1)
    But I don't think that order by is allowed in 8.1.6.1 and so it is not working. Likewise, I can't seem to get TOP N to work.
    Any suggestions?
    -Tracy
    Here's the full sql:
    select b.wip_entity_name "Job #",
           d.padded_concatenated_segments "Item",
           d.item_description "Description",
           c.REQUIRED_QUANTITY "Qty",
           e.segment1 "Row",e.segment2 "Section", e.segment3 "Shelf", e.segment4 "Bin",
           d.total_qoh "Qty at Loc",
           d.locator_id
    from wip.wip_discrete_jobs a, wip.wip_entities b, wip.wip_requirement_operations c, apps.mtl_onhand_locator_v d,  inv.mtl_item_locations e
    where a.wip_entity_id = b.wip_entity_id
    and   a.wip_entity_id = c.wip_entity_id
    and   c.inventory_item_id =  d.inventory_item_id
    and   d.locator_id = e.inventory_location_id
    and   d.ORGANIZATION_ID = '5'
    and   b.wip_entity_name >= '70319'--:job_low
    and   b.wip_entity_name <= '70320'--:job_high
    and   e.segment1 is not null
    and   a.status_type in  ('3', '1') --released and unreleased jobs
    and   d.total_qoh = (select min(f.total_qoh)
                        from apps.mtl_onhand_locator_v f
                        where d.padded_concatenated_segments = f.padded_concatenated_segments)
    order by b.wip_entity_name, e.segment1, e.segment2, e.segment3, e.segment4; Thanks for any help you can offer.
    -Tracy

    Richard - this is yielding ora-00904: invalid column. Although I have verified that the column names are correct. I think this may have something to do with not allowing an order by in a subquery for 8.1.6.1 but am not positive. It seems that I either get an invalid column name or missing right parenthesis when using order by in the subquery.
    and d.locator_id = (select locator_id
                           from (select locator_id
                                    from apps.mtl_onhand_locator_v
                                    where d.padded_concatenated_segments = f.padded_concatenated_segments
                                    order by total_qoh desc, locator_id desc)
                           where rownum = 1)
    -Tracy                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for

  • Calculating fields

    I am having a problem figuring out how to calculate several fields so that they appear as a sum in another field. Example - I have three fields - Quantity, Unit Cost and Total. I want it so that when I enter a number in the quantity, it will times th

  • 10g Database Licensing

    How does the 10g database licensing works, when you download you gets everything. Now for which part we need license beside the database..

  • Binding different events to a form depending if it is used for edit or create new.

    Hi, I succesfully have separated presentation from logic (events, etc...) using the code behind article at adobe site. This is pretty nice but now I have a little problem. Think about I have two forms one for edit and the other to add a new user. Usu

  • Will osx lion support imovie hd6

    I already have imovie hd 6 installed on my computer. Will my imovie hd 6 be affected or erased when I upgrade to osx lion?

  • Thank You Adobe for Fixing Bridge

    Wow, that was a very long. painful and frustrating wait to get a version of Bridge that works again. Bridge CS3 was the worst piece of Adobe software that I have used since 94 or 95, Bridge CS4 now actually works again, hooray! Thank you Adobe! mark