Problem while refreshing the data for the second time using excel services in sharepoint 2013...
Hi,
I have migrated my Sharepoint from 2010 to 2013.I am able to get the data at the first time of refresh when I click on refresh for the second time I am getting the empty the sheet.
below find the flow of refresh
First Refresh
On Click of refresh open the workbook with excel services and return the session id.
Using that session I am invoking RefrehAsync method of excel services
After refresh completed I am setting the calculation of workbook as automatic(to calculate the formulas) using the same session id
After setting the calculation as Automatic I am setting the calculation type as full(recalculate) using the same session id.
Now I am able to see the data
Second Refresh
After clicking on refresh instead of opening the workbook I am using the session id(already opened workbook) and setting the calculation type as manual
I am following the same process from refresh(RefreshAsync) as I have followed in first refresh.
This time my formulas are not getting calculated because of that I am not able to see the data.
Could you please let me know that am I missing anything here?
Is this know issue in Sharepoint2013 excel services as same code is working fine with Sharepoint2010.
If I close the workbook(session id null) and opens(new session id) for all the refreshes it is working and I am able to see the data.
Thanks,
Meenakshi Nagpal
N.Meenakshi
I am able to see the data for the second refresh if I change the data source.If I use the same data source which is used in the first refresh I am not getting the data.Excel services will contact the cubes and calculate the formulas in my workbook.
Could you please let me know what could be the problem at second refresh while contacting the same data source with same session id?
Please help me asap.
Thanks,
Meenakshi Nagpal
N.Meenakshi
Similar Messages
-
大家帮帮忙呀,真是苦恼呀!The date for the prompt 'startDate' is invalid. (WIS 10706)
IInfoObject report = (IInfoObject) objects.get(0);
IWebi webi = (IWebi) report;
// u83B7u5F97u63D0u793Au53C2u6570
di = getReportEngine().openDocument(report.getID());
di.refresh();
// u8BBEu7F6Eu53C2u6570
if (params != null)
Prompts prompts = di.getPrompts();
int promptNum = prompts.getCount();
for (int j = 0; j <= promptNum - 1; j++)
Prompt p = (Prompt) prompts.getItem(j);
if(params.get(p.getName())!=null)
//u68C0u6D4Bu662Fu5426u5E26u6709u7A7Au5B57u7B26
String temp[]=(String[])params.get(p.getName());
boolean falg=false;
for(int len=0;len<temp.length;len++)
if(temp[len]==null)
falg=true;
else if("".equals(temp[len].trim()))
falg=true;
if(falg)
continue;
//u5BF9u65E5u671Fu6570u7EC4u8FDBu884Cu8F6Cu6362
if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
String formatStr=p.getInputFormat();
for(int x=0;x<temp.length;x++)
temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
System.out.println(p.getName()+"u503C "+temp[0]);
p.enterValues(temp);
PromptsUtil.populateWebiPrompts(di.getPrompts(), webi);
// u540Eu7F00u540Du79F0
if (format !=EXCEL && format != PDF && format !=Webi)
throw new Exception(" u751Fu6210u62A5u8868u5B9Eu4F8Bu683Cu5F0F,u53EAu63A5u6536EXCEL,PDF,Webiu683Cu5F0Fu53C2u6570!");
webi.getWebiFormatOptions().setFormat(format);
ISchedulingInfo scheduleInfo = report.getSchedulingInfo();
scheduleInfo.setType(0);
//u662Fu5426u53D1u9001u90AEu4EF6
if(isSendMail)
doSendMail(scheduleInfo,report,
format,message,title,recipientAddresses,CCAddresses);
//u8BBEu7F6Eu81EAu5B9Au4E49u503C
if(properties!=null && !"".equals(properties))
report.properties().setProperty(CUSTOMVALUE,properties);
scheduleInfo.setRightNow(true);
// u751Fu6210u5B9Eu4F8B
getIInfoStore().schedule(objects);
上述代码片段为BO生成实例的过程,程序不会出错。但BO报表历史记录中,提示:The date for the prompt 'startDate' is invalid. (WIS 10706)
刚开始认为:日期格式错误,我便加上了
if("DATE".equalsIgnoreCase(p.getObjectType().toString()))
String formatStr=p.getInputFormat();
for(int x=0;x<temp.length;x++)
temp[x]=DateUtil.DateToString(DateUtil.StringTODate(temp[x]),formatStr);
需且验证日期格式,正是p.getinputFormat()所要求的格式,可BO历史记发中,生成实例还是报上述错误。
Edited by: pyantking on Jul 27, 2009 2:39 PMHello Anh,
With XI 3.1 some significant fixes were delivered to address issues like you describe : create a query with QaaWS Designer using date input parameters (prompts) with a given locale, then edit (with QaaWS Designer) the query under another different locale, where dates are set with a different format.
AFAIK QaaWS queries keep the locale under which they were created, fixes were aimed at translating input parameters in the right format so errors like the one you describe should not be encountered.
i suggest you get in touch with the SAP BusinessObjects tech support with your issue, so we will be able to investigate further in conjunction with QaaWS dev team and work out a fix, if this turns out to be a bug.
BTW, Have you considered upgrading to a more recent Service Pack? Business Objects Enterprise XI 3.1 SP3 is now available since 2010 Q2 (no guarantee, though, that this issue would be solved with this SP)
Hope that helps,
David. -
Unable to see the data for the hierarchy in rsa3
Hi Gurus,
i am trying to check the data for the standard hierarchy in rsa3,but it is showing an error message saying that error 6 in functional module rss_program_generate.Please help me out.
thanks
bhaskarCheck if this helps seemed relevant
Error 6 in function module RSS_PROGRAM_GENERATE
Error 6 in function module RSS_PROGRAM_GENERATE
error Error 6 in function module RSS_PROGRAM_GENERATE -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
How to set the filter on a report to show the data for the Current Month
Hi all,
I am working on a report, which currently has this filter: Date First Worked is greater than or equal to 10/01/2010. This reports show the data for the current month, so at the beginning of each month we have to remember to change the date on the filter.
Does anyone know what the criteria should say, so that it automatically changes and shows the information for the current month, without us having to go in and change anything?
Any help would be greatly appreciated!
Thanks,
AAYou need to add a session variable to date fir worked assuming that this is a date field.
To do this open up the filter on the field then at then press add Variable then "session" and enter the following CURRENT_MONTH into the Server Variable section. -
How to get the date for the last day of a week?
Is there a easy way to get the date for the last day of week?
eg a week starts on monday and end on sunday
January 11, 2005 is the start date for the week
January 17, 2005 is the end date for the week
or
say
February 26, 2003 is the start date for the week
March 5, 2003 is the end date for the week
I just need a simple way of figuring that out....
I figured out how to get the start date for the week but just can't get the latter..
formatting of the date is not of a concern.. that I know how to do
thanks in advanceHow about something like the following?
Calendar someDay = new GregorianCalendar(2005,0,11);//2005 Jan, 11
//Note above that January is 0, not 1, as counting starts from 0.
someDay.add(Calendar.DAY_OF_MONTH,6); //add 6 days
java.util.Date lastDayOfWeek = someDay.getTime();
//If someDay was the start of a week, lastDayOfWeek should now be
//the last day of that week.
System.out.println(lastDayOfWeek.toString() ); -
Function module to determine the date for the nth weekday of the mth month
Hey folks,
Is there a function module which determines the date for the mth weekday of the nth month in the pth year.
For instance, if I input 2nd thursday of the 4th month in 2008, it should return me, 04/10/2008 (MM/DD/YYYY).
Thanks and Best Regards,
Puja.Hi Ravi,
Hadn't been able to work on this lately...You solution was quite close, but did not work for a few scenarios....I tweaked the logic a bit to take care of them as well...
So here goes the code:
================================================
DATA first_day_of_month TYPE datum.
DATA day TYPE p.
CONCATENATE year month '01' INTO first_day_of_month.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = first_day_of_month
IMPORTING
wotnr = day.
DATA day_number TYPE numc2.
IF day = weekday.
IF recur = 1.
DATA ls_date(10) TYPE c.
CONCATENATE month '/01/' year INTO ls_date.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING
date_external = ls_date
IMPORTING
date_internal = date.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + 1.
ENDIF.
ELSEIF day < weekday.
day_number = ( ( recur - 1 ) * 7 ) + ( weekday - day ) + 1.
ELSE.
day_number = ( ( recur - 1 ) * 7 ) + ( 7 - day ) + weekday + 1.
ENDIF.
IF date IS INITIAL.
CONCATENATE year month day_number INTO date.
ENDIF.
====================================
There still could be some loopholes in this....am not sure....but it sure did seem to work for a couple of random checks that I performed.
Brownie points to you for giving me a direction.
Thanks,
Puja. -
Which tables are being used to extract the data for the materi Extractors
Hi
please advise which tables are used to extract the data for the extarctors
0MAT_SALES_ATTR,
0MATERIAL_ATTR,
0MAT_PLANT_ATTR
0PLANT_ATTR
,Many thanks.Hi,
Activate a database trace using ST01. Then perform the MM03 operation and goto the SD Texts tab. Now stop the trace and see if you can locate either a table or program which you can utilize in the log.
http://help.sap.com/saphelp_47x200/helpdata/en/dd/55f993545a11d1a7020000e829fd11/frameset.htm
Hope this helps..
Rgs,
Ravikanth. -
NT - How to embed the date for the export output file?
I want to know how to embed a date for the export file on Windows NT?
Example :
In Unix you can use a shell variable and attach to the file like exp file=exp_prod_$A,
where $A will have the system date, My output will be like exp_prod_10012000.dmp.
I want to know how to do the above on NT.
Thanks
Ravi
nullWelcome to the forum!
When you want to post a block of code, you can enclose it with the mark ups { code }
That is the key word code surrounded by curly brackets, but without the spaces
You seem to be running a very old (and unsupported release of the database)
7.3 has not been a current release for about 10 years.
It's probably been that long since I've used this technique, but i think it should work.
You should consider welcoming your system to the 21st century by upgrading to a supported release ;-)
If you used split to chop up your export file, use cat or dd to reassemble it.
So, something like this:
mknod bk.dmp p
cat xaa xab xac xad xae xaf xag xah xai > bk.dmp &
imp SYSTEM/$PASSWD parfile=imp_bk.parfile
rm bk.dmp
$ cat imp_bk.parfile
file=bk.dmp
log=imp.log
full=y
buffer=1048576
ignore=y
commit=y let us know if still have problems.
Good Luck! -
Getting the data for the infotype 0006 and Subtype 4 in HR ABAP
Hi All,
I need to get the data from the info type 0006 and the subtype 4 , only i need to fetch the data in communications . Could you any one tell me best way to fetch that data.
Thanks,
SAP SAR.Write a select single on PA0006 for the given pernr begin and end dates and for subtype 4 ...
select single * from PA0006
where pernr = p_pernr
and SUBTY = '0004'
and ENDDA >= s_date-low
and BEGDA <= s_date-high. -
In which tables are the data for the aplication KSB1?
I'm getting data from Qlik View with a BI tool called Qlik View.
I need help to find in which tables are the data for KSB1 aplication.
I've found something in COBK and COEP but there's more table involved since I didn't find all data.
Somente can help me please?
Regards.
RobsonI ran a trace and found some tables that may help you.
COVP(View)
CSKT
CSLT
CSKS
CSKU
AUFK
Thanks
Rathish -
How to approach in getting the dates for the user given periods
Hi All,
I have areuirement where the calendar would be like as 466 for a period
for eg. period 1(Jan) has 4 weeks
period 2(Feb) has 6 weeks
period 3(Mar) has 6 weeks
again period 4(Apr) has 4 weeks
period 5(May) has 6 weeks
period 6(June) has 6 weeks
How to get the dates (from date and end date) for the periods.
Anybody's help will be appreciated
Regards
SaugataI have areuirement where the calendar would be like as 466 for a periodWhat does that mean? Is 466 the format of the data?
The end date depends on the start date. This query might be helpful for you
SQL> WITH data AS(
2 SELECT 1 period, 4 duration FROM dual UNION ALL
3 SELECT 2, 6 FROM dual UNION ALL
4 SELECT 3, 6 FROM dual UNION ALL
5 SELECT 4, 4 FROM dual UNION ALL
6 SELECT 5, 6 FROM dual UNION ALL
7 SELECT 6, 6 FROM dual)
8 SELECT
9 period,
10 duration,
11 SYSDATE + SUM(duration) OVER (ORDER BY period RANGE UNBOUNDED PRECEDING) * 7 AS end_date
12 FROM data
13 ;
PERIOD DURATION END_DATE
1 4 16-NOV-07
2 6 28-DEC-07
3 6 08-FEB-08
4 4 07-MAR-08
5 6 18-APR-08
6 6 30-MAY-08
6 rows selected.
SQL> -
How can I download the software for a second time without a backup but with the serial number?
Hi guys,
stupidly my hardware got broken and I've missed to do a backup for the programs. May it's a stupid question but how can I download the Lightroom software for a second time? I've got the serial number for this, but can't find a link without buying it again....
Thanks a lot for your help!!!!
Cheers,
HannahLightroom - all versions
Windows
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Windows
Mac
http://www.adobe.com/support/downloads/product.jsp?product=113&platform=Macintosh -
How to upload the data for the z fields for the delta upload
Hi Exports,
I have the Z fields for the data sourse 2LIS_05_Q0ITEM. when doing any changes in the R3 system,the changes for the Zfileds are not uploded through delta upload.
Anybody plese suggest me to upload the changes.
Thanks,
KrishnaHi krishna,
see....have u activated that DATA SOURCE or not? if not activate that DATA SOURCE and have u written any code to that Zfields in RSAP0001?
Regards
chandra sekhar
Edited by: chandra sekhar on Nov 11, 2008 12:47 PM -
LIS - To get the data for the missing data for the infostructure S906
Hi
We have performed an unicode conversion In our SAP ECC 6.0 system, after the conversion, the infostructure S906 (copy of S006) was not updated for the period 22nd June to 25th June 09.
Then we regenerated the infostructure S906 using the tcode MCS/ on 26th June and after which the update rules are working correctly in S906.
Now when we run the SOP report for this week, the data is missing for the period 22nd June to 25th June 09.
We have gone thru the note 64636 - to setup the infostructure from the begining, which needs more downtime.
Is there a possibility to get the missing data for the above period only, instead of setting up the infostructure from the beginning.
Thanks & Regards
SenthilYou did not tell us what kind of update are you using. Some transactions (e.g. OLI1) allow to run it by posting date; others (e.g. OLI9) for a range of the documents. You can find what document numbers were created in the period of question and then run it for them. Although I would recommend the full rebuild.
Maybe you are looking for
-
In the middle of using wi-fi on my MacBook Pro, I lost contact. No other apple devices (iMac, iPhone or iPad) are affected. When I click on the empty wi-fi icon (top right of the screen) it gives the message: Wi-Fi: No hardware installed. has anyone
-
Videos not playing in itunes HELP
So I downgraded my iTunes 11 to 10.6 since I hate the new interface. But I've come with two roadblocks. 1) videos that I've purchased OR i want to preview before purchase will not play. they are just black screens and the timer does not move, there i
-
Redirecting traffic on SunOne 6.1 SP4
hi all, i've got a web server running SunOne 6.1 SP4, and im trying to figure how to redirect traffic from 2 different locations. the web server is accessed both thru the LAN and the Internet. how is it possible to re-direct traffic coming from an in
-
CSS Slideshow does not show in Google Chrome
Sorry if this has been asked before. I have created a css slide show using dreamweaver cc 2014 and I can see it previewed in Internet Explorer but not Google Chrome. Do you see any issues in the code or can you offer some advice? This is tucked into
-
Wireless printing problems with 10.5.4 and Epson printers
Anyone else know about problems with Epson printers such as this no longer functioning wirelessly with bonjour once upgrade to 10.5.4? It appears they are not supporting this with a new driver yet? At this time, Epson says they have no drivers for 10