Excel 2013 Powerpivot datamodel error with DATE formula
Hello forum users and Excel guru's alike.
I have a question relating the datamodel in Excel 2013 Powerpivot. I am using a Dutch version of Excel (on Office 365) but formula's in Datamodel are all in English so I think most of you will understand the issue:
What I want to do: Take a date and adjust this date to incorparate a number of months that is added in a other column.
Example:
Start of contract date: 24-5-2014 (this is a date field in the datamodel and it is called [StartContract])
Contract duration in months: 10 (this is a number field in the datamodel and it is called [DurationInMonths])
Output: 24-03-2015
(this is the calculated field that doesn't work)
My current formula looks like this:
=DATE(YEAR([StartContract]);MONTH([StartContract]+[DurationInMonths]);DAY([StartContract]))
It shows an error as soon as I hit Enter. The formula works fine when I replace [DurationInMonths] with the value "10" or when I leave out "+[DurationInMonths]". But that isn't an option!
The following variation also doesn't work.
=DATE(YEAR([StartContract]);MONTH([StartContract])+[DurationInMonths];DAY([StartContract]))
Please, is there any one with a solution?
Kind regards,
Erik van Hurck
Hi Tony,
I have tried your solution, to no succes I am sad to say.
I do agree that the formula works in Excel, but now switch over to the
PowerPivot Data model and try the formula there. And it will repport an error:
=DATE(year([StartDate]);month([StartDate]+[DurationInMonths]);DAY([StartDate]))
is the formula I used in the Datamodel.
The DurationInMonths field is:
Whole numbers and formatted as: General
The StartDate is:
Auto (Date) and formatted as: Short Date
For more Information I get this error:
Cannot query internal supporting structures for column "EndDate" because they depend on a column, relationship, or measure that is not processed. please refresh or recalculate the model. Maybe this link will help further:
http://office.microsoft.com/en-au/excel-help/upgrade-power-pivot-data-models-to-excel-2013-HA103356104.aspx
Similar Messages
-
I am trying to connect to a Odata Data feed from Excel 2013 Power Pivot
The datasource is in sharepoint site eg: https://sitename/Shared%20Documents/datafeed.atomsvc
getting below error
Error message:
Failed to connect to the server. Reason: The payload kind 'BinaryValue' of the given data feed is not supported.
============================
Call Stack:
============================
at Microsoft.Data.DataFeedClient.DataFeedODataReader.ValidatePayloadKind(ODataPayloadKind payloadKind, ODataMessageReader odataMessageReader)
at Microsoft.Data.DataFeedClient.DataFeedODataReader.InterceptODataException(Action action)
at Microsoft.Data.DataFeedClient.DataFeedODataReader..ctor(IODataResponseMessage responseMessage, Int64 maxReceivedMessageSize)
at Microsoft.Data.DataFeedClient.DataFeedODataReader.CreateReader(IWebResponse webResponse, Int64 maxReceivedMessageSize, Boolean applySlashUpdatingBaseUriResolver)
at Microsoft.Data.DataFeedClient.ODataHelper.GetCollectionsFromServiceDocumentUrl(Uri serviceDocumentUrl, DataFeedConnection connection)
at Microsoft.Data.DataFeedClient.DataFeedConnection.Open()
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.InitializeConnectionObject(String connectionIdentifier)
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open(String& connectionIdentifier)
at Microsoft.AnalysisServices.BackEnd.RelationalDataSourceConnection.Open()
at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl)
Appreciate suggestions/answers
NOTE: The error is showing only while using Excel 2013 powerpivot
its working good with Excel 2010 powerpivotAnita,
Please look into using Power Query to use OData as a source in Power Pivot.
Thanks!
Ed Price, Power BI & SQL Server Customer Program Manager (Blog,
Small Basic,
Wiki Ninjas,
Wiki)
Answer an interesting question?
Create a wiki article about it! -
PowerPivot refresh error with data feed from sharepoint list with empty exception information
Hi,
My Powpivot refreshing error seems to be different from what others already experienced.
Scenario:
Constructed an external data source in the format of Http://<server_IP>/sites/<mysitecollection>/_vti_bin/listdata.svc
selected one table with some of the needed columns in the next step
Create calculate colums etc.
Create pivot tables etc.
All worked well offline
Upload the workbook into PowerPivot Gallery
Reference it from a page through Excel Web Service webpart allowing manual refresh
The refresh always reports failure with the named external data source
I opend the log file in C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS and located the following error messages:
ASPPHOST::ShowEngineError: Out of line object 'DataSource', referring to ID(s) 'f8939b694cae', has been specified but has not been used。The following exception occurred while the managed IDbCommand interface was being used: .
Please note in the above message, NO detailed exception message was given. In other words,
the exception information is empty.
I checked as many things as I possibly could includin the security accounts etc. All seem to be right. But this empty exception got me stuck here.
What could possibly go wrong? Any help will be appreciated.
Thanks.Hello,
Here is a good article regarding Where to get information about data refresh failures for your reference, please see:
http://social.technet.microsoft.com/wiki/contents/articles/3870.troubleshooting-powerpivot-data-refresh.aspx
In addition, which credential option you're configured for the PowerPivot data refresh in SharePoint farm? You can go through the following articles regarding configure the PowerPivot data refresh:
Configure the PowerPivot Unattended Data Refresh Account (PowerPivot for SharePoint):
http://technet.microsoft.com/en-us/library/ff773327.aspx
Configure Stored Credentials for PowerPivot Data Refresh (PowerPivot for SharePoint):
http://technet.microsoft.com/en-us/library/ee210671.aspx
Hope this helps.
Regards,
Elvis Long
TechNet Community Support -
Update to Excel 2013 causing a problem with Sage 500 ERP import feature
I work in an accounting office that relies heavily on importing data from Excel into Sage 500 ERP accounting software. We recently began updating from Office 2007 to Office 2013. Now we are running into a
huge hurdle as we find Excel 2013 no longer supports MDI, and has moved exclusively to SDI. This is a problem for us, and here's why.
Sage 500 has a "Data Porter" command which launches Excel, but opens a blank workbook in Excel. After triggering the Data Porter, we open a previously saved Excel workbook containing our data, select the "Add-Ins"
tab, and click the appropriate button to begin the import. In Excel 2007 this works because the workbook with the data opens in the same "window" as the blank workbook.
In Excel 2013, the workbook containing the data can only be opened in it's own new window which has not established the line of communication with Sage 500's Data Porter, and the import function is not available.
So far the only workaround we have found is to right-click on a tab in the file containing the data, click "Select All Sheets," then "Move or Copy" them to the new blank workbook. The import into Sage 500 is successful when
we do that. However, we need to save the workbook with the updated import information returned by Sage 500, so we must also do a "Save As" for the new workbook, assigning the same file name as the original data file, overwriting
it. This makes what used to be a simple procedure quite cumbersome, and we fear the risk of data loss may be significant.
Is there any way to make this process work the way it does in earlier versions of Excel that support MDI (Multiple Document Interface)?Is there any way to make this process work the way it does in earlier versions of Excel that support MDI (Multiple Document Interface)?
At a glance, it seems the answer might be...No.
Note
There is no MDI compatibility option in Excel 2013.
From: http://msdn.microsoft.com/en-us/library/office/dn251093.aspx
You should contact Sage, to see if they have solutions/suggestions, but I think it will require Sage to re-develop the Dataporter Add-in ?
Don
(Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!) -
Excel 2013 PowerPivot Error - "PowerPivot is unable to load the Data Model"
I'm attempting to use the PowerPivot add-on in Excel. When clicking 'Manage Data Model' or attempting to 'Load to data model,' I receive the error 'We couldn't load the Data Model. This may be because the Data Model in this workbook is damaged.',
followed by 'PowerPivot is unable to load the Data Model.' This happens irrespective of data source type. I have Excel 2013 32-bit, PowerPivot 32-bit, running on Windows 7 OS 64-bit. I am not running an SSAS instance on my machine.
Any suggestions?Hi
Have you ever tried to repair your office?
Also we may refer to the following blog :
http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2013/11/12/powerpivot-for-excel-2013-errors-after-october-update-kb-2825655.aspx
This issue seems to be caused by the October 2013 update (KB 2825655) for Excel 2013. Try to remove it or restore the system to an earlier point and check the result.
Regards
Tylor Wang
TechNet Community Support -
Error inserting image file in Excel 2013, it's working with administrator privileges
When I tri to insert image file like .JPG in Excel 2013, I get an import error. It's working fine with administrator privileges.
I check, graphic filter (registry values) and made also an Office repare. But i have still the problem.
My computer: Windows 8.1 64 bits, Office 2013 32 bitsTry to check the grant permission for the Excel property itself.
Try to insert image from other path, e.g. D:\ to check if we still receive the error.
Try to run Excel with safe mode. ("Excel.exe /safe") and perform th insert action without any add-ins interrupt. Thanks.
Tony Chen
TechNet Community Support -
Excel 2013 PowerPivot add-in crashes
Running into a serious problem with little help on solving the issue. Any time I try doing anything with DAX Excel crashes and gives me the following error:
Please HELP!
Error #1
Excel is running into problems with the 'microsoft office powerpivot for excel 2013' add-in.
If this keeps happening, disable this add-in and check for available updates. Do you want to
disable it now?
Error #2
We couldn't load the PowerPivot add-in. First try Office Repair to fix issue. The error below
should help if that doesn't work.
Could not load file or assembly 'Microsoft.Office.Interop.Excel,
Version=15.0.0.0, Culture=Neutral,
PublicKeyToken=71e9bce111e9429c; or one of its dependencies.
The system cannot find the file specified.
Refreshing data is not a problem. Calculated columns and any work with Measures crashes Excel 2013 ProPlus
Things I've tried:
Office Repair; Quick and Online
'Fix It' application; re-install Office 365 ProPlus
Renaming OS.DLL to OS.DLL.Old; Restarting application
Restart computerI tried clean boot, too. That did not seem to fix the issue.
After many failed attempts repairing the issue, I finally figured out something that works.
Start Excel in Safe Mode ( run: excel \safemode)
Alt - F11 (opens VBA editor)
Tools > references
Un-checked the following:
OLE Automation
Microsoft Office 15.0 Object Library
'Save As'
Re-open workbook normal
I've not had the errors reappear. Thoughts are that the workbook was corrupted and the add-in was affected.
google - 'Excelplusaddinsplustroubleshootingplusguide from codeproject dot com ' for link to source -
Excel has stopped working when I try to launch Excel 2013 Powerpivot
Redirected from the Win 7 forum: (http://answers.microsoft.com/en-us/office/forum/office_2013_release-excel/excel-has-stopped-working-when-i-try-to-launch/01460690-abab-495f-ab5f-904f72f88668)
My system is a Windows 7 machine, 64 bit
I previously had Excel 2010 32bit with 32 both Powerpivot installed. However I am currently evaluating 64 bit Excel 2013 with Powerpivot for my company so I uninstalled Excel 2010 and installed an evaluation copy of Excel 2013 64 bit.
However whenever I launch Excel, enable Powerpivot, then click any of the Powerpivot buttons it gives me an error saying "Excel has stopped working".
I took a look in the Windows events logs and found:
Faulting application name: EXCEL.EXE, version: 15.0.4420.1017, time stamp: 0x506741b5
Faulting module name: mscorwks.dll, version: 2.0.50727.5477, time stamp: 0x5265c8ee
Exception code: 0xc0000005
Fault offset: 0x00000000002ba203
Faulting process id: 0x3e8c
Faulting application start time: 0x01cf52a7644eda9d
Faulting application path: C:\Program Files\Microsoft Office\Office15\EXCEL.EXE
Faulting module path: C:\Windows\Microsoft.NET\Framework64\v2.0.50727\mscorwks.dll
Report Id: afa4f824-be9a-11e3-94ac-415645000030
I have tried uninstalling and re-installing as well as doing a Repair on my .net framework, which is the latest version.You can go to check the dll file, what's size of this dll file?
If the file size is 0 byte, you can check the link below:
http://forums.steampowered.com/forums/showthread.php?t=2735528
Also you can go to check the disabled items (File->Options->Add-ins->Disabled items->Go) to see if any dll file was disabled.
In addition, Isn't the latest version of .NET Framework supposed to be 4.0?(Not quite familiar with this)
Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee
the accuracy of this information.
Wind Zhang
TechNet Community Support -
I am trying to create a process to import to import data using a date variable but when I use the date to get the data from SQL server I am getting a error.
I have tried setting the variable as both a string and date - Select
CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) and map it to the Variable. The date variable is working. It’s correct in the Watch and I am able to use the variable to get data from an Open Link database (row_date = ?)
in the OLE DB Source query. I get a "Invalid character value for cast specification"
error when doing the same thing to get data from an SQL Server OLE DB Source
where the date field is DateTime (row_date = ?). I have tried making the variable as a date and string but get the same error regardless. To make it work, I have to duplicate the date
calculation in the query - HAVING (row_date = CONVERT(varchar(10), DATEADD(day, -1, GETDATE()), 101) ) which works fine.
HAVING (row_date = ?) gives the error with the Parameter mapped to the variable.
Any suggestions as to how to make this work correctly?May I suggest to use style 111 instead of 101?
From experience, yyyy/mm/dd date format will work most of the time for date conversion and
It's due to different date format from mm/dd/yyyy to the system date format that SQL Server is using.
Hope this helps.
~ J. -
Report data binding error with date values
I have CF7.02 with a Microsoft Visual FoxPro 9.0 SP1 Database
that I connect to using ODBC (FoxPro Driver 6.01.8630.01). I send
my sql results to a CF Report Builder 7.02 PDF report and it works
fine. If I dump the date values before I change them, they look
like the following: {ts '2004-12-20 00:00:00'} . However I have
tried a number of ways of manipulating the date before sending it
to the report, but I continue to get errors. I don't care what
format they go to the report in, since the report reformats them
anyway. I checked to make sure that none of the dates were null.
For example <cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDateTime(#ldCFPrcInputDate#) /> yields values in the
{ts '2004-12-20 00:00:00'} format when I dump the query results to
screen. Where:
ldCFPrcInputDate = 12/20/2004
CreateODBCDateTime(ldCFPrcInputDate) = {ts '2004-12-20
00:00:00'}
ReportQuery.PrcInputDate[lcCurRow] = {ts '2004-12-20
00:00:00'}
I get the error:
Report data binding error Unable to get value for field
'prcinputdate' of class 'java.util.Date'.
coldfusion.runtime.OleDateTime -> Date
Not using the CreateODBCDate function for example <cfset
ReportQuery.PrcInputDate[lcCurRow] = #ldCFPrcInputDate# /> I
get:
Report data binding error Unable to get value for field
'prcinputdate' of class 'java.util.Date'.
java.lang.String -> Date
Here are some of my failed attempts:
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDateTime(#ldCFPrcInputDate#) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
#ldCFPrcInputDate# />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
DateFormat(CreateODBCDate(#ldCFPrcInputDate#),'mm/dd/yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm/dd/yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(DateFormat(#ldCFPrcInputDate#,'mm-dd-yyyy') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
Trim(createODBCDateTime(ldtmpdate)) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate({05-07-2006}) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate('{05-07-2006}') />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(05/07/2006) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate('05/07/2006')/>
<cfset ReportQuery.PrcInputDate[lcCurRow] =
CreateODBCDate(parseDateTime('05/07/2006')) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
parseDateTime(CreateODBCDateTime(05/07/2006)) />
<cfset ReportQuery.PrcInputDate[lcCurRow] =
parseDateTime(CreateODBCDateTime('#ldCFPrcInputDate#')) />
<cfset ReportQuery.PrcInputDate[lcCurRow] = '{05-07-2006}'
/>
<cfset ReportQuery.PrcInputDate[lcCurRow] = '{05/07/2006}'
/>
<cfset ReportQuery.PrcInputDate[lcCurRow] = '05/07/2006'
/>
I also did some googling without success. Any help is
appreciated.You may want to make sure that the column is not included in
the query variable list in your report cfr file.
The newest version of the Report Builder, which may be
installed on the server, no longer tolerates vars appearing in that
list of they are not in the query itselft. -
Excel 2013 not switching cells with cursor keys
Hello
I am currently having trouble with excel 2013 x64
When i use the cursor keys like in earlier versions of excel, instead of navigating through cells, the whole sheet scrolls by that cell in one direction. I am not sure if I have changed the settings or not and any help making it work like older versions
of excel and the 32 bit edeition.
Thank youMaybe you have accidentally pressed the Scroll Lock key (sometimes the key says ScrLk. Most keyboards have a light to indicate that Scroll Lock is on. Pressing the key again turns it off.
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
While installing the power query add in Microsoft Excel 2013 through this error?
Hi frnz,
while i installing the power query add in excel 2013 i will get the follow error.pls let me knw the reason ,
Currently my operating system is windows 7 64 bit os service pack 1
i am the error msg which am getting .
Microsoft powerquery for excel(x64) requires the 64bit version of microsoft excel 2010 sp1 or microsoft excel 2013
plase first install the 64 bit version of microsft excel 2010 sp1 or microsoft excel 2013If you are running 32-bit Office, then you must install the 32-bit version of Power Query even if you are running 64-bit Windows.
-
Error with data source creation
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
I have already created oraclePool with the following properties:
Name : oraclePool
URL : jdbc:weblogic:oracle
Driver: weblogic.jdbc.oci.Driver
Properties:
user=system
server=myserver
In weblogic-ejb-jar.xml file:
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
In ejb-jar.xml file:
<resource-ref>
<res-ref-name>jdbc/GangsterDataSource</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
Do I need to make changes in my Entity Bean files? I have made a datasource called
GangsterDB. I do not know the reason for this error. Please do let me know.
Error during Data Source creation: weblogic.common.ResourceException: DataSource
(jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
(oraclePool)
Thank you
Ronak ParekhI am still getting the same error:
Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
that the DataSource has been deployed
successfully and that the JNDI name in your EJB Deployment descriptor is correct.
In my console, I have created a connection pool 'oraclePool' and 3 datasource
'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
'jdbc.JobDB'. I have also specified the target server and there seems to be no
error. I have checked 'Monitor All Connection
Pools' and oraclePool is running. I still do not understand the problem that I
am getting and have no clue how to solve it.
Thank you
Ronak Parekh
My weblogic-ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-ejb-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>GangsterEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.GangsterDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.GangsterDB</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>OrganizationEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.OrganizationDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
</weblogic-enterprise-bean>
<weblogic-enterprise-bean>
<ejb-name>JobEJB</ejb-name>
<entity-descriptor>
<persistence>
<persistence-type>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
<type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
</persistence-type>
<persistence-use>
<type-identifier>WebLogic_CMP_RDBMS</type-identifier>
<type-version>6.0</type-version>
</persistence-use>
</persistence>
</entity-descriptor>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<jndi-name>jdbc.JobDB</jndi-name>
</resource-description>
</reference-descriptor>
<local-jndi-name>jdbc.JobDB</local-jndi-name>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
My ejb-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC
"-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<display-name>Business Component CMP 2.0</display-name>
<enterprise-beans>
<entity>
<display-name>Gangster Entity Bean</display-name>
<ejb-name>GangsterEJB</ejb-name>
<local-home>com.sempire.builder.business_component.GangsterHome</local-home>
<local>com.sempire.builder.business_component.Gangster</local>
<ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>GangsterEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>nickname</field-name></cmp-field>
<cmp-field><field-name>badness</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Organization Entity Bean</display-name>
<ejb-name>OrganizationEJB</ejb-name>
<local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
<local>com.sempire.builder.business_component.Organization</local>
<ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>OrganizationEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>description</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
</ejb-ql>
</query>
</entity>
<entity>
<display-name>Job Entity Bean</display-name>
<ejb-name>JobEJB</ejb-name>
<local-home>com.sempire.builder.business_component.JobHome</local-home>
<local>com.sempire.builder.business_component.Job</local>
<ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>JobEJB</abstract-schema-name>
<cmp-field><field-name>iD</field-name></cmp-field>
<cmp-field><field-name>name</field-name></cmp-field>
<cmp-field><field-name>score</field-name></cmp-field>
<cmp-field><field-name>setupCost</field-name></cmp-field>
<primkey-field>iD</primkey-field>
<resource-ref>
<res-ref-name>jdbc/oraclePool</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
<ejb-ql>
<![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
</ejb-ql>
</query>
</entity>
</enterprise-beans>
<relationships>
<ejb-relation>
<ejb-relation-name>organization-memberGangsters</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>memberGangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<cascade-delete/>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>organization</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>gangsters-jobs</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>jobs</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>JobEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>gangsters</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
<ejb-relation>
<ejb-relation-name>organization-theBoss</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>OrganizationEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>theBoss</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>GangsterEJB</ejb-name>
</relationship-role-source>
</ejb-relationship-role>
</ejb-relation>
</relationships>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>GangsterEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>OrganizationEJB</ejb-name>
<method-name>*</method-name>
</method>
<method>
<ejb-name>JobEJB</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
My weblogic-cmp-rdbms-jar.xml file is:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE weblogic-rdbms-jar PUBLIC
'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
<weblogic-rdbms-jar>
<weblogic-rdbms-bean>
<ejb-name>GangsterEJB</ejb-name>
<data-source-name>GangsterDB</data-source-name>
<table-name>GANGSTER</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>nickname</cmp-field>
<dbms-column>NICKNAME</dbms-column>
</field-map>
<field-map>
<cmp-field>badness</cmp-field>
<dbms-column>BADNESS</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>OrganizationEJB</ejb-name>
<data-source-name>OrganizationDB</data-source-name>
<table-name>ORGANIZATION</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>description</cmp-field>
<dbms-column>DESCRIPTION</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-bean>
<ejb-name>JobEJB</ejb-name>
<data-source-name>JobDB</data-source-name>
<table-name>JOB</table-name>
<field-map>
<cmp-field>iD</cmp-field>
<dbms-column>ID</dbms-column>
</field-map>
<field-map>
<cmp-field>name</cmp-field>
<dbms-column>NAME</dbms-column>
</field-map>
<field-map>
<cmp-field>score</cmp-field>
<dbms-column>SCORE</dbms-column>
</field-map>
<field-map>
<cmp-field>setupCost</cmp-field>
<dbms-column>SETUPCOST</dbms-column>
</field-map>
<weblogic-query>
<query-method>
<method-name>findAll</method-name>
<method-params></method-params>
</query-method>
</weblogic-query>
</weblogic-rdbms-bean>
<weblogic-rdbms-relation>
<relation-name>organization-memberGangsters</relation-name>
<weblogic-relationship-role>
<relationship-role-name>memberGangsters---organization</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
<relation-name>gangsters-jobs</relation-name>
<table-name>JOBS</table-name>
<weblogic-relationship-role>
<relationship-role-name>gangsters---jobs</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
<weblogic-relationship-role>
<relationship-role-name>jobs---gangsters</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
<weblogic-rdbms-relation>
<relation-name>organization-theBoss</relation-name>
<weblogic-relationship-role>
<relationship-role-name>organization---theBoss</relationship-role-name>
<column-map>
<foreign-key-column>iD</foreign-key-column>
<key-column>ID</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
</weblogic-rdbms-jar> -
Hello Gurus,
I was trying to load data ffrom ODS to a Cube using DTP when I got the following error:
Exceptions in Substep: End Routine - RSBK231
The database returned a value containing an error
Do you know what this error message means. It refers to a end routine and I had no syntaxt errors with the endroutine. It also worked fine with previous data loads.
Any help in this regards is appreciated.
Thanks
RishiHi Rishi,
There might be some syntactical error in your end routine e.g division by a zero. This is just an example. Try running the DTP in Debug mode (you will get the option under execute tab of DTP) and see what the end routine code is doing. There might be some exception which you need to take care of.
Thanks..
Shambhu -
Change connection string in MS Excel 2013 powerpivot
I need to update connection strings of multiple files in Bulk using c# . But , Its working for MS Excel 2010 and not for Excel 2013.
Code snippet :
Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application();
Microsoft.Office.Interop.Excel.Workbook ppWorkbook = (Microsoft.Office.Interop.Excel.Workbook)xlApp.Workbooks.Open(fileNameBox.Text);
Microsoft.Office.Interop.Excel.Connections connections = ppWorkbook.Connections;
string newConnectionString = "Connection String";
try
foreach (Microsoft.Office.Interop.Excel.WorkbookConnection connection in connections)
connection.OLEDBConnection.Connection = newConnectionString;
catch (Exception ex)
It occurs while assigning the connection string to OLEDBConnection. Need solution for MS Excel 2013 c#.Hello,
this links contains all connection string about Excel:
https://www.connectionstrings.com/excel/
Maybe you are looking for
-
Microsoft word notebook layout Saving Problems
Hi I'm having problems with my microsoft word where in notebook layout it won't allow me to save when the ending is docx, which is the usual saving ending. It allows me to save publisher and normal blank word documents, however not the notebook layou
-
Copy Text from Order to Invoice
Hi All, We are trying to copy the line text from the order line item to the invoice. But we are facing a problem that the header text is getting copied to the invoice correctly but the line text is not copied in to the invoice. The data is not gettin
-
First PKGBUILD - PyMbs - A Python tool for modelling multibody systems
I've tried to make a PKGBUILD for PyMbs (bitbucket.org/pymbs/pymbs), a tool for modelling multibody systems. My try can be seen at this Github gist: https://gist.github.com/Psirus/00d3e873c22e5ee6d8e7, copied here: # Maintainer: Christoph Pohl <chris
-
Dowloading Many Podcasts at once
Is there way of seleceting many podcasts and using the get command for all of them at once? iPod Windows XP
-
Why won't my tabs close when I close a window?
I click the "X" in the top corner to close out the window. When I open Firefox after, the tabs from the previous window reopen. Before, if I closed the window the tabs would close too unless there was some sort of issue. There doesn't appear to be an