Date Rules failing in billing value

Hi All,
I have created a date rule with the help of an existing date std rule.
I need the rule as monthly (considering month as 30 days).
<?xml version="1.0"?>
<SAPTimeRule>
   <TimeRuleTree>
   <!-- Begin of Rule Tree -->
      <ruleline>
      <!-- Begin of new LINE -->
         <AssignTimeExp displaytype="AssignTime">
         <!-- Assign time -->
            <VarTimeExp displayType="VarTime"
                               name="RESULT"
                           position="B">
            <!-- Variable: Time -->
            </VarTimeExp>
            <MoveTimeExp displaytype="MoveTime" direction="+">
            <!-- Move -->
               <VarTimeExp displayType="VarTime"
                                  name="PERIOD_DATE"
                                  position="B">
               <!-- Variable: Time -->
               </VarTimeExp>
               <ConstDuraExp displaytype="ConstDura"
                                duration="1" timeunit="MONTH">
               <!-- Constant Duration -->
                  <VarObjectExp displaytype="VarObject"
                                name="SYSTEM"/>
                  <!-- Variable: Timeobject -->
               </ConstDuraExp>
            </MoveTimeExp>
         </AssignTimeExp>
      </ruleline>
   </TimeRuleTree>
</SAPTimeRule>
When I specified it as
              <ConstDuraExp displaytype="ConstDura"
                                duration="1" timeunit="MONTH">
Its working fine and gives the billing value properly.
When I specify it as
              <ConstDuraExp displaytype="ConstDura"
                                duration="30" timeunit="DAY">
Its not showing consistant billing value for all the period.
Do I need to do anything with date profile or duration.
Can anybody help me to proceed?
Thanks & Regards,
bhuvana

Hi Martin,
I will explain my problem again.
I have created a date rule with the help of an existing date std rule.
I need the rule as monthly (considering month as 30 days).
<?xml version="1.0"?>
<SAPTimeRule>
<TimeRuleTree>
<!-- Begin of Rule Tree -->
<ruleline>
<!-- Begin of new LINE -->
<AssignTimeExp displaytype="AssignTime">
<!-- Assign time -->
<VarTimeExp displayType="VarTime"
name="RESULT"
position="B">
<!-- Variable: Time -->
</VarTimeExp>
<MoveTimeExp displaytype="MoveTime" direction="+">
<!-- Move -->
<VarTimeExp displayType="VarTime"
name="PERIOD_DATE"
position="B">
<!-- Variable: Time -->
</VarTimeExp>
<ConstDuraExp displaytype="ConstDura"
duration="1" timeunit="MONTH">
<!-- Constant Duration -->
<VarObjectExp displaytype="VarObject"
name="SYSTEM"/>
<!-- Variable: Timeobject -->
</ConstDuraExp>
</MoveTimeExp>
</AssignTimeExp>
</ruleline>
</TimeRuleTree>
</SAPTimeRule>
When I specified it as
<ConstDuraExp displaytype="ConstDura"
duration="1" timeunit="MONTH">
Its working fine and gives the billing value properly as below.
from                              to                           bill date                  <b>bill value</b>
05.11.2007     04.12.2007     01.11.2007     0.83
05.12.2007     04.01.2008     01.12.2007     0.83
05.01.2008     04.02.2008     01.01.2008     0.83
05.02.2008     04.03.2008     01.02.2008     0.83
05.03.2008     04.04.2008     01.03.2008     0.83
05.04.2008     04.05.2008     01.04.2008     0.83
05.05.2008     04.06.2008     01.05.2008     0.83
05.06.2008     04.07.2008     01.06.2008     0.83
05.07.2008     04.08.2008     01.07.2008     0.83
05.08.2008     04.09.2008     01.08.2008     0.83
05.09.2008     04.10.2008     01.09.2008     0.83
05.10.2008     04.11.2008     01.10.2008     0.00
When I specify it as
<ConstDuraExp displaytype="ConstDura"
duration="30" timeunit="DAY">
Its not showing consistant billing value for all the period.
from                               to                         bill date                    bill value
05.11.2007     04.12.2007     01.11.2007     100.83
05.12.2007     03.01.2008     01.12.2007     0.69
04.01.2008     02.02.2008     01.01.2008     0.69
03.02.2008     03.03.2008     01.02.2008     0.83
04.03.2008     02.04.2008     01.03.2008     0.69
03.04.2008     02.05.2008     01.04.2008     100.83
03.05.2008     01.06.2008     01.05.2008     0.69
02.06.2008     01.07.2008     01.06.2008     100.83
02.07.2008     31.07.2008     01.07.2008     0.69
01.08.2008     30.08.2008     01.08.2008     100.83
31.08.2008     29.09.2008     01.08.2008     0.69
30.09.2008     29.10.2008     01.09.2008     100.83
30.10.2008     04.11.2008     01.10.2008     0.00
But te period is getting splitted correctly for 30 days.
What could be the problem?
Can you guid to correct this problem?
Thanks & Regards,
Bhuvana

