Parameter IN or OUT to missing index: 1 using the variable date ODI.
HelloI created the variable of data type date as EXTRACT_FROM_TS and also the default value for this.
Now I use this variable as a filter in the source table in the design of the Interface as below...
LAST_UPDATE_DATE > = #p_extract_from_ts where LAST_UPDATE_DATE is the field in the source database with date data type not null not forced...
I have lkm hv used SQL for Oracle...
Above variable refresh and interface scenario running one after another in ODI package...
Variable gets refresh every time successfully, but Interface fails at the step of loading data... error message as below...
ODI-1227: SrcSet0 (load) task fails on the source of ORACLE R12DEV connection.
Caused by: java.sql.SQLException: parameter IN or OUT to missing index: 1
+ oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1890) +.
If we remove the filter LAST_UPDATE_DATE > = #p_extract_from_ts, then it works well...
I do not know why this error pops up on adding filter... Please help on this...
Thank you
Roshan Y
Hello
put a step DECLARATION above all. After that in my opinion, it is better to put a TO_CHAR().
Try putting your variable in text mode and change your filter in
TO_CHAR (LAST_UPDATE_DATE, 'YYYYMMDDHHMI') > = TO_CHAR(#PROJ.) P_EXTRACT_FROM_TS, "YYYYMMDDHHMI")
In your operator if you click on the variable whose value you see?
Tags: Business Intelligence
Similar Questions
-
' Parameter IN or OUT to missing index: 3 'call to a procedure.
Hello
Dear all, I searched the Forum before posting my problem but I can find no useful solution so please help.
I followed this Post and fact http://sameh-nassar.blogspot.com/2010/01/create-plsql-function-and-call-it-from.html
but after that I have little change and turn it into a procedure that is;
create or replace PROCEDURE xim_req
(reqID IN XIM_PURCHASE_REQUISITIONS.req_id%TYPE,
rreqID ON XIM_PURCHASE_REQUISITIONS.req_status%TYPE
)
IS
BEGIN
Select req_status in the rreqID of XIM_PURCHASE_REQUISITIONS
Where req_id = reqID;
END xim_req;
And my java code in Impl class
public String getReqID (int reqID) {}
CallableStatement cs = null;
try {}
CS = getDBTransaction () .createCallableStatement ("start?: = xim_req(?,?);") end; ", 0) ;
cs.setInt (1, reqID);
cs.registerOutParameter (2, Types.VARCHAR);
cs.executeUpdate ();
Return cs.getString (2);
} catch (SQLException e) {}
throw new Aexception.getLocalizedMessage (e);
}
}
and on jsf page behind the button code is
public String cb1_action() {}
BindingContainer links = getBindings();
OperationBinding operationBinding = bindings.getOperationBinding("getReqID");
Object result = operationBinding.execute ();
System.out.println ("result =" + result);
If (! operationBinding.getErrors () .isEmpty ()) {}
Returns a null value.
}
Returns a null value.
}
but after the execution of this page, I get this error "parameter Missing IN or OUT to index: 3" Please help me
Thank youYour call to the procedure
cs=getDBTransaction().createCallableStatement("begin ? := xim_req(?,?); end;",0);
Display three '?' so the statement expects three parameters, but you define only two.
As you call a procedure that does not return a value (other then the parameter defined on) change tocs=getDBTransaction().createCallableStatement("begin xim_req(?,?); end;",0);
Timo
-
"XMLFile parameter is not supported by Oracle APEX, please use the setXMLFile() method.
I created a test web app in apex.oracle.com to try a few things. I created a Flash 2D pie chart in a Web page, and it seems to make very well. But before rendering, I get the error message above, on the region of graph for 1-2 seconds.
Can anynone tell me what means the error message above and why I'm getting this. I do not use a custom XML part. Has not changed the default settings of the chart area.
I could see above the error appearing clearly since the apex.oralce.com is so slow... and graphics region takes awhile to load. Otherwise I could not have noticed. It happens in the IE8 and Google chrome.
Oralce Apex 4.2.5.00.006 (https://apex.oracle.com)
Google Chrome 34.0.01847.116
Internet Explorer 8.0.6001.19518
Can anyone help please. I'll try to become a test application setup dispalying this awhile earlier error message.
I used HTML5 graphics in apex 4.2.0.00.27 in my office in my real application workspace. Most of my users still use IE8. HTML5 graphics all appeared well in their IE8 browser. One fine day, some parameters must be changed by my network administrator or soemthing else could have happened. I have no idea. My webapplication HTML5 graphics disappear IE8 users. IE9 users had no problem. I contacted our IT support staff of any changes to security settings that day, or earlier. Absolutely no help from my frustration. I have to change maps of my application (only about 6 of them) to the Flash graphics to overcome this obstacle. This is the story behind why I use Flash cards. If anyone has experienced a similar problem in IE8 HTML5 graphics please shed any light for me... This problem may be nothing to do with the "XMLFile parameter error message', but I'm not sure.
You strike again BUG introduced with Oracle Application Express 4.2.5
18601802 - ANYCHART XMLFILE WARNING DISPLAYED BEFORE FLASH GRAPHICS RENDERING when Flash graphics that take a long time to make, the user can see the following warning message appears briefly "XMLFile parameter only is not supported by Oracle APEX, please use setXMLFile() method.» The table will be always delivered. Solution: Please advise end-users to ignore the message.
-
Slow index by using the query. Fast with full table Scan.
Salvation;
(Thanks for the links)
Here's my question correctly formatted.
The query:
Works on 32 seconds!SELECT count(1) from ehgeoconstru ec where ec.TYPE='BAR' AND ( ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') ) and deathdate is null and substr(ec.strgfd, 1, length('[CIMText')) <> '[CIMText'
Same query, but with an extra where clause:
This is 400 seconds.SELECT count(1) from ehgeoconstru ec where ec.TYPE='BAR' and ( (ec.contextVersion = 'REALWORLD') --- ADDED HERE AND ( ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') ) ) and deathdate is null and substr(ec.strgfd, 1, length('[CIMText')) <> '[CIMText'
It should return data from a table, given the conditions.
The database version is Oracle9i Release 9.2.0.7.0
These are the parameters relevant for the optimizer:
Here is the output of the PLAN to EXPLAIN for the first quick query:SQL> show parameter optimizer NAME TYPE VALUE ------------------------------------ ----------- ------------------------------ optimizer_dynamic_sampling integer 1 optimizer_features_enable string 9.2.0 optimizer_index_caching integer 99 optimizer_index_cost_adj integer 10 optimizer_max_permutations integer 2000 optimizer_mode string CHOOSE SQL>
Here is the output of the EXPLAIN of PLAN for slow queries:PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- | Id | Operation | Name | Rows | Bytes | Cost | -------------------------------------------------------------------------------- | 0 | SELECT STATEMENT | | | | | | 1 | SORT AGGREGATE | | | | | |* 2 | TABLE ACCESS FULL | EHCONS | | | | -------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- 2 - filter(SUBSTR("EC"."strgfd",1,8)<>'[CIMText' AND "EC"."DEATHDATE" IS NULL AND "EC"."BIRTHDATE"<=TO_DATE('2009-10-06 11:52:12', 'yyyy -mm-dd hh24:mi:ss') AND "EC"."TYPE"='BAR') Note: rule based optimization
The TKPROF output for this slow statement is:PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- | | | 1 | SORT AGGREGATE | | | | | |* 2 | TABLE ACCESS BY INDEX ROWID| ehgeoconstru | | | | |* 3 | INDEX RANGE SCAN | ehgeoconstru_VSN | | | | PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- Predicate Information (identified by operation id): --------------------------------------------------- 2 - filter(SUBSTR("EC"."strgfd",1,8)<>'[CIMText' AND "EC"."DEATHDATE" IS NULL AND "EC"."TYPE"='BAR') PLAN_TABLE_OUTPUT -------------------------------------------------------------------------------- 3 - access("EC"."CONTEXTVERSION"='REALWORLD' AND "EC"."BIRTHDATE"<=TO_DATE('2 009-10-06 11:52:12', 'yyyy-mm-dd hh24:mi:ss')) filter("EC"."BIRTHDATE"<=TO_DATE('2009-10-06 11:52:12', 'yyyy-mm-dd hh24: mi:ss')) Note: rule based optimization
Published by: PauloSMO on November 17, 2009 04:21TKPROF: Release 9.2.0.7.0 - Production on Tue Nov 17 14:46:32 2009 Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved. Trace file: gen_ora_3120.trc Sort options: prsela exeela fchela ******************************************************************************** count = number of times OCI procedure was executed cpu = cpu time in seconds executing elapsed = elapsed time in seconds executing disk = number of physical reads of buffers from disk query = number of buffers gotten for consistent read current = number of buffers gotten in current mode (usually for update) rows = number of rows processed by the fetch or execute call ******************************************************************************** SELECT count(1) from ehgeoconstru ec where ec.TYPE='BAR' and ( (ec.contextVersion = 'REALWORLD') AND ( ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') ) ) and deathdate is null and substr(ec.strgfd, 1, length('[CIMText')) <> '[CIMText' call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 1 0.00 0.00 0 0 0 0 Fetch 2 0.00 538.12 162221 1355323 0 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 4 0.00 538.12 162221 1355323 0 1 Misses in library cache during parse: 0 Optimizer goal: CHOOSE Parsing user id: 153 Rows Row Source Operation ------- --------------------------------------------------- 1 SORT AGGREGATE 27747 TABLE ACCESS BY INDEX ROWID OBJ#(73959) 2134955 INDEX RANGE SCAN OBJ#(73962) (object id 73962) ******************************************************************************** alter session set sql_trace=true call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 0 0.00 0.00 0 0 0 0 Execute 1 0.00 0.02 0 0 0 0 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 1 0.00 0.02 0 0 0 0 Misses in library cache during parse: 0 Misses in library cache during execute: 1 Optimizer goal: CHOOSE Parsing user id: 153 ******************************************************************************** OVERALL TOTALS FOR ALL NON-RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 1 0.00 0.00 0 0 0 0 Execute 2 0.00 0.02 0 0 0 0 Fetch 2 0.00 538.12 162221 1355323 0 1 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 5 0.00 538.15 162221 1355323 0 1 Misses in library cache during parse: 0 Misses in library cache during execute: 1 OVERALL TOTALS FOR ALL RECURSIVE STATEMENTS call count cpu elapsed disk query current rows ------- ------ -------- ---------- ---------- ---------- ---------- ---------- Parse 0 0.00 0.00 0 0 0 0 Execute 0 0.00 0.00 0 0 0 0 Fetch 0 0.00 0.00 0 0 0 0 ------- ------ -------- ---------- ---------- ---------- ---------- ---------- total 0 0.00 0.00 0 0 0 0 Misses in library cache during parse: 0 2 user SQL statements in session. 0 internal SQL statements in session. 2 SQL statements in session. ******************************************************************************** Trace file: gen_ora_3120.trc Trace file compatibility: 9.02.00 Sort options: prsela exeela fchela 2 sessions in tracefile. 2 user SQL statements in trace file. 0 internal SQL statements in trace file. 2 SQL statements in trace file. 2 unique SQL statements in trace file. 94 lines in trace file.
Published by: PauloSMO on November 17, 2009 07:07
Published by: PauloSMO on November 17, 2009 07:38 - title changed to be more correct.Although your optimizer_mode is choosing, it seems that there are no statistics collected on ehgeoconstru. The absence of estimated costs and estimated row counts of each of the stages of the plan and the "Note: optimization based on rules" at the end of these two plans would tend to confirm this.
Optimizer_mode choose means that if statistics are collected then it will use the CBO, but if no statistic is present in any of the tables in the query, the optimizer to rule will be used. The RBO tends to be happy in the best of the index case. I guess the index ehgeoconstru_VSN contextversion as the main column and also includes the date of birth.
You can either gather statistics on the table (if all other tables have statistics) using dbms_stats.gather_table_stats, or suggest the query to use a full scan instead of index. Another solution would be to apply a function or an operation against the contextversion to prevent the use of the index. something like this:
SELECT COUNT(*) FROM ehgeoconstru ec WHERE ec.type='BAR' and ec.contextVersion||'' = 'REALWORLD' ec.birthDate <= TO_DATE('2009-10-06 11:52:12', 'YYYY-MM-DD HH24:MI:SS') and deathdate is null and SUBSTR(ec.strgfd, 1, LENGTH('[CIMText')) <> '[CIMText'
or maybe UPPER (ec.contextVersion) so that would not change the rows returned.
John
-
JPA with Oracle stored procedure: setting IN or OUT to missing index: 1
Hello
I'm going to have bad configure integration between Oracle stored procedure (which returns a cursor) and the Parliamentary Assembly joint.
Stored procedure
CREATE OR REPLACE PROCEDURE GET_ACCOUNTS_TEST
(
l_cursor on sys_refcursor
)
AS
BEGIN
L_cursor OPEN for SELECT * FROM ACCOUNTS_TEST ORDER OF ACCOUNT_NAME.
END GET_ACCOUNTS_TEST;
Oracle bean
@Entity
@NamedNativeQueries({)
@NamedNativeQuery (name = "getAccountsSP", query = "{GET_ACCOUNTS_TEST (?) call} "(, resultClass = Account.class)"
})
@Table (name = "ACCOUNTS_TEST")
Account/public class implements Serializable {}
.....
}
ManagedAccountBean
public Collection < account > getAccountsSP() {}
EntityManager em = jpaResourceBean.getEMF () .createEntityManager ();
try {}
Query query = em.createNamedQuery ("getAccountsSP");
(Collection < account >) return query.getResultList ();
} {Finally
EM. Close();
}
}
Get this error
Exception [EclipseLink-4002] (Eclipse - 2.4.0.v20120608 persistence Services - r11652): org.eclipse.persistence.exceptions.DatabaseException
Inner exception: java.sql.SQLException: ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in the call to 'GET_ACCOUNTS_TEST '.
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Error code: 6550
Call: {call GET_ACCOUNTS_TEST (?)}
link = > [null]
Query: ReadAllQuery (name = "getAccountsSP" referenceClass = sql = "{call GET_ACCOUNTS_TEST (?)}" account)
Any ideas? I can get the code to use a query in the code, but not via. an AP
Thank youThe exception occurs because you said JPA to pass a parameter, but it is not expected the stored procedure. Try to change your definition of stored proc in a cursor output variable that can be used in your JPA query to return the cursor. An example is here:
http://wiki.Eclipse.org/EclipseLink/examples/JPA/StoredProceduresBest regards
Chris -
guys do you miss not having does not have access to cell phones? you are perfectly ok with WiFi only? have you been in situations in which you want to that you had access to cell phone?
I would be acknowledging all responses from users only wifi... I'm looking just at the answers I see here to help me decide something...
-marc
Sprint user (index)
-
records missing when you use the Media link
First CC 2014 is not that two of my RAID drives when I try media link which went offline. This is a new box of menu now, and I can't find any way to see two of my RAID drives.
But first CC 2014 can totally see these readers, because I'm editing with other media on them. And I see these drives in import.
Menu import box is on the left. Link Media is on the right. Missing commands.
Any thoughts? Is this a bug? I have already made a lot of editing and should be able to recreate a link to 197 clips, not import them and start again...
Mac OS 10.7.5
Oh and first CC, the Media Link menu is the same that the import menu, so this is new for 2014...
-jon-
I found the answer. I have one of the 9 RAIDs to partitioned into 2 partitions (4.5 to each) and now the first can see that animate related media.
It seems that it is simply a disk size limitation in the link media function.
-jon-
-
How to get out a window, when you use the main screen?
When I'm in the MBR to 8 window and I opened a program like IE, how to close to return to the main screen. Some other icons are the same thing. I'm looking for a way to close it and return.
I know that I can go to the lower left window, but did close these windows? Hope this makes since. I think that if I click on music it does the same thing. I can't end this one. I can find a break and other things.
Maybe I'm not dragging my slider on the right side?
Thanks, Bruce
Bring your cursor to the top of the standby screen until you see the hand and then click and drag it to the bottom of the screen... Who's going to close an application and take back you to the start screen.
Press windows + C which will open the charms of the right side
Press windows + key X that will open a menu of useful type administration programs
I hope that helps
Brian
-
Decimal places missing in Pivot using the rule of aggregation 'average '.
Hi, I have a PivotTable that has three layers. The first two are made and displayed in the form of values, and the last of them uses the average of the aggregation rule to create an average of the first two. Thus, for example, I have a month a closed case counts, then a count of the number of days to close the cases, and then I want the average number of days to end. The problem is that days on average close appears always to round down - even if I'm showing two decimal places.
Closed the case = 103
Closing days = 1599
Closing days on average = 15.52 (calculated) but the poster 15.0 pivot
Any ideas on how to solve this problem would be appreciated.
Thank you
LarryOBIEE is actuelly the correct calculation of handling. If you divede two whole mathematical standards you can not get a fraction. To work around this, you must first convert duplicate ==> CAST ("days to close" DOUBLE) / CAST ("closed cases" as DOUBLE)
Concerning
John
http://www.obiee101.blogspot.com/ -
java.sql.SQLException: parameter IN or OUT missing
A written request get sum but still gives this exception. Below, I just stack.
If anyone can give a quick fix?
java.sql.SQLException: parameter IN or OUT to missing index: 1
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:199)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:263)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:271)
at oracle.jdbc.driver.OraclePreparedStatement.processCompletedBindRow(OraclePreparedStatement.java:1737)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3430)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1491)
at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:135)
at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1155)
at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:859)
at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:6314)
at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1169)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1338)
at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1256)
at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1250)
at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:6248)
at lk.dialog.ccbs.model.hotline.am.HotlineAMImpl.getUnRealizedChequeAmount(HotlineAMImpl.java:2580)
at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:567)
at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:2134)
at oracle.adf.model.bc4j.DCJboDataControl.invokeMethod(DCJboDataControl.java:3020)
at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:257)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1625)
at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:2141)
at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:730)
at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.executeEvent(PageLifecycleImpl.java:394)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding._execute(FacesCtrlActionBinding.java:252)
at oracle.adfinternal.view.faces.model.binding.FacesCtrlActionBinding.execute(FacesCtrlActionBinding.java:210)
Published by: 859116 on May 16, 2011 01:01If your query contains the variable binding (not used in ViewCriteria), please indicate the variable according to the needs. Optional binding variable makes sense if they are really in-e option. g: when using ViewCriteria
If your user interface is bound to the VO even, then you can set the bind the values of the variables in 2 ways
1. of declaratively using executeWithParams link (shown in you pallete of control data, under opreartions of the VO)
2. with the help of a method activity -
Hi all.
Scripter Hans Haesler has created a script that I'm sure that a lot of people involved in the merger of data would consider a 'must - have' - the ability to individually named indesign files merging data records (create hyperlinks with script, without a large increase in size and treatment of the BP reqs resulting?). It has improved this script by adding the ability to change the name of the files to the results of a particular field in a database (http://www.hilfdirselbst.ch/foren/INDesign_Script_f%FCr_Datenzusammenf%FChrung_P513807.htm l).
I took his script and does four things to him:
- CSV splitter now a tab rather than a comma (to use text files delimited by tabs, rather than the files variables separated by a comma);
- Fixed to be cross-platform CheminDossierCible (wasn't working properly on my mac);
- fixed a catastrophic bug that could use the assignment information from file names text referenced in the open file dialog box, but the merger of another data base that has been already linked in the file, so added myDoc.dataMergeProperties.selectDataSource(csvFile,) to ensure that myDoc uses the same data file that is called by the File.openDialog;
- rather than exporting an InDesign file, this operation exports a PDF preset.
var fileNameColumn = 1;//Insert here the column number in the CSV of the new file name is specified. var csvSeparator = '\t'//Please here the separator of CSV file Enter var destFolderPath = Folder.selectDialog('Destination Folder for PDF files').fsName + '/' ; var csvFile = File.openDialog('select CSV file'); //CSV import var fileNames = new Array(); csvFile.open('r'); while (!csvFile.eof) { fileNames.push(csvFile.readln().split(csvSeparator)[fileNameColumn-1]); } csvFile.close(); var myDoc = app.activeDocument;//prepared document myDoc.dataMergeProperties.selectDataSource(csvFile,); myDoc.dataMergeOptions.removeBlankLines = true; var maxRange = myDoc.dataMergeProperties.dataMergePreferences.recordRange.split('-')[1];//Number of records in the CSV //Loop through the records for(var i = 0; i < maxRange; i++) { with(myDoc.dataMergeProperties.dataMergePreferences) { recordSelection = RecordSelection.ONE_RECORD; recordNumber = i+1; } myDoc.dataMergeProperties.exportFile((destFolderPath + fileNames [i+1] + '.pdf'), "[High Quality Print]", ); }
The best thing - IT WORKS! Well, it does, but something very strange happens. If the database is 99 records or less, the script will be run end until it finishes processing the last record and then this dialog appears:
If the database is 100 records or more, then the script works very well and no warning appears. Despite the files PDF export properly, present a defect is the only thing that keeps me from being happy with the script. It's like having a sports car which turns around when he touches out of ignition, unless its duct more than 100 km and then it not to do so.
For once, I am convinced that the script is written correctly, but I can't work on why this error occurs. Is this a bug in the template script ID, or I missed something? Or is this a bug on my computer only? Is anyone able to attempt to reproduce the fault on their own machine?
Thank you very much
Colin
Never mind colleagues posters, I solved my problem.
From what I can tell, the InDesign is keep in memory the table from the script the first time, it has been run. Not even
fileNames.length = 0;
at the end of the script's force at first.
Way the easiest way is to set a backup statement just before the beginning of the script.
myDoc.save (myFile);
and then, at the end of the script, force the script to close the merge file without saving the changes, but open it back to the top
myDoc.close (SaveOptions.no);
myDoc = app.open (myFile);
I tried
myDoc.revert
but he keeps setting up a dialog box asking "Are you" sure and I don't see anything in
Adobe InDesign CS6 (8,0) object model JS: Table of contents
or
http://www.indesignjs.de/extendscriptAPI/indesign10/
that a property to force a return to actually return without the dialog box.
Regardless, the result is the same – the document close, open and returned to its original state. So far, it seems to work... yay!
-
Pages won't open the files that I've updated 2 days ago missing index.xml extension?
I've updated several documents marketing two days ago. When I saved the files, there was a pop-up notice that they have been saved as a newer version of the file as a result of the most recent update. Today, I went to a few final tweeks before loading the changes on my printer and files will not open. It is said that the error message "missing index.xml file. I just checked and downloaded/installed all the updates available and rebooted my macbook, but the files will still not open. PLEASE HELP ME TO RECOVER MY FILES!
You have two versions of Pages on your Mac, probably the Pages ' 09 and 5.6.1 Pages.
When you have clicked on your Pages ' 09 version previously opened in Pages 5, 6.1 and was converted into a format of Pages 5.6.1.
When you double click on the document today you opened in Pages ' 09, who cannot open the format of Pages 5.6.1.
To open the document in the correct application, right-click on the document and choose. Pages ' 09 has a bottle of blue ink icon, Pages 5 has a generic research paper Orange.
If you want to convert your document to Pages ' 09, because it has over more than 100 features and is much more productive:
Open the document in Pages 5.x > file > export > Pages ' 09
Peter
-
Appeal procedure in another procedure using the Out parameter slider - lesson
Hello
I am new to Oracle development so first I wonder if it is a good place with a simple way of the of on how to create stored procedures? I'm looking for the most part at this stage for a quick read.
Second, currently have hacked and slashed my way into getting one built. It has 3 parameters and an output parameter sys_refcursor. This procedure works.
I want to have another created procedure that will call the above procedure and loop through each row in the setting out and write to a file. Can someone point me to an example of this by any chance?
Thanks for the help.
Hello
e28d78d3-c6c6-4BCE-b14f-0f6bf26fa17c wrote:
Thanks for the reply.
Here's what I have, but I'm getting many errors. When I seem to fix one that I get a new one. Kind of like what it show me all questions vs one question at a time. I never know if I create another error of my attempts at fixing what, in my view, could be the problem. In any case, something to get used to.
When you do any type of programming, take baby steps. Write less code as possible, test what you wrote ' worm and, if it contains errors, correct them and test again.
The PL/SQL compiler tries to show all errors, but often it is impossible to say what is a separate mistake, and which is a consequence of a previous error. For example, the DECLARE statements in your code are perfectly valid PL/SQL statements, but they are the mistakes in the sense that they are not what you think, and you may not use them. PL/SQL does not know that (I don't really know that, either, but I'm willing to guess in this case). The works of compiler on the explanation that you really wanted to say SAID, until what it becomes obvious, maybe several lines later, that something makes no sense, but at this time, there is no way he could say that the undesirable DECLARE was the cause.
So here is where I am stuck currently. What I want should first, run the stored procedure and I think I do as you suggest. Which returns data in the output parameter, which is of type sys_refcursor. I think I would need to loop through each element that cursor and output to the file using the dbms_output you reference and like I did below. This should be it. Sounds simple enough, but it's where some of the basics for me.
For example, by creating the procedure some examples have the name of the procedure and then some "AS", "IS". When use the beginning and the end and when not I need?
There is no difference betwwen
CREATE PROCEDURE... AS and
CREATE PROCEDURE... Use IS the one you prefer. You must always one or the other, however.
PL/SQL is written in blocks. The basic structure of a block is
DECLARE - optional, sometimes involved
...
BEGIN
...
-Optional EXCEPTION; forget it for now
...
END;
Almost all of the PL/SQL code is part of a block. In fact, you could argue that anything not in a block isn't really PL/SQL. (For example, CREATE PROCEDURE is really an SQL, PL/SQL not, it indicates the SQL that some PL/SQL compiler is coming.)
You should always BEGIN and END keywords in a PL/SQL block; None is never optional.
I think I'm doing the for loop correctly but I get an error on the portion of loop-end. It is a part of these simple things that become I think that.
That's what I have:
CREATE OR REPLACE PROCEDURE APPS.boact_report_3
AS
DECLARE v_cur SYS_REFCURSOR;
DECLARE v_file_out UTL_FILE.file_type;
BEGIN
I said earlier, DECLARED may be implied. It's one of those places if there is nothing after CREATE PROCEDURE... IS and before STARTING, it is supposed to be a statement.
You can have as many statements (0, 1, 2 or more) that you want in this section of the statement. The semicolon at the end of each of them is all the separation you need each other; you don't need any keyword as STATED.
Open the v_cur for
bo_report (p_sv_id, p_start_date, p_end_date, out v_cur); -stored procedure that girls v_cur witch is a sys_refcursor parameter. It works
END;
BEGIN
Don't forget, how to call a procedure is
bo_report (x, y, z);
not
bo_report (x, y, z OUT);
The key words are only necessary (and only used) in the declaration of a procedure, not in his appeal. When you create a procedure, you decide if each argument is going to be an argument IN, an OUT argument, or IN OUT argument, and you tell the compiler that you decide. When you call a procedure, you have no choice; each argument is IN, OUT or IN OUT has already been decided, and suffice to say compiling what are the variables (or expressions) that you use to play these predetermined roles.
Dbms_output.put_line ('Date: ');
v_file_out: =.
UTL_FILE.fopen (' / public/scripts/smorau02 ', 'w_act.csv', 'W');
FOR x IN v_cur
LOOP
() UTL_FILE.put_line
v_file_out,
x.cl_num | ','
|| x.wa_id | ','
|| x.Description | ','
|| x.a_date | ','
|| x.a_by | ','
|| x.v_Name | ','
|| x.SITE_NAME | ','
|| x.stage | ','
|| x.in_queue);
END LOOP;
UTL_FILE.fclose (v_file_out);
END;
Thanks again for the help.
You have not to send the code to bo_report, so I can't run the procedure. I do not notice any obvious mistakes immediately superior.
-
Hi all
We have a database with multiple tables using foreign keys. Some of my questions of coldfusion are slow. We use the 11g version.
It's a way to check the missing indexes?
I want to help the best results database, I know it's a broad topic but as new in oracle, I have to start somewhere.
Links or comments will be appreciated.
Concerning
JohnnyYou have PROFESSIONAL secrecy? If Yes, you can ask Oracle to analyze your queries and recommend what indexes should improve performance. You need get the SQL Id for each query you want to analyze.
jbrock@orcl-local> /* get recommendations from SQL Access Advisor */ jbrock@orcl-local> VARIABLE tuning_task VARCHAR2(32) ; jbrock@orcl-local> EXEC :tuning_task := dbms_sqltune.create_tuning_task (sql_id => '&sqlID') ; Enter value for sqlid: 07t63t1k2xw6p jbrock@orcl-local> EXEC dbms_sqltune.execute_tuning_task(task_name => :tuning_task) ; jbrock@orcl-local> COLUMN recommendations FORMAT a160 jbrock@orcl-local> SELECT DBMS_SQLTUNE.report_tuning_task (:tuning_task) AS recommendations FROM DUAL ;
-
Hello
I can be out a really simple place or box, check here, but I created an index for my project (RoboHelp X 5) and the index is genrated with the rest of the project. The glossary is fine, can anyone help?Hello
Well, I managed to sort it out. I use HTML Robo X 5 help. There are certainly elements added to the index.
I had not used the + no symbol, no idea why, think I've been watching this long form, as when I created the glossary, it was automatically added. Anyway your answer prompted me to look in the right place. Thank you very much
Maybe you are looking for
-
Upgrade CPU of my Satellite Pro L300-152
Hello my laptop is a: Toshiba Satellite Pro L300-152Model no. PSLB1E-01R015ENCeleron 560 2.13 GHz Can someone tell me what CPU I can pass safely, I use it in a cool environment and care about a few 100 mhz more of her. Thank you for your support
-
Apple Watch don't pair after the recent software update
I've just updated my software and now my iPhone and watch will not pair. Am I missing something?
-
Satellite P300D - 12L - what means HD 720 p supported?
Hello! I have a Satellite P300D - 12L and I want to know what means "Assumption of the 720 p HD internal". Thanks in advance.
-
split the signal not showing multiple output
I'm dividing the multichannel signal from acquisition of data NOR-6008. When I connect the data to the separation of the vi signal, there is that a single output eventhough I did the dow to give me all the outputs. Please help its urgent.
-
Edit a scanned in wordpad document
I scanned a document and then copy and pasted to wordpad. How can I change the text of my document in wordpad?