Insert - select error
I created a table like this...emp_id is primary key.
CREATE TABLE [dbo].[employee] (
[emp_id] [numeric](18, 0) NOT NULL ,
[emp_name] [varchar] (8) NULL ,
[emp_address] [varchar] (128) NULL ,
) ON [PRIMARY]
GO
when i try to execute this sql....i get an error.
insert employee (emp_id,emp_name,emp_address)
select distinct emp_id,emp_name,emp_address
from external_table
where emp_id is not null
order by emp_id
Error is...
Server: Msg 2627, Level 14, State 1, Line 1
Violation of PRIMARY KEY constraint 'PK_employee'. Cannot
insert duplicate key in object 'employee'.
The statement has been terminated.
why i get this error?. I checked data...there is no duplicate
data.
quote:
Originally posted by:
Javagene
i tried to use Dan's sql.
insert into employee
(emp_id,emp_name,emp_address)
select emp_id, max(emp_name), max(emp_address)
from external_table
where emp_id is not null
group by emp_id
i got 6 fileds....so i need max for all those fields for
working this query?.
Yes. That might also merge fields from different records.
Which may not produce the results you'd expect.
Another option. If your external table doesn't have a unique
key, you can create one by inserting the records into a temp table
with an identity column.
CREATE TABLE #TempExternalTable (
TheUniqueKey int identity,
[emp_id] [numeric](18, 0) NOT NULL ,
[emp_name] [varchar] (8) NULL ,
[emp_address] [varchar] (128) NULL ,
GO
Then use
insert employee (emp_id,emp_name,emp_address)
Select e.emp_id, e.emp_name, e.emp_address
from #TempExternalTable e
inner join (
Select emp_id, max(TheUniqueKey) AS MaxUniqueKey
from #TempExternalTable
group by emp_id
as t on t.MaxUniqueKey = e.TheUniquekey
Edit - table name correction
Similar Messages
-
Error when included Order in Insert Select
Dear oracle guru's
I am working with Oracle 10g both forms and database . in one of my forms i try to insert values in a table from other table
the code is
insert into sstab(paramnam) select CP.Parameter_Object.Parameter_Name
from Customer_Parameters cp
order by cp_display_order;
earlier there was no order but to enhance further i added the order by command to the existing Insert-Select. But this threw an error while compiling the module itself .
Encounterd the symbol ORDER when expecting one of the ,;...
Kindly guide me in this regardd
with warm regards
ssrHi,
All DDL operations will automatically commit all the pending transaction.
But in the care of FORMS_DDL, if you are running an insert or update statement, then the pending transactions won't commit. For that you have to pass a DDL statement through FORMS_DDL.
If I am wrong, then please correct me.
Regards,
Manu.
Edited by: Manu. on Jan 7, 2010 5:57 PM -
Issue with trigger, multi-table insert and error logging
I find that if I try to perform a multi-table insert with error logging on a table that has a trigger, then some constraint violations result in an exception being raised as well as logged:
<pre>
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SQL> create table t1 (id integer primary key);
Table created.
SQL> create table t2 (id integer primary key, t1_id integer,
2 constraint t2_t1_fk foreign key (t1_id) references t1);
Table created.
SQL> exec dbms_errlog.create_error_log ('T2');
PL/SQL procedure successfully completed.
SQL> insert all
2 into t2 (id, t1_id)
3 values (x, y)
4 log errors into err$_t2 reject limit unlimited
5 select 1 x, 2 y from dual;
0 rows created.
SQL> create or replace trigger t2_trg
2 before insert or update on t2
3 for each row
4 begin
5 null;
6 end;
7 /
Trigger created.
SQL> insert all
2 into t2 (id, t1_id)
3 values (x, y)
4 log errors into err$_t2 reject limit unlimited
5 select 1 x, 2 y from dual;
insert all
ERROR at line 1:
ORA-02291: integrity constraint (EOR.T2_T1_FK) violated - parent key not found
</code>
This doesn't appear to be a documented restriction. Does anyone know if it is a bug?Tony Andrews wrote:
This doesn't appear to be a documented restriction. Does anyone know if it is a bug?Check The Execution Model for Triggers and Integrity Constraint Checking.
SY. -
No data inserted in error table
hi,
I developed an ODI interface that inserts data from one table into other table , (both tables are in the same schema of oracle database.)
But on sending faulty data ,
I can’t find any records in error table (E$_ , SNP_CHK_TBL)
I tried these knowledge modules Combination
CKM SQL - IKM Oracle Incremental Update
CKM Oracle –IKM SQL Control Append
Data is inserted in Flow table … but PK Errors records are not inserted in error table.
query of PK Errors in Operator:
insert into ODI.E_EMP2
ROW_ID,
ERR_TYPE,
ERR_MESS,
ORIGIN,
CHECK_DATE,
CONS_NAME,
CONS_TYPE,
ENO,
ENAME
select distinct
TRG.rowid,
'F',
'The primary key EMP2_PK is not unique.',
'(7010)ERROR_CHK.EMP1_TO_EMP2',
sysdate,
'EMP2_PK',
'PK',
TRG.ENO,
TRG.ENAME
from ODI.I_EMP2 TRG,
ODI.I_EMP2 TRG2
where TRG2.ENO = TRG.ENO and
TRG2.rowid <> TRG.rowid
Do I need to modify CKM and IKM.... ?
Please help....Hi, joping to help.
try using IKM SQL CONTROL APPEND.
on Control tab in the second tab you have to see the list of the check. Are they set to "yes"?
if not go to Model and add the costrants
Regards
DecaXD -
Hi,
I am new to ODI. I got 'insert PK errors' while executing my validate scenario. This scenario is to do the validation for interface table ZCA_IMP_SALES_ACCOUNTS which has primary key 'INTERFACE_ROW_ID'. The targe code is
update FUSION.ZCA_IMP_SALES_ACCOUNTS TRG
set TRG.object_status = 'COLLECTION_ERROR',
TRG.collection_status = 'ZCA_IMP_SALES_ACCOUNTS_PK'
where (TRG.INTERFACE_ROW_ID) = (
select (TRG2.INTERFACE_ROW_ID)
from FUSION.ZCA_IMP_SALES_ACCOUNTS TRG2
where TRG2.rowid <> TRG.rowid )
and TRG.request_id = <@=#IC_CN_IMPORT.N_REQUEST_ID@>
The error message is
java.lang.Exception: BeanShell script error: Sourced file: inline evaluation of: ``out.print("update ODI_WORK.ZCA_IMP_SALES_ACCOUNTS TRG set TRG.object_status = . . . '' Token Parsing Error: Lexical error at line 2, column 12. Encountered: "I" (73), after : "#": <at unknown location>
BSF info: insert PK errors at line: 0 column: columnNo
at com.sunopsis.dwg.codeinterpretor.SnpCodeInterpretor.transform(SnpCodeInterpretor.java:635)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.codeInterpretation(SnpSessTaskSql.java:410)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execStdOrders(SnpSessTaskSql.java:1716)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java:2698)
at com.sunopsis.dwg.dbobj.SnpSessTaskSqlC.treatTaskTrt(SnpSessTaskSqlC.java:71)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2417)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:740)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:2059)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$1.doAction(StartSessRequestProcessor.java:263)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:226)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:191)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:181)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:708)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:129)
at oracle.odi.runtime.agent.processor.task.AgentTask.executeInAuthentication(AgentTask.java:104)
at oracle.odi.runtime.agent.support.BuiltInAgentTaskExecutor$1.run(BuiltInAgentTaskExecutor.java:26)
at java.lang.Thread.run(Thread.java:619)
I am not sure how to debug this error. Can someone please help me out?
Thanks,
DonMayHi,
Trying to help....
Which KM you are using ?
In which step its failing ?
What is your Primary Key ? and can you please tell the source and target column mappings and conditions.
Are you missing some thing in this condition ?
select (TRG2.INTERFACE_ROW_ID) from FUSION.ZCA_IMP_SALES_ACCOUNTS TRG2
where TRG2.rowid TRG.rowid )
I mean equal condition in where clause (where TRG2.rowid = TRG.rowid )
Regards,
Rathish A M
Edited by: Rathish on Dec 4, 2009 1:13 PM -
UPPER Indexes cause select ERROR!
I downloaded Oracle 10g and installed it on a windows 2003 server. When I created UPPER indexes on a table, and the table has many rows, SELECT statement failed.
for example:
DROP TABLE TestTab;
CREATE TABLE TestTab(
id NUMBER(9) DEFAULT 1 NULL,
name VARCHAR2(32) NULL,
address VARCHAR2(64) NULL,
PRIMARY KEY (id)
DROP INDEX TestTab_01;
CREATE INDEX TestTab_01 ON TestTab(UPPER(name));
DROP INDEX TestTab_02;
CREATE INDEX TestTab_02 ON TestTab(UPPER(address));
create or replace procedure ADDDATA
IS
lCount NUMBER;
BEGIN
lCount := 1;
LOOP
INSERT INTO TESTTAB VALUES(lCount, TO_CHAR(lCount, '00000'), TO_CHAR(lCount, '00000'));
lCount := lCount + 1;
IF lCount >= 80000 THEN
EXIT;
END IF;
END LOOP;
COMMIT;
EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
RAISE;
END;
EXEC ADDDATA;
SELECT COUNT(*) FROM TestTab;
SELECT id FROM TestTab WHERE (UPPER(name) = ' 00100' OR UPPER(name) = ' 00101' OR UPPER(name) = ' 00102'
OR UPPER(address) = ' 00105' OR UPPER(address) = ' 00106') ORDER BY id;
ID
100
101
102
SELECT id FROM TestTab WHERE (UPPER(address) = ' 00105' OR UPPER(address) = ' 00106' OR UPPER(name) = ' 00100' OR UPPER(name) = ' 00101' OR UPPER(name) = ' 00102') ORDER BY id;
ID
105
106
It looks like that the first index could be used and the second index couldn't be used and indexes caused select errors.indexes caused select errors. Which errors ? I did exactly what you posted, and these are the results :
TEST@db102 SQL> SELECT id FROM TestTab WHERE (UPPER(name) = ' 00100' OR UPPER(name) = ' 00101' OR UPPER(name) = ' 00102'
OR UPPER(address) = ' 00105' OR UPPER(address) = ' 00106') ORDER BY id; 2
ID
100
101
102
105
106
TEST@db102 SQL> SELECT id FROM TestTab WHERE (UPPER(address) = ' 00105' OR UPPER(address) = ' 00106' OR UPPER(name) = ' 00100'
OR UPPER(name) = ' 00101' OR UPPER(name) = ' 00102') ORDER BY id;
ID
100
101
102
105
106
TEST@db102 SQL> select count(*) from testtab;
COUNT(*)
79999
TEST@db102 SQL> -
Field Selection error for movement type and G/L account
I am currently experiencing a field selection error between movement type 601 and G/L account 7140000. The problem field is 'Segment'. This field is set to required for the G/L account, but it is hidden for the movement type 601. This inconsistency causes an error when posting the goods movement. According to business requirement the field must be required for the G/L account, therefore we must make this field optional for the movement type.
However, in configuration the field segment does not appear for the movement type 601. Therefore it can not be changed to optional.
Does anyone know a workaround other than making this field optional for the G/L account because the business requirement is to have this field as required?????
Many ThanksHi,
On the Error message detail, system will guide you to the Configuration details for Field settings for Movement type & Account, please get in touch with your FI consultant, to make the Field selection for the account similr to that of your movement type, this is a very common issue.
Regards
Chandra Shekhar -
Poor performance and high number of gets on seemingly simple insert/select
Versions & config:
Database : 10.2.0.4.0
Application : Oracle E-Business Suite 11.5.10.2
2 node RAC, IBM AIX 5.3Here's the insert / select which I'm struggling to explain why it's taking 6 seconds, and why it needs to get > 24,000 blocks:
INSERT INTO WF_ITEM_ATTRIBUTE_VALUES ( ITEM_TYPE, ITEM_KEY, NAME, TEXT_VALUE,
NUMBER_VALUE, DATE_VALUE ) SELECT :B1 , :B2 , WIA.NAME, WIA.TEXT_DEFAULT,
WIA.NUMBER_DEFAULT, WIA.DATE_DEFAULT FROM WF_ITEM_ATTRIBUTES WIA WHERE
WIA.ITEM_TYPE = :B1
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 4 0
Execute 2 3.44 6.36 2 24297 198 36
Fetch 0 0.00 0.00 0 0 0 0
total 3 3.44 6.36 2 24297 202 36
Misses in library cache during parse: 1
Misses in library cache during execute: 2Also from the tkprof output, the explain plan and waits - virtually zero waits:
Rows Execution Plan
0 INSERT STATEMENT MODE: ALL_ROWS
0 TABLE ACCESS MODE: ANALYZED (BY INDEX ROWID) OF 'WF_ITEM_ATTRIBUTES' (TABLE)
0 INDEX MODE: ANALYZED (RANGE SCAN) OF 'WF_ITEM_ATTRIBUTES_PK' (INDEX (UNIQUE))
Elapsed times include waiting on following events:
Event waited on Times Max. Wait Total Waited
---------------------------------------- Waited ---------- ------------
library cache lock 12 0.00 0.00
gc current block 2-way 14 0.00 0.00
db file sequential read 2 0.01 0.01
row cache lock 24 0.00 0.01
library cache pin 2 0.00 0.00
rdbms ipc reply 1 0.00 0.00
gc cr block 2-way 4 0.00 0.00
gc current grant busy 1 0.00 0.00
********************************************************************************The statement was executed 2 times. I know from slicing up the trc file that :
exe #1 : elapsed = 0.02s, query = 25, current = 47, rows = 11
exe #2 : elapsed = 6.34s, query = 24272, current = 151, rows = 25
If I run just the select portion of the statement, using bind values from exe #2, I get small number of gets (< 10), and < 0.1 secs elapsed.
If I make the insert into an empty, non-partitioned table, I get :
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.01 0.08 0 137 53 25
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.01 0.08 0 137 53 25and same explain plan - using index range scan on WF_Item_Attributes_PK.
This problem is part of testing of a database upgrade and country go-live. On a 10.2.0.3 test system (non-RAC), the same insert/select - using the real WF_Item_Attributes_Value table takes :
call count cpu elapsed disk query current rows
Parse 1 0.00 0.00 0 0 0 0
Execute 1 0.00 0.10 10 27 136 25
Fetch 0 0.00 0.00 0 0 0 0
total 2 0.00 0.10 10 27 136 25So I'm struggling to understand why the performance on the 10.2.0.4 RAC system is so much worse for this query, and why it's doing so many gets. Suggestions, thoughts, ideas welcomed.
I've verified system level things - CPUs weren't/aren't max'd out, no significant paging/swapping activity, run queue not long. AWR report for the time period shows nothing unusual.
further info on the objects concerned:
query source table :
WF_Item_Attributes_PK : unique index on Item_Type, Name. Index has 144 blocks, non-partitioned
WF_Item_Attributes tbl : non-partitioned, 160 blocks
insert destination table:
WF_Item_Attribute_Values:
range partitioned on Item_Type, and hash sub-partitioned on Item_Key
both executions of the insert hit the partition with the most data : 127,691 blocks total ; 8 sub-partitions with 15,896 to 16,055 blocks per sub-partition.
WF_Item_Attribute_Values_PK : unique index on columns Item_Type, Item_Key, Name. Range/hash partitioned as per table.
Bind values:
exe #1 : Item_Type (:B1) = OEOH, Item_Key (:B2) = 1048671
exe #2 : Item_Type (:B1) = OEOL, Item_Key (:B2) = 4253168
number of rows in WF_Item_Attribute_Values for Item_Type = OEOH : 1132587
number of rows in WF_Item_Attribute_Values for Item_Type = OEOL : 18763670
The non-RAC 10.2.0.3 test system (clone of Production from last night) has higher row counts for these 2.
thanks and regards
Ivanhi Sven,
Thanks for your input.
1) I guess so, but I haven't lifted the lid to delve inside the form as to which one. I don't think it's the cause though, as I got poor performance running the insert statement with my own value (same statement, using my own bind value).
2) In every execution plan I've seen, checked, re-checked, it uses a range scan on the primary key. It is the most efficient I think, but the source table is small in any case - table 160 blocks, PK index 144 blocks. So I think it's the partitioned destination table that's the problem - but we only see this issue on the 10.2.0.4 pre-production (RAC) system. The 10.2.0.3 (RAC) Production system doesn't have it. This is why it's so puzzling to me - the source table read is fast, and does few gets.
3) table storage details below - the Item_Types being used were 'OEOH' (fast execution) and 'OEOL' (slow execution). Both hit partition WF_ITEM49, hence I've only expanded the subpartition info for that one (there are over 600 sub-partitions).
============= From DBA_Part_Tables : Partition Type / Count =============
PARTITI SUBPART PARTITION_COUNT DEF_TABLESPACE_NAME
RANGE HASH 77 APPS_TS_TX_DATA
1 row selected.
============= From DBA_Tab_Partitions : Partition Names / Tablespaces =============
Partition Name TS Name High Value High Val Len
WF_ITEM1 APPS_TS_TX_DATA 'A1' 4
WF_ITEM2 APPS_TS_TX_DATA 'AM' 4
WF_ITEM3 APPS_TS_TX_DATA 'AP' 4
WF_ITEM47 APPS_TS_TX_DATA 'OB' 4
WF_ITEM48 APPS_TS_TX_DATA 'OE' 4
WF_ITEM49 APPS_TS_TX_DATA 'OF' 4
WF_ITEM50 APPS_TS_TX_DATA 'OK' 4
WF_ITEM75 APPS_TS_TX_DATA 'WI' 4
WF_ITEM76 APPS_TS_TX_DATA 'WS' 4
WF_ITEM77 APPS_TS_TX_DATA MAXVALUE 8
77 rows selected.
============= From dba_part_key_columns : Partition Columns =============
NAME OBJEC Column Name COLUMN_POSITION
WF_ITEM_ATTRIBUTE_VALUES TABLE ITEM_TYPE 1
1 row selected.
PPR1 sql> @q_tabsubpart wf_item_attribute_values WF_ITEM49
============= From DBA_Tab_SubPartitions : SubPartition Names / Tablespaces =============
Partition Name SUBPARTITION_NAME TS Name High Value High Val Len
WF_ITEM49 SYS_SUBP3326 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3328 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3332 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3331 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3330 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3329 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3327 APPS_TS_TX_DATA 0
WF_ITEM49 SYS_SUBP3325 APPS_TS_TX_DATA 0
8 rows selected.
============= From dba_part_key_columns : Partition Columns =============
NAME OBJEC Column Name COLUMN_POSITION
WF_ITEM_ATTRIBUTE_VALUES TABLE ITEM_KEY 1
1 row selected.
from DBA_Segments - just for partition WF_ITEM49 :
Segment Name TSname Partition Name Segment Type BLOCKS Mbytes EXTENTS Next Ext(Mb)
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3332 TblSubPart 16096 125.75 1006 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3331 TblSubPart 16160 126.25 1010 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3330 TblSubPart 16160 126.25 1010 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3329 TblSubPart 16112 125.875 1007 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3328 TblSubPart 16096 125.75 1006 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3327 TblSubPart 16224 126.75 1014 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3326 TblSubPart 16208 126.625 1013 .125
WF_ITEM_ATTRIBUTE_VALUES @TX_DATA SYS_SUBP3325 TblSubPart 16128 126 1008 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3332 IdxSubPart 59424 464.25 3714 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3331 IdxSubPart 59296 463.25 3706 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3330 IdxSubPart 59520 465 3720 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3329 IdxSubPart 59104 461.75 3694 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3328 IdxSubPart 59456 464.5 3716 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3327 IdxSubPart 60016 468.875 3751 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3326 IdxSubPart 59616 465.75 3726 .125
WF_ITEM_ATTRIBUTE_VALUES_PK @TX_IDX SYS_SUBP3325 IdxSubPart 59376 463.875 3711 .125
sum 4726.5
[the @ in the TS Name is my shortcode, as Apps stupidly prefixes every ts with "APPS_TS_"]
The Tablespaces used for all subpartitions are UNIFORM extent mgmt, AUTO segment_space_management ; LOCAL extent mgmt.regards
Ivan -
Cannot insert object error using Power View in Excel 2013
I created a short table in Excel 2013, positioned the cursor in the table and clicked Inset/Power View Report. I get a status window saying Excel is opening a Power View sheet but then I get a Power View error: Cannot Insert Object. I am able to insert new
tabs in the workbook. When I try the insert again, I just get the Power View error. I looked at other threads with similar issues and did the following:
Made the Formula bar visible - no change
Tried to repair Office 2013 but that option is not available when I right click on the program in the Control Panel
De-installed Silverlight - Tried to insert Power View Report. A Power View tab was created with the Power View picture and Power View ribbon. Got the message to install Silverlight and Reload. Installed Silverlight hit Reload and the Power View tab didn't
change. Hit Power View Report and got the Cannot Insert Object error message again.
Any help is appreciated.Hi,
Did you use PowerView first time? I notice you had found a similar thread and tested the solutions.
PowerView is an add-in in Excel2013, We must make sure that you check some option in the trust center and Add-in center.
http://blogs.office.com/b/microsoft-excel/archive/2012/10/04/intro-to-power-view-for-excel-2013.aspx
Location1: Excel Options>Add-in>Solver Add-in enable
Location2: Excel Options> Trust Center> Add-in
Then you said that you couldn’t repair the Excel 2013, please refer to the following link:
http://office.microsoft.com/en-gb/outlook-help/repair-office-programs-HA010357402.aspx
At last, we may test it in clean boot, please refer to the following link:
http://support.microsoft.com/kb/929135
Regards,
George Zhao
TechNet Community Support -
How to insert select columns from one internal table to another
Hi,
How to insert select columns from one internal table to another based on condition as we do from a standart table to internal table.
regards,
SriramHi,
If your question is for copying data from 1 int table to other ;
we can use
APPEND LINES OF it_1 TO it_2.
or if they have different columns then:
loop at it_1 into wa_it1.
move wa_it1-data to wa_it2-d1.
apped wa_it2 to it_2.
clear wa_it2.
endloop.
thnxz -
Smart scan not working with Insert Select statements
We have observed that smart scan is not working with insert select statements but works when select statements are execute alone.
Can you please help us to explain this behavior?There is a specific exadata forum - you would do better to post the question there: Exadata
I can't give you a definitive answer, but it's possible that this is simply a known limitation similar to the way that "Create table as select" won't run the select statement the same way as the basic select if it involves a distributed query.
Regards
Jonathan Lewis -
How to Insert-Select and Updade base table
Hi All,
How is the best way to do this?
I have a table A that has 1million rows.
I need to Insert-Select into table B from a Group by on table A,
and Update all rows in table A that were used into Insert with a flag.
(select a hundred from A and insert 10 thousands into B)
What to do?
1-Update table A with flag before Insert-Select?
2-Insert-Select group by into table B, before Update?
3-Another way?
Thanks in advance,
EdsonEither way. But you may find that updating the source flag first and then using that flag as part of your where clause when extracting rows to put in the destination table is a bit faster.
In any case, you will commit only once after all of the work is done. -
Metadata Load - Invalid tree insertion point error
Does any one know what this error means when you get it trying to load a metadata file? Invalid tree insertion point error
Renaming members...
Scenario
Entity
Account
Custom1
Custom2
Custom3
Custom4
Currency
[ConsolMethods]
No consolidation method section
Currencies...
Currencies OK
Entities...
Error: Invalid tree insertion point
Error: Invalid tree insertion point
Load ended at: 12:39:40
Elapsed time: 00:00:18Hi all,
I have a question,
Have you tried to rearrange the hierarchies and move a lower generation parent higher in dimension?
So, for example:
Current tree:
Parent 1
Parent2
Base
New tree:
Parent2
Parent1
Base
Regards,
Thanos -
"no content selected" error on nokia 5310
So i bought a pretty little 5310, and am loving it so far. have hit a few speed bumps when trying to upload with my mac, but have got alomst all of them fixed. almost.
the last time i updated my music library, i noticed my dedicated shortcut keys on the left of the phone no longer work on their own.
when i go through the menu, or use the shortcut key to initially access the music player, the dedicated keys will work for pausing, and skipping tacks. but, say i'm at the 'home' screen of the phone , and just hit the keys on the side. .. they show a 'no content selected' error.
when, in the past, after my first library update, if i hit those keys at ANY time, wether the music player was open or not, it would automatically play my library.
there is probably a ridiculously easy solution to this, but to hell if i can figure it out!
i've read every post on every board i could find, and read the manual six times.
any suggestions?i've fixed the error!
apparently, the phones have TWO music players.
one in the menu shortcut key, and one buried in the 'media' section on the phone.
apparently, to play a playlist from the dedicated keys on the side, you have to use the BURIED music player in the media section.
once in there, select playlist, and choose your playlist. for me, i had to create a new playlist and manually open AND add EVERY song in my library to that new playlist, so that it would play nonstop with the keys.
try that - it may be the same issue for you, as my problem happened after i reformatted the memory card and re-added new music. -
CRM 2007 - Insert an error message
After to check the consistency of field STRUCT.PROBABILITY I need insert an error message in screen (web client). I created the Enhancement Point in to method GET_PROBABILITY in attribute STRUCT.PROBABILITY.
How to insert this error message?
Thanks,
DanielHello Daniel,
I would do this kind of validation in the controller of the view and not the context node by overwriting method DO_FINISH_INPUT. There you would do your check and then add the message by using a message service. Check the methods of the message service for the method which suits you.
lr_mservice = me->view_manager->get_message_service( ).
CALL METHOD lr_mservice->add_bapi_messages
EXPORTING
it_bapi_messages = lt_msg
iv_show_only_once = abap_true.
Best Regards,
Yevgen
Maybe you are looking for
-
Using a variable for STS Planning Sequence
Hi guys, I would like to execute planning sequence when users approves data for Profit Center in STS. The filter used in the planning sequence have a variable for Profit Center. This is not working. Whats the altenative of using a variable Instead of
-
How programmatically "enable" the Page to have Item level security
Some body known how do we programmatically "enable" the Page to have Item level security. - analogous to checking the box in the Page edit mode for "Enable item level security"
-
I can't watch you tube videos on my I pad
I can't watch you tube videos on my iPad(3 gen) & my iPhone 5
-
My menu bar is hidden. how do i restore?
my menu bar is hidden. please tell me how to restore it.
-
Simple one to one mapping to itself, tries to update primary key and throws this error. Also tried without cascade and persist the other object separate but that doesn't work either. I don't understand why it is trying to update primary key column ?.