Similar Messages

  • Maintain billing date rule

    Dear Experts,
    I come across follong error while attaching billing plan to WBS element.
    Message no. V2029
    " For period billing date use rule with base line date = billing date "
    Diagnosis
    Use the baseline date = billing date rule for the billing date period.
    Procedure
    Maintain the rule in Customizing.
    How to maintain it in cust.
    Thanks in advance
    Raghav

    Dear Sir,
    I have maintain that rule and make necessary setting but same error has been seen at the time of attaching billing plan to WBS element.
    Raghav

  • Passing values to subreport in SSRS throwing an error - Data Retrieval failed for the report, please check the log for more details.

    Hi,
    I have the subreport calling from the main report. The subreport is based on MDX query agianst the SSAS cube. some dimensions in cube has values 0 and 1.
    when I try to pass '0' to the sub report as the parameter value, it gives an error "Data Retrieval failed for the report, please check the log for more details".
    Actually I am using table for storing these parameter values. In the main report I am calling this table (dataset) and passing these values to subreport.
    so I have given like [0],[1] and this works fine. when I give only either [0] or [1] then it is throwing an error.
    Could you please advise on this.
    Appreciate all and any help.
    Thanks,
    Divya

    Hi Divya,
    Based on the current description, I understand that there is no issue if you pass two values from main report to subreport, while the issue occurs when passing one value to subreport.
    To narrow down the issue, I want to confirm whether the subreport can run if there is only [0] or [1] in the subreport. If so, it indicates the query statements exist error in the subreport. If it’s not the case, this shows the issue occurs during passing
    values from main report to subreport. To make further analysis, please post the details of query statements of the subreport to the forum.
    Regards,
    Heidi Duan
    Heidi Duan
    TechNet Community Support

  • Automatic payment: OBBA Define Value date rules

    hi experts,
    Have you ever tried OBBA to define Value date rules? I met a problem with it.
    In OBBA, my configuration is as follows:
    House banK Account ID Transaction R C1 S Dev C2  A
    CIT1               CNY                              3 CN -    1   CN  -
    CN is the Factory Calendar China.
    According to this configuration, I suppose the Value date will take Due date as reference date, minus one day, and if the Value date calculated is Weekend or Public holiday, it will use the last week day as the Value date.
    But I made two tests:
    In the first test, my OBBA configuration is exactly like above one I listed, in my payment proposal, the invoce Due date is 20-Jun, Value date is also 20-Jun, but I think according to the configuration, the Value date should be 20-Jun minus one day=19-Jun which is a weekend, so should be the last week day 18-Jun.
    My first test tell me the Deviation from reference date in days and the Calendar does not work.
    In my 2nd test, I changed the Reference date to 2 (Posting date), but in my payment run, the Posting date is 9-Jun, the invoice Due date is 20-Jun, the Value date is still 20-Jun.
    My 2nd test tell me the Reference date for determining the value date does not work.
    Have you met such problem, it seems the OBBA totally dose not work.
    many thanks!
    best regards
    Sophie

    Hi Sophie,
    I guess it is too late for you already but maybe this helps to other people with similar issues. You also need to assign the transaction created in OBBA to a specific payment method:
    But what is even more important is that you need to tick this box in the payment method company code settings - "payment per due date".
    Regards,
    Ondrej

  • Value date rules

    Hi,
    I would like to clarify on the below 3 column in the configuration above.
    what is the purpose of the below and can provide an example?
    S (+/- sign for the difference in days) ,
    DEV (Deviation from reference date in days) and
    D (Rule for setting the value date for weekends and public hols)
    Thanks

    Dear Newphama Calesta
    This symblos determines (+/- sign)whether the difference in days  should be added (or) subtracted.
    The value date take due date as reference date - (minus) one day. if value date is calculated as weekend or public holiday.  it is use the last week day as the value date
    For example: if the invoice due date is 25.2.2012. the value date should be 24.2.2012. (the value date 25.2.2012 - 1 day).
    (Ex: 25.2.2012 - 1day) = 24.2012(if it is week end or public holiday) - 1 day = 23.2.2012
    Deviation in days -  from the reference date. How many days before or after the reference date,
    Regards
    shankar

  • Submit Button error - Data Connection failing

    I am the form designer and am currently testing a new form I have created, however there is an error with my submit button which Saves the form to SharePoint, I receive the following error message:
    InfoPath cannot submit the form.
    An error occurred while the form was being submitted.
    The form cannot be submitted to the following location: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml
    The file: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml" is checked out for editing by DOMAIN\MyUserName.
    The operation completed successfully.
    The form is not checked out to me, or open by anybody else, also check out functionality is not forced on this SharePoint library.
    On searching forums I have read about using friendly server names and I am using the server's name in the URL, i.e.
    http://servername instead of the alias
    http://intranet - this had solved the problem in other forms, but not this one.
    Looking closely at the rules on my submit button, the following actions occur:
    1st rule checks the selection of certain fields, if the conditions are right it will set the values of 3 different fields.
    The 2nd rule saves to SharePoint using a data connection (please note this data connection works fine on different submit buttons in different views). The second rule also closes the form.
    To test where the error occurs I added a series of actions to display messages, and the problem is definitely on the data connection rule.
    The data connection is to save to a Sharepoint library, using a field called "filename" as the file name. The data connection allows overwrites. The file name is set the first time a file is saved (it has a condition which checks a field which
    gets set upon any save event - if this field is set to 0 filename gets set and this field gets set to 1 - because this field is now equal to 1, the filename field will nwever get set again).
    I have 2 views on the form, one named phase 1, the other named phase 2. When the custom submit button is pressed on the phase 1 view, my data connection works, but on the save 2 view, the exact same data connection fails with the error message above.
    I am using Windows 7, InfoPath 2010, SharePoint 2010, InfoPath filler form).
    In Windows XP, for a different user, the error messaeg is a little different, and the form does actually save:
    InfoPath cannot submit the form
    An error occurred while the form was being submitted
    The form cannot be submitted to the following location: http://servername/siteA/siteB/siteC/FormLibrary/FormName.xml
    The file is in use by another application or user.
    As I said the form does actually save its changes but still throws up this error message which will be very confusing to end users.
    I've exhausted all avenues that I know of to find the cause of the error messages and I'm at a loss, please help!
    Thanks,
    Ben

    bgvball14. I found that the error was down to the friendly name / server name issue. I have made sure that everything uses the friendly name e.g.
    http://intranet instead of the servername e.g.
    http://servername. I made sure the data connection and all options in the publishing wizard are set to the friendly name. There were still some forms that didn't work though - this was because when trying to fix this problem I had switched several times
    between using the friendly /server names and some forms were looking for the template with the server name (these didn't work), other forms looked for the friendly name (these did work).
    What I did was open my form library in windows explorer view and then drag each form into Notepad so I could see the source code. On the top two lines I could see the reference to the template and in some cases the template weas referenced using the server
    aname, which I changed to the friendly name and this worked. I did have to check every form in the library. Basically, everything should reference the friendly name (e.g.
    http://intranet.
    Ben

  • Data load failed while loading data from one DSO to another DSO..

    Hi,
    On SID generation data load failed while loading data  from Source DSO to Target DSO.
    Following are the error which is occuuring--
    Value "External Ref # 2421-0625511EXP  " (HEX 450078007400650072006E0061006C0020005200650066
    Error when assigning SID: Action VAL_SID_CONVERT, InfoObject 0BBP
    So, i'm  not getting  WHY in one DSO i.e Source  it got successful but in another DSO i.e. Target its got failed??
    While analyzing all i check that SIDs Generation upon Activation is ckecked in source DSO but not in Target DSO..so it is reason its got failed??
    Please explain..
    Thanks,
    Sneha

    Hi,
    I hope your data flow has been designed in such a way where the 1st DSO as a staging Device and all transformation rules and routine are maintained in between 1st to 2nd dso and sid generation upon activation maintained in 2nd DSO.  By doing so you will be getting your data 1st DSO same as your source system data since you are not doing any transformation rules and routine etc.. which helps to avoid data load failure.  
    Please analyze the following
    Have you loaded masterdata before transaction data ... if no please do it first
    go to the property of first dso and check whether there maintained sid generation up on activation (it may not be maintained I guess)
    Goto the property of 2nd Dso and check whether there maintained sid generation up on activation (It may be maintained I hope)
    this may be the reason.
    Also check whether there is any special char involvement in your transaction data (even lower case letter)
    Regards
    BVR

  • List data validation failed when creating a new list item but does not fail when editing an existing item

    Dear SharePoint Experts,
    Please help.
    Why does my simple formula work in Excel but not-work in SharePoint?
    Why does this formula...
    =IF([Request Type]="Review",(IF(ISBLANK([Request Date]),FALSE,TRUE)),TRUE)
    ...work in Excel but fail when I try to use it in SharePoint?
    The intent of this formula is the following...
    If the field "Request Type" has the value "Review" and the field "Request Data" is blank then show FALSE, otherwise show TRUE.
    SharePoint saves the formula, but when a list item is saved where the formula is implemented, (under List Settings, List Validation), SharePoint does not, say anything other than that the formula failed.
    Note that the "list data validation failed" error only happens when I am creating a new item-- the formula above works just fine when one is trying to Save on the edit form. 
    Can you help?
    Thanks.
    -- Mark Kamoski

    Dear Jason,
    I appreciate your efforts.
    However, it seems to me that this statement of yours is not correct...
    "If it meet the validation formula, then you can new or edit the item, otherwise, it will throw the 'list data validation failed' error, it is by design".
    I believe this is NOT the answer for the following reasons.
    When I create a new item and click Save, the validation error is "list data validation failed".
    When I edit an existing item and click Save, the validation error is "my custom error message" and this is, I believe, the way it needs to work each time.
    I think, at the core, the error my formula does not handle some condition of null or blank or other default value.
    I tried a forumla that casts the date back to a string, and then checked the string for a default value, but that did not work.
    I tried looking up the Correlation ID in the ULS when "list data validation failed" occurs, but that gave no useful information because, even though logging was set to Verbose, the stack trace in the error log was truncated and did not given any
    good details.
    However, it seems to me that SharePoint 2013 is not well-suited for complex validation rules, because...
    SharePoint 2013 list-level validation (NOT column-level validation) allows only 1 input for all the multi-field validation formulas in a given list-- so, if I had more than 1 multi-field validation rule to implement on a given list, it would need to be packed
    into that single-line-of-code forumla style, like Excel does. That is not practice to write, debug, or maintain.
    SharePoint 2013 list-level validation only allows 1 block of text for all such multi-field validation rules. So that will not work because I would have something like "Validation failed for one or more of the following reasons-- withdrawal cannot exceed
    available balance, date-of-birth cannot be after date-of-death,... etc". That will not work for me.
    The real and awesome solution would simply be enhancing SP 2013 so that column-level validation forumlas are able to reference other columns.
    But, for now, my workaround solution is to use JavaScript and jQuery, hook the onclick handler on the Save button, and that works good. The only problem, is that the jQuery validation rules run before any of the column-level rules created  with OOTB
    SP 2013. So, in some cases, there is an extra click for the enduser.
    Thanks,
    Mark Kamoski
    -- Mark Kamoski

  • DP91(RRB) Restrict DMR Billing value to Sales Order Net Value

    Hi Experts,
    My Requirement is, while creating a DMR using transaction DP91 (Resource Related Billing), I need to  restrict the DMR value to the sales order Net Value. i.e If there are already billed DMR'S we should check all the billing documents value, sum it up with present DP91 billing value (Say X). Check it against Sales order net value.
    IF Sales order net value is more than already billed value or to be billed value(X), then optimize the DIP items within available billing value (Planning to use bin packing algorithm) and postpone remaining items for next billing cycle.
    If Sales order net value is less than already billed value or to be billed value(X), postpone all DIP items for next billing cycle ie dont allow any billing.
    I found the Enhancement AD010007 Change DI Processing Information (EXIT_SAPLAD15_015). But it triggers for each item and here sales order related data is not available neither all DIP item data. All DIP data is flowing from WBS assigned in Sales Order item into DP91.
    Regards,
    Mahesh

    Hi,
    You can make use of data transfer routines in copy control from billing document to sales document.
    Data transfer routine - 403 (FV45C403) is used for copying billing plan dates from from a reference billing document into the target document.  This routine can be assigned to the FPLA copy rules for the item category from a billing document to a sales document.
    You may enhance this routine to add net value field to be copied into credit memo document. In your case, net amount (100) can be pulled from invoice into credit memo document. 
    Regards,
    Vaibhav

  • 500 5.4.6 Data command failed: Routing loop detected

    I have recently installed OCS 10.1.2 on single box and configured email server. initially i could send email from web client to other domains. Later I made an MX entry in the named server to send and receive emails to the Oracle email server. At that moment also I could send emails to other domains from web client.
    I then configured my email on outlook with smtp and pop server pointing to my hosted server. When I send emails to other domain from outlook I received and error "[550] 5.7.1 Rcpt command failed: Mail denied due to site's policy". I searched the forum and found a solution to take care of it. The message id is 1146225, where in I did the following
    Enable Routing Control : active
    allow message relay : true
    allow message relay domain : *
    flag process: -l
    Recipient Rewriting Rules: $*@your host target smtp,$1@your domain target smtp,
    example:
    $*@mail.sinux.com.pe,$[email protected],
    you should change the next value in smtp outbound
    rele smtp : ip of your source mail or relay :port smtp
    flag process: -l
    After restarting the SMTP inbound and outbound server I didnt get the above error but after few days got a email saying message could not be delivered to other domains (though the message was delivered to my domain) and the errror says "500 5.4.6 Data command failed: Routing loop detected"
    Any ideas to resolve it.
    Warm regards,
    Vipul

    Hey adminmilou,
    Please reach out to our direct support via live chat and we will be able to look into this further: http://helpx.adobe.com/contact.html (select Business Catalyst).

  • CRM orders in R/3 with rejected (cancelled) lines fail on billing.

    Hi,
    I have issue in the replicatuion of the orders and Invoice generation in R/3 system.
    u2022CRM orders in R/3 with rejected (cancelled) lines fail on billing.
    u2022CRM orders in R/3 have the value of the rejected lines included in the order header.
    u2022CRM orders in R/3 have the rejected/cancelled lines included in internal BW Traffic and Revenue Reports.
    u2022CRM orders that have been saved but only contain rejected/cancelled items can be confirmed and passed to R/3.
    your inputs will be appreciated!!
    Regards,
    Sathya.

    Already answered

  • Billing Value is not updating in Cube for 2lis_13_vditm

    Hi All,
    I am getting Billing Value in PSA for 2lis_13_vditm, while its not getting updated in 0SD_C03 Cube. My transfer rules and transformation both are activated.
    In PSA, i am getting Billing value for M and I both document category, while in cube I am getting value 0 for both document category.
    I am not getting any error message.
    Thanks in Advance,
    Rishit

    Hello,
    Please check if there are any Start Routines , Char Routines or End routines written in the transformation
    Also check if a constant is assigned to it.
    Waiting for your feedback
    Regards
    Nitin Bhatia

  • Problem in Read Master Data rule type in Transformation

    Hi,
    I have 'Tax Classification' & 'Sales Territory' as attributes for 0customer (Master data).  I loaded master data for 0customer & data have come up for this 2 fields.  I want this 2 fields in my DSO with data filled.  As this 2 fields are not in Transaction datasource of my DSO,  i added this 2 fields in the Target side in Transformation of the DSO.  In Transformation, I gave the rule type as 'Read Master Data'  from attribute of '0customer' & mapped KUNAG (Sold-to) to this 2 fields.  Activated the Transformation & executed the DTP.
    When i check the data, i could see that the Infoobject 'Sales Territory' column alone is filled but 'Tax Classification' column is blank.  Tax classification has data in 0customer master data for the displayed customer values but still data is not coming in DSO.
    How does this happen when both the fields have same mapping & rule type and still data not getting populated for one field alone.  Am i missing anything?
    Regards,
    Murali

    hi,
    the green request in MD does not means that the data in MD is activated, you need to activate it after loading everytime so that it reflects in where used list as well.
    regards,
    Arvind.

  • Script fails when passing values from pl/sql to unix variable

    Script fails when passing values from pl/sql to unix variable
    Dear All,
    I am Automating STATSPACK reporting by modifying the sprepins.sql script.
    Using DBMS_JOB I take the snap of the database and at the end of the day the cron job creates the statspack report and emails it to me.
    I am storing the snapshot ids in the database and when running the report picking up the recent ids(begin snap and end snap).
    From the sprepins.sql script
    variable bid number;
    variable eid number;
    begin
    select begin_snap into :bid from db_snap;
    select end_snap into :eid from db_snap;
    end;
    This fails with the following error:
    DB Name DB Id Instance Inst Num Release Cluster Host
    RDMDEVL 3576140228 RDMDEVL 1 9.2.0.4.0 NO ibm-rdm
    :ela := ;
    ERROR at line 4:
    ORA-06550: line 4, column 17:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev sum variance
    execute forall merge time timestamp interval date
    &lt;a string literal with character set specification&gt;
    &lt;a number&gt; &lt;a single-quoted SQL string&gt; pipe
    The symbol "null" was substituted for ";" to continue.
    ORA-06550: line 6, column 16:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null &lt;an identifier&gt;
    &lt;a double-quoted delimited-identifier&gt; &lt;a bind variable&gt; avg
    count current exists max min prior sql stddev su
    But when I change the select statements below the report runs successfully.
    variable bid number;
    variable eid number;
    begin
    select '46' into :bid from db_snap;
    select '47' into :eid from db_snap;
    end;
    Even changing the select statements to:
    select TO_CHAR(begin_snap) into :bid from db_snap;
    select TO_CHAR(end_snap) into :eid from db_snap;
    Does not help.
    Please Help.
    TIA,
    Nischal

    Hi,
    could it be the begin_ and end_ Colums of your query?
    Seems SQL*PLUS hs parsing problems?
    try to fetch another column from that table
    and see if the error raises again.
    Karl

  • External Data Refresh Failed. We cannot locate a server to load the workbook Data Model. ThisWorkBookDataModel

    Hi All,
    I have been trying to fix this for days now. I have tried solutions in many articles but to no avail. So while the error message is something you may have seen may times, I just can't find a solution in my case.
    This is the error:
    And in text just in case the image isn't viewable:
    "External Data Refresh Failed. We cannot locate a server to load the workbook Data Model. We were unable to refresh one or more data connections in this workbook. The following connections failed to refresh: ThisWorkBookDataModel."
    What is worse is I have checked the ULS (SharePoint Trace Logs), the Event Viewer Logs and the OWA Logs and I cannot find a specific error that would help pin point the problem.
    Excel Workbook
    So what am I doing? I have an Excel 2013 workbook and I create an "SQL Server" connection to the AdventureWorksDW database, add a pivot table and a pivot chart, test in in Excel and all works fine.
    I save the Excel workbook to SharePoint 2013 and then select "Data" then "Refresh All Connections" and then I get the error in the picture above.
    Even more puzzling is I have another Excel workbook that also has pivot tables and pivot charts in the AdventureWorksDW2012Multidimensional cube database in "SQL Analysis Services" and this works fine. Hmmm.
    My Environment
    My environment is Windows 2008 R2 Server, SharePoint 2013 with the April Service Pack1 and a separate server with OWA2013 SP1. It has an SQL Server 2008 R2 database which has been upgraded to SQL Server 2012.
    Data Model Settings
    In Excel Services this is set to my server name which is "server-name". As I do not have instances all I can enter is the server name. As this works everywhere else including the workbook outside of SharePoint I do not think this is the problem.
    But I could be wrong.
    Unattended Account
    I have set this up for the PowerPivot Services App and Excel Services App.
    ODC Connections in Excel
    I have tried all 3 authentication modes, Windows, Secure Store ID and "None" which is the unattended account. I have not tried the other connection types, should I?
    Not in WOPI
    I am not in WOPI mode.
    AD Accounts
    I have added permissions in the SharePoint Services and SQL Server, and as they work in Excel outside of SharePoint, I do not think it is a permissions issue. I could be wrong of course, but the problem is in one of SharePoint, OWA, AD,
    SQL Server, Excel, and Windows Server.
    Isolate the Error
    Below is a list of errors I think are relevant but they do not tell me much. The SharePoint logs are not really giving me an error that tells me what to do and where to do it, or even why it cannot refresh, (perhaps not noticeable by the untrained eye).
    Problem with SQL Server Not Analysis Services
    So my cube database in analysis services works fine in SharePoint/OWA but not the databases in sql server. This is my best clue but I have no idea what it means. Why would it work with an Analysis Services connection but not an "SQL Server" connection?
    It Works Outside of SharePoint
    If I run the excel worksheet outside of SharePoint all works fine. When inside OWA this is where the refresh error occurs.
    Errors from Event Viewer on SharePoint Server using ULS Viewer
    "Failed to create an external connection or execute a query. Provider message: There are no servers available or actively being initialized., ConnectionName: , Workbook:"
    "Refresh failed for 'ThisWorkbookDataModel' in the workbook 'http://server...'. [Session: 1.V22.26itT0lx8piNFeqtuGVhN214.5.en-US5.en-US36.98c0e158-9113-46e9-850e-edda81d9ed1c1.A1.N User: 0#.w|ad\testuser1]"
    And an error in the ULS under the "Data Model" category:
    "--> Check Deployment Mode (server-name): Fail (Expected: SharePoint, Actual: Multidimensional)."
    This last error, as it turned out, defined the problem concisely, although I was yet to work out what it meant in some detail.

    I finally solved this myself (or should I say with the help of several key articles).
    The refresh did not work because the database was not in "SharePoint Mode". Yes, SQL Server has modes, 3 of them in fact.
    If you installed SharePoint to the default SQL instance which would be called <servername> then you cannot use this default instance for Excel 2013 workbooks in OWA 2013 because the refresh only works if the database is in SharePoint mode.
    So what are these 3 modes? The Deployment Mode property in the msmdsrv.ini file has them as:
    0 = Multidimensional mode (the default whenever you install SQL Server normally)
    1 = PowerPivot for SharePoint mode
    2 = Tabular mode mode
    How do you know what mode you are in? That's easy, open SQL Studio Manager and connect to all your SQL database engine instances (ignore Analysis Services or SSRS as they are not database engines). If you only have the default instance then that is almost
    definately in Multidimensional mode which is the default and what SharePoint installs its databases to.
    You must have an instance called <servername>\POWERPIVOT. This instance is the "sharepoint mode" needed, and the default instance name when you install an SQL instance in this mode.
    If you don't see <servername>\POWERPIVOT in SQL server then you are not in "sharepoint mode". It is more accurate to say, you do not have an instance that is in sharepoint mode. This is because you cannot simply switch modes on an SQL server.
    You have to install a new instance in the required mode, thats the only way.
    That's easy enough. Load up the SQL Server setup CD and run setup. Install a brand new instance and select "SQL Server PowerPivot for SharePoint" when you get there in the wizard.
    Now you will have the default instance that stores all the SharePoint databases and that is in mode 0, and a new instance called <servername>\POWERPIVOT that is in mode 1. The "<servername>\POWERPIVOT" instance connection is what you
    will use for Excel 2013 when rendering in OWA 2013.
    You also need to ensure OWA 2013 is not in WOPI mode for Excel worksheets. See the last link below for more information about WOPI.
    Next you should go to the Excel Service App in CA and click Data Model Settings and add the <servername>\POWERPIVOT instance.
    Then you have to either turn off the firewall on the SQL server machine, or create an inbound rule on the Windows firewall to open the TCP port for the <servername>\POWERPIVOT instance:
    1. Start Task Manager and then click Services to get the PID of the MSOLAP$InstanceName.
    2. Run netstat –ao –p TCP from the command line to view the TCP port information for that PID.
    Finally, you can now create Excel 2013 workbooks that run in OWA without refresh errors, as long as you are connecting to the <servername>\POWERPIVOT instance. Hooray.
    REFERENCES
    Look for the string "There are no servers available or actively being initialized" in this article:
    http://blogs.msdn.com/b/analysisservices/archive/2012/08/02/verifying-the-excel-services-configuration-for-powerpivot-in-sharepoint-2013.aspx
    Determine the server mode:
    http://msdn.microsoft.com/en-au/library/gg471594(v=sql.110).aspx
    Install the SharePoint PowerPivot instance (aka SharePoint mode)
    http://msdn.microsoft.com/en-au/library/eec38696-5e26-46fa-bc83-aa776f470ce8(v=sql.110)
    Open the port for the new SQL instance:
    http://msdn.microsoft.com/en-us/library/ms174937(v=sql.110).aspx
    Turn Off WOPI for Excel OWA
    http://blogs.technet.com/b/excel_services__powerpivot_for_sharepoint_support_blog/archive/2013/01/31/powerpivot-for-sharepoint-browser-refresh-fails-data-refresh-not-supported-in-office-web-apps.aspx

Maybe you are looking for

  • What is the best way to learn SAP-ABAP

    What is the best way to learn ABAP?? Stick to SAP press books and understand and learn theroitically                                         'or' Move to ABAP programming and experiment all the things you have learn. If both want to go hand in hand a

  • Pivot the column names

    9.2.0.6 if I do select column_name from user_tab_columns where table_name = 'EMP' order by column_id; I get the list of columns: EMPNO ENAME JOB MGR HIREDATE SAL COMM DEPTNO what I want to do is display them in the form of 'EMPNO,ENAME,JOB,MGR,HIREDA

  • Automatically shutdown auxiliary after DUPLICATE complete

    This is in regards to 10.2.0.4 I am refreshing a Test system with Production data using the DUPLICATE command. I've searched via Google but haven't hit the right search phrase to find the answer to my question. Once the RMAN DUPLICATE command finishe

  • Henry dropped the Ipod touch and cracked the screen.  How can I get this fixed.

    Hi, Henry dropped his Ipod touch and cracked the screen and put in a passcode and now has forgotten his passcode.  Need to know how I can get the screen fixed and or if it is covered on the 1 year warranty?  How can I unlock the Ipod without the pass

  • Example / explanation for push  request ?

    Hi, can someone provide me a working example of soure code which creates a push request (Header + body) to an existing SAP NetWeaver Gateway Service?  My goal is to read a textfield input and transfer this information to an existing Service. <Label t