Row Insert Failed - Column name or number of supplied values does not match
Hi ,
I am trying add a new field to an existing table in MSSQL and access it in portlets,
I added the new field in the table, and making necessary updations to the accessing java code seems to look fine. but when i insert the new rwo, fails with exception listed below.
My code tidbits is as follows.
System.out.println("Column Location of outsidePhysician"+ aResultSet.findColumn("outsidePhysician")); // works and returns 24
if (anIntake.getOutsidePhysician() != null && !(anIntake.getOutsidePhysician().equals("")))
System.out.println("Now Alternate Physician will be added to resultset");
aResultSet.updateString(24, anIntake.getOutsidePhysician());
aResultSet.updateString("outsidePhysician",anIntake.getOutsidePhysician());
System.out.println("Now Alternate Physician already added to resultset"); // also printed
}else{
aResultSet.updateString(24, "new Physician");
aResultSet.updateString("outsidePhysician","new Physician");
//NOT NULL
aResultSet.insertRow(); // fails here
System.out.println("Inserted");
The table has the right field name too, which is proved when i retrieve the fieldno, based on field name. I tried to delete the field and removing these changes work ok..
Any ideas would be of help
Thanks in Advance
Usha
[Microsoft][SQLServer 2000 Driver for JDBC]Row insert failed. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source) at com.microsoft.jdbc.base.BaseImplUpdatableResultSet.executeStatement(Unknown Source) at com.microsoft.jdbc.base.BaseImplUpdatableResultSet.insertRow(Unknown Source) at com.microsoft.jdbc.base.BaseResultSet.insertRow(Unknown Source) at com.microsoft.jdbcx.base.BaseResultSetWrapper.insertRow(Unknown Source) at com.ibm.ws.rsadapter.jdbc.WSJdbcResultSet.insertRow(WSJdbcResultSet.java:2181) ... 14 more Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Insert Error: Column name or number of supplied values does not match table definition. at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source) at com.microsoft.jdbc.base.BaseExce
I haven't ever used that method of inserting rows, but from the example in the API documentation it looks to me like you have to callaResultSet.moveToInsertRow();before you callaResultSet.insertRow();Or are you just "inserting" the physician's name into existing rows of the database? If that's what you are doing then you need to callaResultSet.updateRow();Message was edited by:
DrClap
Similar Messages
-
Insert Error: Column name or number of supplied values does not match table definition.
I'm getting this error when I try to run my stored procedure, I have checked that the inserts matches the select, which seemed to be
the issue for most of the time this question is asked. As far as I can tell they match so something else must be wrong.
Code:-
CREATE proc [dbo].[prc_ITEM_master_Customer]
as
begin
set nocount on
/****** Object: Table [dbo].[tempdb..tmpWebCustomers] Script Date: 03/05/2014 20:49:28 ******/
IF EXISTS (SELECT * FROM tempdb.sys.objects WHERE name = 'tmpWebCustomers' AND type in (N'U'))
DROP TABLE tempdb..tmpWebCustomers
CREATE TABLE tempdb..tmpWebCustomers
[Customer Number] varchar(6),
[Store Number] varchar(6),
[Company Name] varchar(35),
[Email Address] varchar(75),
[Password] varchar(20),
[Contact Name] varchar(20),
[Phone] varchar(20),
[Billing Address] varchar(40),
[Billing City] varchar(30),
[Billing State] varchar(2),
[Billing Zip] varchar(10),
[Billing Country] varchar(15),
[Shipping Address] varchar(40),
[Shipping City] varchar(30),
[Shipping State] varchar(2),
[Shipping Zip] varchar(10),
[Shipping Country] varchar(15),
[Payment Terms] varchar(1),
[Prepaid Freight Amount] decimal(14,4),
[Is Preferred] bit,
[Fuel Surcharge Exempt] bit,
[Sales Tax Addback] bit,
[Broken Box Exempt] bit,
[Canada Freight Exempt] bit,
[Furniture Handling Exempt] bit,
[Create At] datetime,
[Updated At] datetime,
[Sales Rep] varchar(50),
[Sales Rep Phone] varchar(15),
[Sales Rep Email] varchar(50),
[Inside Rep] varchar(50),
[Inside Rep Email] varchar(50),
[Parent] bit
--Insert All Non-National Account Customers--
INSERT INTO tempdb..tmpWebCustomers
SELECT
C.CUSTNO as 'Customer Number',
'' as 'Store Number',
C.COMPANY as 'Company Name',
RTRIM(C.EMAIL) as 'Email Address',
C.MISC6 as 'Password',
C.CONTACT as 'Contact Name',
C.PHONE as 'Phone',
C.ADDRESS1 as 'Billing Address',
C.CITY as 'Billing City',
C.STATE as 'Billing State',
C.ZIP as 'Billing Zip',
C.COUNTRY as 'Billing Country',
'' as 'Shipping Address',
'' as 'Shipping City',
'' as 'Shipping State',
'' as 'Shipping Zip',
'' as 'Shipping Country',
CASE
WHEN C.PTERMS='CREDIT CARD' THEN 1
WHEN C.PTERMS='CREDIT CART ONLY' THEN 1
WHEN C.PNET=0 THEN 0
ELSE 2
END as 'Payment Terms',
C.PPFREIGHT as 'Prepaid Freight Amount',
C.PRPRICE as 'Is Preferred',
C.FSEXEMPT as 'Fuel Surcharge Exempt',
C.STADDBACK as 'Sales Tax Addback',
C.BROKEN as 'Boken Box Exempt',
C.CANADAFREIGHT as 'Canada Freight Exempt',
C.FHEXEMPT as 'Furniture Handling Exempt',
C.ADDDATE as 'Created At',
C.LCKDATE as 'Updated At',
RTRIM(R.SFIRST) +' '+ RTRIM(R.SLAST) as 'Sales Rep',
R.PHONE as 'Sales Rep Phone',
CASE
WHEN R.EMAIL='[email protected]' then ''
ELSE R.EMAIL
END as 'Sales Rep Email',
RTRIM(I.SFIRST) +' '+ RTRIM(I.SLAST) as 'Inside Rep',
I.EMAIL as 'Inside Rep Email',
0
FROM tblARCUST C
INNER JOIN tblICSLSP R ON C.SALESMN=R.SLSMN
LEFT OUTER JOIN tblICSLSP I ON R.INSIDESALES=I.SLSMN
WHERE
C.NATION=0
AND C.ACTIVE=1
AND C.MISC6 !=''
AND C.EMAIL like '%@%'
--Populate Shipping Address Data--
UPDATE tempdb..tmpWebCustomers
SET
[Shipping Address]=RTRIM(S.ADDRESS1),
[Shipping City]=RTRIM(S.CITY),
[Shipping State]=RTRIM(S.STATE),
[Shipping Zip]=RTRIM(S.ZIP),
[Shipping Country]=RTRIM(S.COUNTRY)
from tempdb..tmpWebCustomers W
INNER JOIN tblARCADR S ON W.[Customer Number]=S.CUSTNO
WHERE S.DEFASHIP='Y'
UPDATE tempdb..tmpWebCustomers
SET
[Shipping Address]=[Billing Address],
[Shipping City]=[Billing City],
[Shipping State]=[Billing State],
[Shipping Zip]=[Billing Zip],
[Shipping Country]=[Billing Country]
WHERE
[Shipping Address]=''
--Insert National Account Customers
INSERT INTO tempdb..tmpWebCustomers
SELECT
C.CUSTNO as 'Customer Number',
S.CSHIPNO as 'Store Number',
S.COMPANY as 'Company Name',
RTRIM(S.EMAIL) as 'Email Address',
S.MISC6 as 'Password',
S.CONTACT as 'Contact Name',
S.PHONE as 'Phone',
C.ADDRESS1 as 'Billing Address',
C.CITY as 'Billing City',
C.STATE as 'Billing State',
C.ZIP as 'Billing Zip',
C.COUNTRY as 'Billing Country',
S.ADDRESS1 as 'Shipping Address',
S.CITY as 'Shipping City',
S.STATE as 'Shipping State',
S.ZIP as 'Shipping Zip',
S.COUNTRY as 'Shipping Country',
CASE
WHEN C.PTERMS='CREDIT CARD' THEN 1
WHEN C.PTERMS='CREDIT CART ONLY' THEN 1
WHEN C.PNET=0 THEN 0
ELSE 2
END as 'Payment Terms',
C.PPFREIGHT as 'Prepaid Freight Amount',
C.PRPRICE as 'Is Preferred',
C.FSEXEMPT as 'Fuel Surcharge Exempt',
C.STADDBACK as 'Sales Tax Addback',
C.BROKEN as 'Boken Box Exempt',
C.CANADAFREIGHT as 'Canada Freight Exempt',
C.FHEXEMPT as 'Furniture Handling Exempt',
S.ADDDATE as 'Created At',
S.LCKDATE as 'Updated At',
RTRIM(R.SFIRST) +' '+ RTRIM(R.SLAST) as 'Sales Rep',
R.PHONE as 'Sales Rep Phone',
CASE
WHEN R.EMAIL='[email protected]' then ''
ELSE R.EMAIL
END as 'Sales Rep Email',
RTRIM(I.SFIRST) +' '+ RTRIM(I.SLAST) as 'Inside Rep',
I.EMAIL as 'Inside Rep Email',
0
FROM tblARCUST C
INNER JOIN tblARCADR S ON C.CUSTNO=S.CUSTNO
INNER JOIN tblICSLSP R ON C.SALESMN=R.SLSMN
LEFT OUTER JOIN tblICSLSP I ON R.INSIDESALES=I.SLSMN
WHERE
C.NATION=1
AND C.ACTIVE=1
AND S.MISC6 !=''
AND S.EMAIL LIKE '%@%'
--Insert National Account Parents
INSERT INTO tempdb..tmpWebCustomers
SELECT
C.CUSTNO as 'Customer Number',
'' as 'Store Number',
C.COMPANY as 'Company Name',
RTRIM(C.EMAIL) as 'Email Address',
C.MISC6 as 'Password',
C.CONTACT as 'Contact Name',
C.PHONE as 'Phone',
C.ADDRESS1 as 'Billing Address',
C.CITY as 'Billing City',
C.STATE as 'Billing State',
C.ZIP as 'Billing Zip',
C.COUNTRY as 'Billing Country',
C.ADDRESS1 as 'Shipping Address',
C.CITY as 'Shipping City',
C.STATE as 'Shipping State',
C.ZIP as 'Shipping Zip',
C.COUNTRY as 'Shipping Country',
CASE
WHEN C.PTERMS='CREDIT CARD' THEN 1
WHEN C.PTERMS='CREDIT CART ONLY' THEN 1
WHEN C.PNET=0 THEN 0
ELSE 2
END as 'Payment Terms',
C.PPFREIGHT as 'Prepaid Freight Amount',
C.PRPRICE as 'Is Preferred',
C.FSEXEMPT as 'Fuel Surcharge Exempt',
C.STADDBACK as 'Sales Tax Addback',
C.BROKEN as 'Boken Box Exempt',
C.CANADAFREIGHT as 'Canada Freight Exempt',
C.FHEXEMPT as 'Furniture Handling Exempt',
C.ADDDATE as 'Created At',
C.LCKDATE as 'Updated At',
RTRIM(R.SFIRST) +' '+ RTRIM(R.SLAST) as 'Sales Rep',
R.PHONE as 'Sales Rep Phone',
CASE
WHEN R.EMAIL='[email protected]' then ''
ELSE R.EMAIL
END as 'Sales Rep Email',
RTRIM(I.SFIRST) +' '+ RTRIM(I.SLAST) as 'Inside Rep',
I.EMAIL as 'Inside Rep Email',
1
FROM tblARCUST C
INNER JOIN tblICSLSP R ON C.SALESMN=R.SLSMN
LEFT OUTER JOIN tblICSLSP I ON R.INSIDESALES=I.SLSMN
WHERE
C.NATION=1
AND C.ACTIVE=1
AND C.MISC6 !=''
AND C.EMAIL like '%@%'
end
GOCant spot anything obvious
Are you sure you're running this in a new window? Make sure there's not any other bits of code present in window where you're running this.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Hii ..
need help on this ..
This what I am doing ..
I am using a DATAEXPORT function to export level0 data from my essbase 11.1.2.2 to Microsoft SQL 2008 tables.
So what I did first I exported the level0 data to a flat file using DATAEXPORT and the created the SQL columns by the same in that order only in my SQL table.
When I run it fails with this error:
ODBC Layer Error: [21S01] ==> [[DataDirect][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Column name or number of supplied values does not match table definition.]
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021014)
ODBC Layer Error: Native Error code [213]
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Error(1012085)
Unable to export data to SQL table [dataexp]. Check the Essbase server log and the system console to determine the cause of the problem.
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1021002)
SQL Connection is Freed
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Warning(1080014)
Transaction [ 0x1c50001( 0x51ee7d66.0x80342 ) ] aborted due to status [1012085].
[Tue Jul 23 18:26:07 2013]Local/dataexp/dataexp/admin@Native Directory/1209813312/Info(1012579)
Total Calc Elapsed Time for [test.csc] : [1.44] seconds
=============================================================
I did a simple test on my Sample.basic application then ..
loaded the calc data to it and then used the below script to export to a flat file
//ESS_LOCALE English_UnitedStates.Latin1@Binary
SET DATAEXPORTOPTIONS
DataExportLevel "Level0";
DataExportOverwriteFile ON;
DataExportColFormat OFF;
DataExportDimHeader OFF;
FIX(
"Jan",
"Sales",
"Actual"
/*DATAEXPORT "File" "," "/home/hypadmin/samtest.txt";*/
DATAEXPORT "DSN" "Abhitest" "sample" "sa" "welcome1";
ENDFIX
out put as below:
"Sales"
"100-30","California"
"Jan","Actual",145
Now In sql I created only 3 columns with name Jan/Sales/Actual and when I run this script again with comments removed .. I get the same error as what I have got in my first test case with other application ..
but when I create the columns with same name as what its in export
Sales/100-30/Califirnia/Jan/Actual
It created the new rows successfully ..
So with this I think the error which I am getting with my other application might be because of the same column issue .. but then I have created all the columns by looking at the export file only as I did in sample ..
Any idea would be helpful ..
Thanks
Abhishek
IFirst make sure you add
DataExportRelationalFile ON;
to your set commands it is missing
I alwats like to also add
DataExportColHeader dimensionName;
so I am sure what dimension is getting put into the columns.
Then count the number of dimensions in your outline (exclude attribute dimensions). You need at least that many columns in your table -1 + the number of members you will be returning as columns in the export
Taking your example Sample basic has 5 dimensions
Measures
Years
Scenario
Product
Market
Since you did not specify a dataexportcolheader it took the dense dimension Scenario as the columns. Your fix statement is limiting that to one member. Doing the math
5 -1 + 1 = 5 columns in your table which is what you found works. Suppose you fixed on bothe Actual and budget in scenario then you would need 6 columns 5 -1 +2 -
Column name or number of supplied values does not match table definition
Buongiorno a tutti,
sto cercando di inserire dei record in un database SQL, usando l'oggetto DB tools Insert data. Purtroppo però mi viene segnalato il seguente errore:
"Exception occured in Microsoft OLE DB Provider for SQL Server: Column name or number of supplied values does not match table definition. in NI_Database_API.lvlib:Rec Create - Command.vi->NI_Database_API.lvlib:Cmd Execute.vi->NI_Database_API.lvlibB Tools Insert Data.vi"
Il recod viene generato da Labivew usando l'oggetto concatanate string e i campi sono separati da tab. se esporto su Excel sembra tutto corretto e non ho errori. Le colonne del mio database corrispondono a quelle del record e sono tutte varchar. Vi allego la porzione di codice che genera il record.
Suggerimenti?
Grazie,
Davide
Allegati:
db.png 5 KBPer qualche strano motivo l'editor ha convertuito la sequenza di caratteri ":" e "D" in uno smile
-
/*FIRST TABLE*/
create table Employee1(
empid int,
empname varchar(20),
salary int,
gender varchar(10),
depid int)
insert into Employee1 values(1,'jitendra',500000,'m',100)
/*2 ND TABLE*/
create table audit(
empid int,
auditdata varchar(50))
NOW I AM APPLYING TRIGGER
/* triggers demo for after insert*/
alter trigger tr_employee1_insert
on Employee1 for insert
as begin
declare @id int
select @id=empid from inserted
insert into audit values ('new employee is inserted with id=' + CAST(@id as nvarchar(5))+'is added at'+CAST(GETDATE() as nvarchar(20)))
end
insert into employee1 values (9,'shubham',110000,'m',200)
PLEASE HELP ME TO SOLVEdeclare @id int
select @id=empid from inserted
insert into audit values ('new employee is inserted with id=' + CAST(@id as nvarchar(5))+'is added at'+CAST(GETDATE() as nvarchar(20)))
This code will not properly handle a multi-row insert. I suggest an approach like the example below instead of scalar variables. Also, I suggest you just store the normalized data in the audit table (id, action, timestamp) instead of the
formatted string. That will facilitate subsequent queries and reporting on the data.
ALTER TRIGGER tr_employee1_insert
ON dbo.Employee1 FOR INSERT
AS
INSERT INTO dbo.audit (empid, auditdata)
SELECT
id
, 'new employee is inserted with id=' + CAST(id as nvarchar(5)) + 'is added at ' + CAST(GETDATE() as nvarchar(20))
FROM inserted;
GO
Dan Guzman, SQL Server MVP, http://www.dbdelta.com -
CS4 Upgrade, the serial number you have entered does not match the product you have selected
I have a valid CS2 premium license and have installed CS4 upgrade to a new machine but get the dreaded error "the serial number you have entered does not match the product you have selected" Now I got this error when I originally installed in 2009, back then I could call customer service and get the problem resolved but now when I phone I get an automated message saying phone support is not available for CS4? Does anyone know of a work around or a UK number where I can get this resolved? Any help would be appreciated.
Please see: http://www.hp.com/country/us/en/mda/windows7/upgrade/index_ww.html to select your correct country or region.
Carey Frisch
Microsoft MVP
Windows Expert - Consumer -
Number of mail messages does not match the number in mail activity
This is not a big deal but I have noticed that when mail arrives the Mail Activity window tells me how many incoming messages are being downloaded. This number often bears no relationship to the number that arrive. For example it might read 4 messages are downloading when in reality only 1 arrives. If I look at my webmail all messages are listed. Does anyone know what causes these inconsistencies?
I do not have any answer, but I have the same problem. AND the RSS feeds do not make up the difference; and yesterday I disabled junk mail filtering. And I've made certain that I have no unread mail left over. Yet Mail Activity reported downloading 16 messages, but I only received 8. This happens daily, but the proportion of unaccounted emails varies.
-
Serial number on CD box does not match serial number on actual program
I recently bought LR3 on disk and have installed it. I also installed the upgrade to 3.6, however, I was never prompted to register the product's serial number. Furthermore, when I chcked the product's serial number on the program itself, I found the number on the program is different from the one on the CD box I have. I previously had a different LR3 installed (my friend's) and I thought I uninstalled it on my iMac (OS Lion) before installing my purchased copy of LR3. I even deleted the data files that are hidden. But the serial numbers are still different.
Is this how it should be? Any help would be great, thanks!I previously had a different LR3 installed (my friend's) and I thought I uninstalled it
Sure, but you didn't deactivate, which is a separate thing. Help --> Deactivate or About Lightroom --> Deactivate is probably your friend - wherever those features may be in the Mac version...
Mylenium -
How can join two tables if column values does not match
Hi guys,
i have table
col1 col2
abcd 123
asdf 234
wert 456
sedf 789
and another table with
col1
abcd
aaaa
but i need the output like
abcd 123
abcd 234
abcd 456
abcd 789
aaaa 123
aaaa 234
aaaa 456
aaaa 789You do not tell us about this where condition before, but...
select b.col1, a.col2 from table a, another_table b
where a.col2 in (123, 234, 456, 789)or
select b.col1, a.col2 from table a, another_table b
where a.col1 in ('abcd','asdf','wert','sedf' ) -
SAP R/3 instance does not match the number of columns in schema error
Hi Gurus,
Badly need your help, I am currently on dead end here, I cant' think of any resolution for this error message, I have tried almost everything trying to resolve it. Kindly advise..
error msg:* 1306806 3342 R3S-140113 3/23/2010 9:54:47 AM The number of table columns <0> in an R/3 instance does not match the number of columns <8> in schema. Operation*
source: R/3 database
target: Oracle 10G DBase
Tool: Busines Objects Data Integrator 11.7
Many Thanks!
Randy Reyes
PhilippinesHello,
Maybe the following is applicable in your case:
I don't know exactly what you are doing in the BOBJ system but are you using an RFC read table function?
If yes this may be the problem. RFC ReadTable is OK to do some tests but is not scalable. Plus there is a limitation
with the RFC_READ_TABLE function in terms of number of characters returned (up to 512 characters), you
should use R/3 dataflow instread:
Please find below the link which explains how to use the R/3 Dataflow:
https://www.sdn.sap.com/irj/scn/wiki?path=/display/bobj/readingviaABAP
I hope this helps,
Best Regards,
Des -
Changing rows into different column names
Hi,
i need to tranpose the rows into differnent column names
my sample data :
id , val
1 3
1 4
1 5
into
id , val1, val2 , val3 , val4 ... valn ..
1 3 4 5
from askTom's i see that it's tranpose into a single column using the ref cursor ?
how can i do made it into different column names ?
kindly advise
tks & rdgsFor example, lets say that you want to order your columns from least value to greatest and that you'll never have more than three values per id. Then you can use the analytic function row_number() like this to create a pivot value.
select id, val,
row_number() over (partition by id order by val) as rn
from your_table;And so your pivot query ends up looking like this.
select id,
max(case when rn=1 then val end) AS val1,
max(case when rn=2 then val end) AS val2,
max(case when rn=3 then val end) AS val3
from (
select id, val,
row_number() over (partition by id order by val) as rn
from your_table
group by id;But notice that I started out by making up answers to Justin's questions. You'll have to supply the real answers. -
SQL Query - The number of columns specified in "SQL Query" does not match t
I am creating new UDM for tablespace alert, below is my query,however its failing with error
SQL Query - The number of columns specified in "SQL Query" does not match the value specified in "SQL Query Output"
I selected Metric type is number
SQL Query Format : Two columns
Query:
SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2)
used_pct FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
Any clues why i am getting error.SQL> SELECT d.tablespace_name,round(((a.bytes - NVL(f.bytes,0))*100/a.maxbytes),2) used_pct
2 FROM sys.dba_tablespaces d,(select tablespace_name, sum(bytes) bytes, sum(greatest(maxbytes,bytes)) maxbytes from sys.dba_data_files group by tablespace_name) a,(select tablespace_name, sum(bytes) bytes from sys.dba_free_space group by tablespace_name) f
3 WHERE d.tablespace_name = a.tablespace_name(+) AND d.tablespace_name = f.tablespace_name(+)
4 AND NOT (d.extent_management = 'LOCAL' AND d.contents = 'TEMPORARY');
TABLESPACE_NAME USED_PCT
MGMT_TABLESPACE .82
SYSAUX 1.52
UNDOTBS1 .32
RMAN .02
CORRUPT_TS 10.63
USERS 0
SYSTEM 2.26
MGMT_ECM_DEPOT_TS .04
MGMT_AD4J_TS 0 -
I have a country dimension which is used in 5 cubes. Now I want to change 'key column' property of the country attribute. Whenever I do this, I get an error as "The key columns of the country measure group attribute do not match in either number or
data types to the key columns of the source attribute". I dont understand what this error is about.
Can someone please help? Thanks in advance.
-Regards,
Raj Patilsounds like you need to verify your dimensional usage tab to verify the relationships between dim and fact on the measure group.
Hi Talktorajpatil,
As Jon said, you can verify the relationships between dim and fact on the measure group on the dimensional usage tab. Use this section to define how you "join" your measure groups to your dimensions. There may be a Dimension-Measure Group relationship
that is defined using the wrong attributes and you'll need to select the correct attributes to link the Dimensions to the measure groups. Here are some similar thread for your reference.
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/74203b66-8a71-4681-8e47-8f99cce87b3d/error-on-the-measure-group-which-do-not-match-the-data-type-of-the-key-column?forum=sqlanalysisservices
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/2421058d-fd4a-44b8-8c7c-b0b349bbef2d/measure-group-attribute-key-column-does-not-match-source-attribute?forum=sqlanalysisservices
Hope this helps.
Regards,
Charlie Liao
TechNet Community Support -
I have a problem with the error "LANG_LIST has some locales which does not match with the locale of serial number" recurring.
I am trying to install Acrobat XI Std silently by SCCM.
I've used the Adobe Customisation Wizard to create a mst which include the volume serial number we have with our licence purchases. Note that I am in Australia. I use the command line in SCCM for the install as "msiexec /i "AcroStan.msi" TRANSFORMS="D&B_AcroStd.mst" /qn" which fails silently. If I install on a local machine using an admin command prompt and changing to /qb at the end, I get the aforementioned error.
I have a few things to try and resolve, having searched the adobe forums and other forums for the solution. The mst is only trying to install US English & I have even gone so far as to use the direct editor in the customisation wizard and change some values in the property table to resolve this. In the property table I can confirm that LANG_SEL_DEFAULT = ENU, REGIONAL_LIST = ENU, LANG_LIST = en_US, ProductLanguage = 1033
Is there a way to check the language specified for ym serial number?
BryndonUpdate on a couple of details:
@Sabian,
Thanks for the location, I've downloaded and then when I tried an install of the newly extracted msi (admittedly on the same computer) I got exactly the same issue. Of note though is that running /qf automatically brought up the same serial number and the same incorrectly spelled company name. Installing on another computer (freshly imaged) doesn't have those inputs already present under /qf. Next when I try using the transfrom (a new one) with /qr it gives an error of the serial number, displaying the entire serial.
@Sebastian
I've had a look through yours and it seems our issues could have the same origin. Looks like I may have to call customer support regarding the serial number as Sabian suggested in your thread.
The bit that gets me is when the same serial number is used in a manual install (or /qf) then it installs ok without any errors. -
Hi all,
I'm trying to pratice EJB 3 (which I learnt at school), with JSF and JPA, but i'm really stuck with that error :
Exception [TOPLINK-6094] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.QueryException
Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query.
Query: ReadAllQuery(oracle.datamodel.Employees)
I will try to explain clearly what i'm trying to do :
In fact, i'm following that tutorial :
http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm
But, as i didn't have any oracle database, but had a mysql one on my machine, i decided to use that DB instead of the the oracle DB... So i created a set of example data (to replace the oracle example set) ...so i created the tables EMPLOYEE, and DEPARTMENT... with the correct relations (FK) and PK)
All was ok, i choose my "mysql-connector" (jdbc) instead of the oracle jdbc connector... so i could follow the tutorial.
My problem appears at the step 12 (of "Creating a Master-Detail JavaServer Faces Page"), when i run the file deptEmployees.jspx.
The information of the first departement displays correctly :
departmentID 1
departmentName ... etc
but it can't display the employees belonging to that department !
the error is :
JBO-29000: Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query. Query: ReadAllQuery(oracle.datamodel.Employees)
I think i understand what is the problem... I think that the query in charge of gathering the data of a specific departement need a parameter, but couldn't find it. But i don't know why :-/ I have tried many things and read the topics talking about that error... but it didn't solved the problem. I don't know anymore where to investigate.
I have created a Zip file of my work (it's an EJB/JSF Application.. with jdev 10.1.3.3.0)
(available here : http://dl.free.fr/mQ5esdQuS/EJB_appli.zip)
I would be glad if someone could take few minutes to help me.
Thank you in advance,
Thomas B (student)Hello,
This is a common mistake. Java string comparisons in TopLink are case sensitive by default, and since column names are uppercase when defaulted, TopLink cannot find the "departmentID" column name. In this case, Departments ID column defaults to "DEPARTMENTID" as required by the JPA specification.
Either change Departments id annotation to @Id
@Column(name="departmentID", nullable = false)
private Integer departmentID;or change Employees' ManytoOne annotation to:
@ManyToOne
@JoinColumn(name = "departmentID", referencedColumnName = "DEPARTMENTID")
private Departments departments;Best Regards,
Chris
Maybe you are looking for
-
Make image appear one line at a time
I have an image of a seashell that I created in Photoshop. It's just black and white outline of an image. What I want to do is reveal this seashell image one line at a time. I tried creating motion paths but only part of the image is visible at any g
-
BPM and ADF integration - some questions
Hi, I have a few questions about comunication between BPM 11.1.1.5 and Human Task based Task Flow: 1) What is the best way to pass data (task id, proces id, proces data) from BPM workspace to Human Task Task Flow (and get them as TF params). 2) Where
-
Problem with multimapping in BPM
Hy, I still have a problem with a multimapping in BPM. I add a new message into the input message of the mapping definition. I have now 10 input message mapped to a Idoc. I have the problem that yet the last message is no more treated by the mapping
-
Font shrinks when exported to PDF, again.
Post Author: Ron Quest CA Forum: Exporting I recently ported my application from classical asp to asp.net and upgraded Crystal Reports XI to Release 2 (6/4/2007 files). The KBase c2019491 article resolved the font scaling issue I was having with my
-
Cd insert prints jumbled artist/song. Same as in 11.0 in new 11.02
CD Insert Jumbled Printout. I just downloaded 11.02. I went to printout a cd insert and the artist names and songs are all jumbled. This also happened when 11.0 was first downloaded and 11.01 fixed it.