Sharepoint Export API - Returning rows with a starting row beyond 5000
Until this last week I have been using looping REST connector logic to extract all of our customers Sharepoint data through the Export API. I was doing this by incrementing the starting row for each call by 500 with a row limit of 500 for each call. I kept
doing this until the greatest returned row was equal to the total rows with duplicates. This ran in a deployed/automated fashion for the last two weeks. At the start of this week our customer noticed that we were only receiving roughly the number of unique
customers (~4.9k) rather than the entire dataset (~27k). When I attempt to manually pull data from any point beyond a row count of 5000 I receive zero rows back.
Has something changed with the API recently that would cause this to happen? If not with the API, could a change in permission levels/setting cause this?
Thank you for your time,
Bryan
Hi Martin,
Sorry for the late...very late reply, no I didn´t solved it and now we really need to get this issue sorted out. Since last time I have installed a new DPM 2012 R2 server for the customer, and the exact same error still occurs :(
So my question in return, have you solved it yet ?
If so, it would be great if you can reply with the solution.
If not, MS please advise A.S.A.P
Thx /Tony
Similar Messages
-
Hi.i want to select only rows with no child rows
Hi.i want to select only rows with no child rows in hierarchical queries.
http://www.rampant-books.com/10g_80.htm
bye
TPD -
Compare an array, row by row, with a single row
I want to be able to take an array like this
A - b - c - d
1. A - 1 - r - 5
2. G - 1 - f - 6
3. D - 2 - h - 5
4. G - 1 - f - 6
5. G - 1 - f - 8
Function would look at the following row
8. G - 1 - f - ""
And return 3
Is ther anything like this?You would have to explain to us how you get "Look at the folloowing row and return 3" from G-1-f-"" Do you mean that the empty string is actually a wildcard menaing anything can be in the fourth Column? And you want to match if the first three match how many rows with anything in teh fourth column?
You can use COUNTIFS but it wont recognize the wildcard as far as I know. So you would write it for comparison of the wanted columns only. You can use aditional nested functions to obtain this I think.
Jason -
Export rows with all dependent rows
Hello everyone!
I have a rather complex database schema with a lot of parent-child-relationships. On demand, I want to export a single row identified by its primary key from a table 'TABLE_A' to another Oracle database which has got the same schema but is located on a different host.
The problem here is that I'd like to "automatically" locate all of the dependent objects (foreign key relationships in 'TABLE_A') so that those rows get exported as well!
Is sth like this possible using just database features?
Thanks for hints!Well, you might find some script to locate all foreign keys and modify it to just output the tablenames, and all the other stuff for a proper parfile. A quick look at myoracle found Note:16414.1, haven't tried it personally.
To see the "correct" way to do it these days, google on the following terms:
dbms_metadata ref_constraint -
Displaying rows with reference to row count.
Situation :
I am trying to display data which are or of 820 rows by default.
When user select some data , I will display some data but if he not selecting any data then it is displaying all 820 rows.
So i used a count option where i wrote a code
<?choose:?><?when:count(_Company_Prompt_._PL_Unit_Number_and_Name_-Prompt)=820?><?'ALL'?><?end when?><?otherwise:?><?_Company_Prompt_._PL_Unit_Number_and_Name_-Prompt?><?end otherwise?><?end choose?>
for the field count CompanyPrompt_._PL_Unit_Number_and_Name_-Prompt
But it works fine if i dont use repeating group but that no use because it will show all for report defaults but when user select more than one , it still display only one row.
i am try to use same code with F <?for-each:PARAMETER_FOR_BUSINESS_UNIT_ROW?> E
The code for f is <?for-each:PARAMETER_FOR_BUSINESS_UNIT_ROW?>
the code for <?for-each:PARAMETER_FOR_BUSINESS_UNIT_ROW?> is given above
the code for e is <?end for-each?>
how can I fix this,
Thanks
AjI don't quite understand your requirement clearly as stated, I am guessing that you are using a dashboard prompt and your answers request is filtered based on the prompt.
Based on the default value, all rows are returned, and if the user selects some value from the prompt, data is filtered.
Within the template, if the count is equal to 820 then you want to show the text 'ALL' otherwise show all rows?
you could try the following: Declare a variable like so:
<?variable:myvar;count(_Company_Prompt_._PL_Unit_Number_and_Name_-Prompt)?>
then check if this variable value is equal to 820 then print the text 'ALL' or do your regular logic..
<?choose:?>
<?when:$myvar=820?><?'ALL'?>
<?end when?>
<?otherwise?>
<? other logic?>
<?end otherwise?>
<?end choose?>
You can also use two templates within the main RTF and call them as appropriate based on the count check.
Hope this helps. Sorry if I misunderstood your requirements. -
Add multiple rows with add a row button
Not sure of how to add this to my script, but my dilemma is I would like to add the row above in addition to the current row.
Right now the script in the "add row" button is:
Table1._Week.addInstance(0);
the row above is Table1._Above
How do I go about adding the row above to the script?
ThanksYou can access the instance manager of any Row from anywhere in the form..
So you can write script by being in the Week Row to add a new row for Above row.
In your click event you can write like this..
Table1._Above.addInstance(0);
Thanks
Srini -
Does pivotTable support rows with duplicated row names?
I am developing an application using JDeveloper 11.1.1.6.0.
Pivot table can display attribute values as row or column names. If the "row name" attribute for two records has the same/duplicated values, does pivot table show the two records in two rows with the same row name?
My experiment shows only one row with blank value for "measure" in such case. Just want to confirm this is the expected behavior.Hi,
don't quite understand the use case so answering in general: no data should be lost when using Pivot table
Frank -
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 -
RsultSet getString(String) returning next row with WL8 and Oracle drivers
When using the following function with the SQL: SELECT A, B, C FROM D
WHERE A=E and i call the campoString("A") i received the expected value
for the campoString("B") and so on.
public String CampoString(String s) {
int i = 0;
String sr;
try {
System.out.println("Campo a buscar:"+s);
sr = rsVentasTotales.getString(s);
System.out.println("Valor:"+sr);
catch(SQLException _ex) {
sr = "vacio";
if(sr == null)
sr = "vacio";
if((i = sr.indexOf('\n')) >= 0) {
if(i > 0)
return sr.substring(0, i - 1);
else
return "DATO ALTERADO";
} else {
return sr;
Oracle latest drivers, and Oracle Server 7, WebLogic platform (workshop) 8.1
public int Conectar() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url, usuario, password);
comando = con.createStatement();Carlos de Luna Saenz wrote:
Same result putting the jar at the beggining of the classpath...:-(
WLS Production Mode=
.You need a semicolon after "ojdbc13.jar".
Joe
CLASSPATH=C:\bea\weblogic81\samples\workshop\SicPros\SicProsv35\WEB-INF\lib\ojdb
c14.jarC:\bea\WEBLOG~1\server\lib\weblogic_knex_patch.jar;C:\bea\WEBLOG~1\common
\lib\log4j.jar;C:\bea\WEBLOG~1\server\lib\debugging.jar;C:\bea\WEBLOG~1\server\l
ib\knex.jar;C:\bea\WEBLOG~1\javelin\lib\javelin.jar;C:\bea\WEBLOG~1\server\lib\w
lw-lang.jar;;C:\bea\JDK141~1\lib\tools.jar;C:\bea\WEBLOG~1\server\lib\weblogic_s
p.jar;C:\bea\WEBLOG~1\server\lib\weblogic.jar;C:\bea\WEBLOG~1\server\lib\ojdbc14
.jar;C:\bea\WEBLOG~1\server\lib\ant\ant.jar;C:\bea\JDK141~1\jre\lib\rt.jar;C:\be
a\WEBLOG~1\common\eval\pointbase\lib\pbserver44.jar;C:\bea\WEBLOG~1\common\eval\
pointbase\lib\pbclient44.jar;;C:\bea\WEBLOG~1\server\lib\webserviceclient.jar;C:
\bea\WEBLOG~1\server\lib\webserviceclient+ssl.jar;C:\bea\WEBLOG~1\server\lib\xbe
an.jar;C:\bea\WEBLOG~1\server\lib\xmarshal.jar;C:\bea\WEBLOG~1\server\lib\xqrl.j
ar;C:\bea\WEBLOG~1\server\lib\netui\netui-compiler.jar;C:\bea\WEBLOG~1\server\li
b\wli.jar;C:\bea\WEBLOG~1\server\lib\wlxtrt.jar;C:\bea\WEBLOG~1\server\lib\fop.j
ar;C:\bea\WEBLOG~1\integration\lib\wlai-server.jar;C:\bea\WEBLOG~1\integration\a
dapters\sample\lib\sample-eis.jar;
Greetings.
Joe Weinstein wrote:
Ok.
Once you get this working, I will have some suggestions that
will make this run much faster. For now, I think the issue
is the driver version. We package an old oracle thin driver
inside our weblogic.jar, so you need to get oracle's latest
appropriate driver, and edit the start-weblogic script so
the driver you want comes before the weblogic.jar in the
-classpath argument for the java line that starts the server.
PS:
I am looking at the code, thank you, but you still haven't
explicitly said what problem you're having!
thanks
Joe
Carlos de Luna Saenz wrote:
The problematic class is, there is no weblogic code on it, the
project i am on is to migrate a iPlanet app to a web logic server:
If you need the JSP using this class please let me know. The
application uses not standards, taglibs or anything besides .java
files and .jsp files.
package externos;
import java.io.PrintWriter;
import java.sql.*;
import java.util.Date;
public class sicprosR{
public String strSQL;
public String er;
Connection con;
private ResultSet rsVentasTotales;
String url;
CallableStatement ps;
Statement comando;
protected String usuario;
protected String password;
public boolean estado;
public sicprosR() {
ps = null;
url="jdbc:oracle:thin:@17.3.5.101:1521:dbx1";
usuario="xxxxx";
password="xxxx";
estado = false;
public Date CampoDate(String s) {
Object obj = new Date();
try {
obj = rsVentasTotales.getDate(s);
catch(SQLException _ex) { }
return (Date)obj;
public double CampoDouble(String s) {
double d;
try {
d = rsVentasTotales.getDouble(s);
catch(SQLException _ex) {
d = 0.0D;
return d;
public int CampoInt(String s) {
int i;
try {
i = rsVentasTotales.getInt(s);
catch(SQLException _ex) {
i = 0;
return i;
public String CampoString(String s) {
int i = 0;
String sr;
try {
System.out.println("Campo a buscar:"+s);
sr = rsVentasTotales.getString(s);
System.out.println("Valor:"+sr);
catch(SQLException _ex) {
sr = "vacio";
if(sr == null)
sr = "vacio";
if((i = sr.indexOf('\n')) >= 0) {
if(i > 0)
return sr.substring(0, i - 1);
else
return "DATO ALTERADO";
} else {
return sr;
public boolean Commit() {
try {
con.commit();
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return false;
return true;
public int Conectar() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url, usuario, password);
comando = con.createStatement();
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return -1;
try {
rsVentasTotales = comando.executeQuery(strSQL);
catch(SQLException _ex) {
return -2;
estado = true;
return 1;
public int Conectar(int i) {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url,
Estructura.usuario, Estructura.clave);
comando = con.createStatement();
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return -1;
try {
rsVentasTotales = comando.executeQuery(strSQL);
catch(SQLException _ex) {
return -2;
estado = true;
return 1;
public boolean Ejecuta(int i) {
if(i == 1)
try {
rsVentasTotales = comando.executeQuery(strSQL);
catch(SQLException _ex) {
return false;
else
try {
comando.executeUpdate(strSQL);
catch(SQLException sqlexception) {
er = sqlexception.getMessage();
return false;
return true;
public int Sig() {
try {
if(rsVentasTotales.next()) {
estado = true;
return 1;
} else {
estado = false;
return 0;
catch(Exception _ex) {
estado = false;
return -1;
public boolean Siguiente() {
try {
if(rsVentasTotales.next()) {
estado = true;
return true;
} else {
estado = false;
return false;
catch(Exception _ex) {
estado = false;
return false;
public String convierteCantidadLetras(double d, String s) {
String s1 = Double.toString(d);
s1 = truncaADosDecimales(s1);
try {
ps = con.prepareCall("{ call
get_Palabra_De_Valor_Numerico(?,?,?) }");
ps.setString(1, s1);
ps.setString(2, s);
ps.registerOutParameter(3, 12);
ps.execute();
return ps.getString(3);
catch(SQLException _ex) {
return "No se pudo realizar la conversion";
public String convierteCantidadLetras(double d, String s,
PrintWriter printwriter) {
String s1 = Double.toString(d);
s1 = truncaADosDecimales(s1);
try {
ps = con.prepareCall("{ call
get_Palabra_De_Valor_Numerico(?,?,?) }");
ps.setString(1, s1);
ps.setString(2, s);
ps.registerOutParameter(3, 12);
ps.execute();
return ps.getString(3);
catch(SQLException _ex) {
return "No se pudo realizar la conversion";
public boolean inicio() {
try {
rsVentasTotales.first();
return true;
catch(SQLException _ex) {
return false;
public String truncaADosDecimales(String s) {
int i = 0;
String s1 = "";
i = s.indexOf(".");
if(s.length() <= i + 3) {
s1 = s.substring(i + 1, s.length());
} else {
s1 = s.substring(i + 1, i + 3);
s1 = s1.substring(0, 2);
if(s.substring(i + 1, i + 2).equals("0"))
s1 = "0" + s1;
s1 = s.substring(0, i) + "." + s1;
return s1;
Joe Weinstein wrote:
Hi! I need two more things from you, please:
1 - A full statement of what problem you're having.
2 - More of the code. All I see here is you are getting
a connection directly from Oracle's driver, and code which
does a ResultSet.getString() call.
I need to see the logic from getting the connection, to creating
the statement, to executing the query, to doing ResultSet.next()
for each row and getting the row data for each.
It seems that this is either an application code or jdbc driver
problem because no weblogic code is being used, so it could probably
be duplicated in a small stand-alone program (without any weblogic
stuff).
Joe
Carlos de Luna Saenz wrote:
When using the following function with the SQL: SELECT A, B, C FROM
D WHERE A=E and i call the campoString("A") i received the expected
value for the campoString("B") and so on.
public String CampoString(String s) {
int i = 0;
String sr;
try {
System.out.println("Campo a buscar:"+s);
sr = rsVentasTotales.getString(s);
System.out.println("Valor:"+sr);
catch(SQLException _ex) {
sr = "vacio";
if(sr == null)
sr = "vacio";
if((i = sr.indexOf('\n')) >= 0) {
if(i > 0)
return sr.substring(0, i - 1);
else
return "DATO ALTERADO";
} else {
return sr;
Oracle latest drivers, and Oracle Server 7, WebLogic platform
(workshop) 8.1
public int Conectar() {
try {
Class.forName("oracle.jdbc.driver.OracleDriver");
catch(ClassNotFoundException _ex) {
return 0;
try {
con = DriverManager.getConnection(url, usuario, password);
comando = con.createStatement(); -
Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API
Hi All,
In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
Error within screenshot are : status Code : 409
status Text :conflict
For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
my code is
function PerformUpload(listName, fileName, listItem, fileData)
var urlOfAttachment="";
// var itemId = listItem.get_id();
urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
// use the request executor (cross domain library) to perform the upload
var reqExecutor = new SP.RequestExecutor(appWebUrl);
reqExecutor.executeAsync({
url: urlOfAttachment,
method: "POST",
headers: {
"Accept": "application/json; odata=verbose",
"X-RequestDigest": digest
contentType: "application/json;odata=verbose",
binaryStringRequestBody: true,
body: fileData,
success: function (x, y, z) {
alert("Success!");
error: function (x, y, z) {
alert(z);Hi,
THis is common issue if your file size exceeds
upload a document of size more than 1mb. worksss well for kb files.
https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
or try the below method
https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
Please remember to click 'Mark as Answer' on the answer if it helps you -
Deleting rows with missing values in field in start routine of update rule
Hello experts,
how can I delet rows with missing values in a specific field in the start routine of update rules?
I think ABAP code should look something like this:
delete ... from DATA_PACKAGE where Z_NO = ''.
thanks in advance for any suggestions!
hizaWrite:
delete data_package where field = value.
Hope it helps.
Regards -
Hello,having a problem with Logic 9 on a Mac Pro.Working on a lenghty song and apparently session got corrupted.Doesnt let me export tracks,program crashes.Already tried start brand new session with the tracks imported into it but still wont export.Suggestions?
Thanks, Ian. Yeah, that's how I do it now...or with the controls in the left side pane. Still, I would have liked that quick on-the-spot edit capability...especially while sketching.
Ian Turner wrote:
Sorry Mark, you are out of luck as it does not do that - it works the same as L8. The way I would achieve that with more accuracy and control would be to route all the tracks you want to fade to a Bus then use volume automation on the bus. To do this you will need to add a standard audio track, then re-assign it using (Control Click on the track header) to the Bus track. You can then automate volume/plugins etc on the Bus track.
Ian -
Return to selected row with refresh after update in edit form
Hi,
I created a database view.When selected a single row and click on button i can edit the row in a form for update.What i want, when doing some update and click on the commit button i return back on the initial row with a refresh to see the update done on this row.I succeeded to modify the form and commit.But when i return on the selected row my update is not visible.How can i return to the same selected row with a refresh.In oracle form i can do a go record with execute_query, but how to do this in ADF.Please someone can help so that i do not spend many days on it.
Thanks
Soodesh[click for the tutorial|http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=6&ved=0CFQQFjAF&url=http%3A%2F%2Fandrejusb.blogspot.com%2F2013%2F03%2Fadf-rollback-and-keep-current-row.html&ei=Tnl3Ucn3BoXIrQeemICQAw&usg=AFQjCNHdYcJL8kJKymqbWBT9XDGTWmeUvQ&bvm=bv.45580626,d.bmk&cad=rja]
here you go :) -
Impossible to export more the 1000000 rows With ORACLE DISCOVERER plus
I work with Oracle discorcerer Plus but I'm able to exporte less than 1000000 rows.
more than 1000000 rows he does trunc the result!
I went to the Option as follows:
P.S un-ticked the Tools > Options > Query Governor > Limit retrived data to' field to get all the rows
but it still limits to 999999 records!
Is there any setting to control the number of rows exported ?
Your HelpHi
The maximum number of rows of data allowed in a query is controlled in three places:
1. In Plus, using Tools | Options | Query Governor
2. In the Admin tool, using Tools | Privileges | Query Governor
3. In the pref.txt file there is a setting called RowFetchLimit
As an end user you won't have teh ability to override what the administrator has set for you so please check to see whether any restrictions are in place that are outside your control.
Best wishes
Michael -
Remove/delete the row with Report Name above header while exporting SSRS to excel
I wanted to make sure to delete the top most row with Report name in SSRS report while exporting to excel.
I didn't find any way to do so, My report don't need a report name actually i deleted the text still a blank row appears in excel.
Is there any property hidden i need to look for this requirement?Invalid definition.
The report definition is not valid.
Details: The report definition has an invalid target namespace
'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition'
which cannot be upgraded. (rsInvalidReportDefinition)
Maybe you are looking for
-
Quicktime movie - publishes a ghost file, placing on the page
I have two questions. First - the ghost file I dragged a Quicktime movie file to a page and then published to a folder. I realised that I had attached a 27Mb file instead of a smaller file (750k) that I had meant to. I deleted the large file (select/
-
If I downloaded photos onto my iPad from a non apple device how do I get them off. The delete button doesn't highlight when I select them.
-
Cisco 5502 Configuration Example
I'm currently running a Cisco 5508 WLC. I currenlty want to use two Gigabit ports for Wireless traffic and I will only have 25 1142 Attached to this WLC. Reading the Cisco Wireless LAN Controller Configuration Guide, Release 6.0 it says : 5500 Se
-
The WiFi button is not greyed out or dimmed but the phone won't pick up or connect toany of the networks I have previously been connected to. I have updated to iOS 7, reset the network settings but no luck. Any suggestions?
-
Iframe on a symbol created dynamically
Hello, -I have a button that creates a symbol dynamically. That is OK -then I move this symbol with TweenMax. That is Ok, I tested it. -and finally I want to load into this symbol an external URL. That doesn't work. The problem is, I think, I don"t