Cry 9.5 Filter using a memo field
Post Author: Docmidnite
CA Forum: Crystal Reports
I have a request to filter the report using certain names in the memo field.
the memo field has multiple names in it ie: Mark, John, Steve, Julie, North, East, All
I need to filter the report by one of the names and All
thx Mark
Post Author: ADAMK
CA Forum: Crystal Reports
I found that this had to do with my ODBC driver...
I was using "Oracle ODBC Driver 9.2.0.6.5" when I had this problem on Database #1, but Database #2 was connected via the basic "Microsoft ODBC for Oracle" connection.
I changed Database #1 to the "Microsoft ODBC for Oracle" driver, and now the memo fields are displaying correctly in Crystal XI.
After this discovery, I checked with the support staff and they told me:
"Crystal Reports 8.5 was non-unicode complaint and after Crystal Reports 9 and higher versions the query engine has been re-written completely. Hence there was certain changes taken place.
In addition to that please note that from Oracle 9i the LONG field has been deprecated. Hence, the Oracle ODBC Driver does not work. This is an Oracle ODBC Driver limitation. And it is a known issue.
As you said I request you use either "Microsoft ODBC for Oracle" / "CR Oracle ODBC driver" to over come the issue."
So... Check your ODBC drivers if you're having this issue!
Similar Messages
-
Query filter using a converted CLOB field
Hi,
I need to filter a query by a CLOB field on the database. When I just select the filed, the query runs successfully. But, when I try to filter by this CLOB field, converting it to Date or Char, I got an error message. I detail it step by step below.
Please, can somebody help me to figure out what is happening with this filter?
DB Version: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0
Step 1- The Query works fine
SELECT TO_CHAR( CLOB_FIELD ) FIELD_CLOB_TO_CHAR1,
TO_CHAR(TO_DATE(TO_CHAR( CLOB_FIELD ), 'mm/dd/yyyy', 'NLS_DATE_LANGUAGE=PORTUGUESE'), 'dd/mm/yyyy') FIELD_CLOB_TO_CHAR2,
TO_CHAR(sysdate, 'dd/mm/yyyy', 'NLS_DATE_LANGUAGE=PORTUGUESE') SYSDATE_DATE_TO_CHAR,
TO_DATE(TO_CHAR( CLOB_FIELD ), 'mm/dd/yyyy') FIELD_CLOB_TO_DATE1,
TO_DATE( CLOB_FIELD, 'mm/dd/yyyy') FIELD_CLOB_TO_DATE2
FROM MY_TABLE
FIELD_CLOB_TO_CHAR1: 08/10/2012
FIELD_CLOB_TO_CHAR2: 10/08/2012
SYSDATE_DATE_TO_CHAR: 23/07/2012
FIELD_CLOB_TO_DATE1: 10/08/2012
FIELD_CLOB_TO_DATE2: 10/08/2012
Step 2- Adding one of the filters below. I got the same error message for them:
and TO_DATE( CLOB_FIELD, 'mm/dd/yyyy') = to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy');
and TO_CHAR(TO_DATE(TO_CHAR( CLOB_FIELD ), 'mm/dd/yyyy', 'NLS_DATE_LANGUAGE=PORTUGUESE'), 'dd/mm/yyyy') = to_char(sysdate,'mm/dd/yyyy');
Report Error:
SQL Error: ORA-01858: a non-numeric character was found where a numeric was expected
01858. 00000 - "a non-numeric character was found where a numeric was expected"
*Cause: The input data to be converted using a date format model was
incorrect. The input data did not contain a number where a number was
required by the format model.
*Action: Fix the input data or the date format model to make sure the
elements match in number and type. Then retry the operation.
Regards,user634269 wrote:
Keith, thanks again.
It works fine. I just changed the exception return to show more clearly in which record the problem is. I did:
when others
then
v_returndate := SYSDATE+3000;
But, I still have some doubts and I believe they are related:
1- The dates on CLOB_FIELD are recorded in "mm/dd/yyyy" format. So, when something like 08/09/2011 is found, the things work fine. But, when something like 12/20/2011 is found, I got the problem. I always believed that formatting dates would solve this kind of situation.
2- The function you suggested only converts a varchar parameter into a date value. (simple and clever). I changed the filter from "= sysdate" to "<= sysdate" and got 5 records only. It worked fine. But, considering that the function only applies TO_DATE() on a varchar parameter, why can I do this:
MY_TO_DATE( CLOB_FIELD, 'mm/dd/yyyy') <= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy');
and cannot one of these?
TO_DATE( CLOB_FIELD, 'mm/dd/yyyy') <= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy');
TO_DATE( to_char(CLOB_FIELD), 'mm/dd/yyyy') <= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy')
3- The first function parameter is VARCHAR, but I'm sending the CLOB_FIELD without any conversion. Does Oracle perform an implicit data conversion?
I really would like to understand how Oracle is working with all these things.
Regards.
>Keith, thanks again.
It works fine. I just changed the exception return to show more clearly in which record the problem is. I did:
when others
then
v_returndate := SYSDATE+3000;
But, I still have some doubts and I believe they are related:
1- The dates on CLOB_FIELD are recorded in "mm/dd/yyyy" format. So, when something like 08/09/2011 is found, the things work fine. But, when something like 12/20/2011 is found, I got the problem. I always believed that formatting dates would solve this kind of situation.
You must use the format mask which matches the format of data. Your date data is in the format mm/dd/yyyy and so you need to provide that format mask.
to_date('12/20/2011','mm/dd/yyyy') will cause the data to be correctly converted to a date
2- The function you suggested only converts a varchar parameter into a date value. (simple and clever). I changed the filter from "= sysdate" to "<= sysdate" and got 5 records only. It worked fine. But, considering that the function only applies TO_DATE() on a varchar parameter, why can I do this:
MY_TO_DATE( CLOB_FIELD, 'mm/dd/yyyy') <= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy');
This works because although the implicit conversion fails, my function suppresses any error that is raised using the following exception block
exception
when others
then
null;
and cannot one of these?
TO_DATE( CLOB_FIELD, 'mm/dd/yyyy') <= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy');
TO_DATE( to_char(CLOB_FIELD), 'mm/dd/yyyy') <= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy')
These do not work , because you are using the inbuilt functions which are raising errors.
if you change
when others
then
null; to
when others
then
raise; my function will no longer work. You should read the FAQ on exception handling. When others then null is used to suppress any error that is raised. This is not normally good practice.
3- The first function parameter is VARCHAR, but I'm sending the CLOB_FIELD without any conversion. Does Oracle perform an implicit data conversion?
Yes, oracle will try to do an implicit conversion whenever no explicit conversion is specified. You should always try to use explicit conversions rather than rely on implicit conversions.
>
I really would like to understand how Oracle is working with all these things.
A good start would be to read and understand the frequently asked questions provided by Blueshadow.
This is also a bad construct:
<= to_date(to_char(sysdate,'mm/dd/yyyy'), 'mm/dd/yyyy')
all you need here is sysdate. If you want to remove the time element, you can just use trunc(sysdate) -
How to filter the result by using a Quarter fields
How can i fiter the output by using the quarter field for example I want to display the output for letting date 07060801 and quarter 1(Q1-2007) thanks
SELECT tab.description, tab.itmenum, tab.units, tab.countyname, tab.datelet,'Q'||tab.Quarter,
tab.contid, tab.vendor, tab.vendorname, tab.quantity, tab.EngineersPrice ,
(tab.EngineersPrice*tab.quantity) EngineersTotal, tab.vendorsPrice,
(tab.quantity * tab.vendorsPrice) VendorsTotal
FROM (SELECT INITCAP (i.idescrl || ' ' || e.isupdes) description,
e.isupdes, i.idescrl, SUBSTR (e.eiitem, 1, 4)|| '.'|| SUBSTR (e.eiitem, 5, 9) itmenum,
e.eiitem, func_get_unit_name (iunits) units,
INITCAP (func_get_county_name (p.ccnty1)) countyname,
b.datelet,TO_CHAR(b.datelet, 'Q-YYYY') Quarter, p.contid, d.vendor, l.CALL, g.csecnum, e.iplineno,
SUM (e.iqty) quantity,
(TRIM (d.vendor) || ' : ' || INITCAP (v.vnamel)) vendorname,
(SELECT br.bidprice
FROM bidtabs br
--------------------Select Letting Dates-------------------------------
WHERE br.letting between '&lettingDatePlease' and '&lettingDatePlease2'
AND br.lineflag = 'L'
AND br.iplineno = e.iplineno
AND br.CALL = l.CALL
AND br.vendor = d.vendor) vendorsPrice,
(SELECT DISTINCT pi.price
FROM propitem pi
WHERE pi.contid = p.contid
AND pi.lineflag='L'
AND trim(pi.iplineno) <> ' '
AND trim(pi.iplineno) = trim(e.iplineno)) EngineersPrice
FROM itemlist i,
estitem e,
estcatg g,
propproj x,
proposal p,
letprop l,
bidlet b,
bidders d,
vendor v
WHERE p.contid = x.contid
AND x.pcn = g.pcn
AND e.pcn = g.pcn
AND e.cn = g.cn
AND i.item = e.eiitem
AND i.ispecyr = p.cspecyr
AND e.iplineno <> ' '
AND e.eiitem <> '2550601/01000'
AND e.eiitem <> '2565601/00031'
AND e.eiitem <> '2565601/00033'
AND e.eiitem <> '2402601/01000'
-----Select Item Number----------
AND e.eiitem = '&itemNumberPlease'
AND l.lcontid = p.contid
AND l.letting = b.letting
AND l.letting = d.letting
AND l.CALL = d.CALL
-- AND l.LETSTAT='A'---------------------why 6/22 is not included----------------------------work with this-------------------------
AND d.vendor = v.vendor
------Select Letting Dates--------
AND b.letting between '&lettingDatePlease' and '&lettingDatePlease2'
GROUP BY p.contid,
d.vendor,
g.csecnum,
e.iplineno,
SUBSTR (e.eiitem, 1, 4) || '.' || SUBSTR (e.eiitem, 5, 9),
b.datelet,
l.CALL,
e.eiitem,
(i.idescrl || ' ' || e.isupdes),
func_get_unit_name (iunits),
iunits,
p.ccnty1,
i.idescrl,
e.isupdes,
i.idescrl,
v.vnamel,
e.isupdes) tab
DESCRIPTION ITMENUM UNITS COUNTYNAME DATELET 'Q'||TAB.QUARTER CONTID VENDOR VENDORNAME QUANTITY ENGINEERSPRICE ENGINEERSTOTAL VENDORSPRICE VENDORSTOTAL
Mobilization 2021.501/00010 LUMP SUM Hennepin 3/30/2007 Q1-2007 060048 ALS0010 ALS0010 : Ames / Lunda / Shafer (Jv) 1 11376150 11376150 14357900 14357900
Mobilization 2021.501/00010 LUMP SUM Hennepin 3/30/2007 Q1-2007 060048 MP0001 MP0001 : Mccrossan/Pcl (Jv) 1 11376150 11376150 15600000 15600000
Mobilization 2021.501/00010 LUMP SUM Wright 5/18/2007 Q2-2007 070002 C320 C320 : Central Specialties Inc 1 130459 130459 637860 637860
Mobilization 2021.501/00010 LUMP SUM Wright 5/18/2007 Q2-2007 070002 D420 D420 : Duininck Brothers Inc 1 130459 130459 362000 362000
Mobilization 2021.501/00010 LUMP SUM Wright 5/18/2007 Q2-2007 070002 H151 H151 : Hardrives Inc 1 130459 130459 516000 516000
Mobilization 2021.501/00010 LUMP SUM Wright 5/18/2007 Q2-2007 070002 H438 H438 : Hoffman Construction Company 1 130459 130459 255000 255000
Mobilization 2021.501/00010 LUMP SUM Wright 5/18/2007 Q2-2007 070002 K0037 K0037 : Knife River Corporation - North Central 1 130459 130459 290953.37 290953.37
Mobilization 2021.501/00010 LUMP SUM Wright 5/18/2007 Q2-2007 070002 M0027 M0027 : Midwest Contracting Llc 1 130459 130459 285000 285000Hi gourous,
I am sorry, my question is a little bit more complex. I hope I may repost here, without opening another thread. Thank you for your understanding.
The EQUIPE_ID column of the table refers to a team. This id is returned by a select list named :P60_EQUIPE_ID which select all the EQUIPE_ID available. Then if one choose a team in this select list, the choosen EQUIPE_ID is returned. If nothing is selected in the select list, then a null value is returned.
The AGENT_ID refers to a person. This id is returned by a select list named :P60_AGENT_ID, which returns all the members of the previously selected EQUIPE_ID. If nothing is selected, then a null value is returned.
A team may have several persons belonging to that team.
I would like that if a TEAM is selected, without selecting an agent in the :P60_AGENT_ID select list (returning a null value in this case), then all the people belonging to that theam will be retrieved by the select QUERY of a report.
Then one could refine the query by selecting a person in the :P60_AGENT_ID select list in order to view only the people of that team in the report.
To resume :
IF EQUIPE_ID is NULL -> all the teams and all the persons are displayed in the report.
IF EQUIPE_ID is NOT NULL and :P60_AGENT_ID is NULL -> All the people of that selected team appears on the report
IF EQUIPE_ID is NOT NULL and :P60_AGENT_ID is NOT NULL -> The report displays only the results of the query for that person of that team.
Thank you for your kind help ! -
I am trying to use some user-defined fields in SAP Business One in a Crystal Report. The alphanumeric fields are being show in CR as memo fields rather than string. I need to do select (filter) and group based on these fields. How do I convert them to string?
Hi David
Try using cstr(<field name>)
Hope this helps.
Regards
Nik -
We noticed an interesting issue with P6.2. There is a new option, "use secure fields" in the product. When creating Project or Resource codes, there is a then a checkbox for "secure field" which can be checked or unchecked.
However, if Use Secure Fields is enabled and a user does not have the permission View Secure Fields, that user cannot select a filter based on a field EVEN IF THE CHECKBOX IS UNCHECKED.
Is this a bug, or am I misunderstanding the intent of this feature?Project Management provides privileged users the ability to define secure resource, project, and activity codes. These codes can be used by an organization to define the approval process, etc.
This functionality allows organizations to classify certain codes so that only a user with the assigned privilege can view, edit or assign the selected code value.
Secure codes and secure code assignments can be exported to XML format, however Secure Codes, their values and assignments are not included when a project is exported from the database in XER format, nor when a project is copied.
There are four (global) security privileges to view, assign or modify Secure Codes:
Add and Delete Secure Codes
Edit Secure Codes
Assign Secure Codes
View Secure Codes
If you have any further question please contact support through the following link http://customerportal.primavera.com/customer.
Saryn -
Using a date field in a JDOQL query crashes
Hello:
I am trying to use a date field in a JDOQL filter. It appears from the
log file that the date is not being substituted into the SQL.
It is not clear from the JDOQL spec how to do date queries.... doing date
queries in SQL involves several special operators, yet the
JDOQL defines the ">" and "<" operators as working on dates....and there is
no mention of date specific operators so I am hoping that I
can do a filter where I compare a date to an input parameter date using the
">" and "<" operators...
I have enclosed a copy of my driver code, followed by an except of my class
that contains the date, followed by the kodo exception log
I can't see where I am doing anything that violates the JDOQL spec and I
don't see any other way of doing date comparisions.
Brian
Here is the driver code that I am attempting:
public void getDateRange ()
PersistenceManager pm = JDOFactory.getPersistenceManager ();
String filter = "leafDates.contains (cdate) & cdate.statusName ==
myStatus & cdate.datePhaseStarted > myDate";
Date date = new Date ();
Calendar calendar = new GregorianCalendar (TimeZone.getDefault ());
calendar.set (2002, Calendar.DECEMBER, 26);
date=calendar.getTime();
Extent extent = pm.getExtent (LeafBase.class, false);
Query query = pm.newQuery (LeafBase.class, filter);
query.declareImports ("import aqueduct.*; import java.util.Date");
query.declareVariables ("aqueduct.LeafDate cdate; Date myDate");
query.declareParameters ("String myStatus");
System.out.println ("dated used = " + date);
Collection results = (Collection) query.execute ("closed", date);
Iterator iter = results.iterator ();
while (iter.hasNext () ) {
LeafBase myLeaf = (LeafBase) iter.next ();
System.out.println ("My leaf = " + myLeaf);
pm.close ();
Here is the class:
public class LeafDate implements Serializable
// *******The Attributes***************
private Date datePhaseStarted = null;
private boolean isEstimatedDate = false;
//mark this as non-persistent in the JDO metadata
private StatusType status = null;
//put here to enable one-to-many mapping using a single table in JDO
private LeafBase parent = null;
Here is the error I am getting:
C:\bcs\jdo\kodo-jdo-2.4.0\aqueduct>java aqueduct.DealMaint dated used = Thu
Dec 26 08:47:33 CST 2002
Exception in thread "main" javax.jdo.JDODataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPARENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM
JDO_DATE t1, JDO_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND t1.DATESTARTED
*variable*) AND t0.ID = t1.PARENTX) PRE=SELECT DISTINCT t0.ID,
t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX, t0.DEALPARENTX, t0.PARENTX,
t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM JDO_DATE t1, JDO_LEAF t0 WHERE
((t1.STATUSNAME = ? AND t1.DATESTARTED > *variable*) AND t0.ID =
t1.PARENTX)
ORA-00936: missing expression
[code=936;state=42000]
NestedThrowables:com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPA RENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM
JDO_DATE t1, JD O_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND
t1.DATESTARTED > *variable*) AND t0.ID = t1.PARENTX)] [PRE=SELECT DISTINCT
t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX, t0.DEALPA RENTX,
t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM JDO_DATE t1, JD
O_LEAF t0 WHERE ((t1.STATUSNAME = ? AND t1.DATESTARTED > *variable*) AND
t0.ID = t1.PARENTX)]
ORA-00936: missing expression
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
tions.java:23)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:742)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
:92)
at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
at com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:623)
at aqueduct.DealMaint.getDateRange(DealMaint.java:523)
at
aqueduct.DealMaint.main(DealMaint.java:35)NestedThrowablesStackTrace:java.sq
l.SQLException:
ORA-00936: missing expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1819)
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:2015)
at
oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(Oracle
PreparedStatement.java:3021)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:416)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepareOh, thanks for pointing this out.... I got caught up in trying to figure out
the date issues, I missed the obvious.
Brian
"Patrick Linskey" <[email protected]> wrote in message
news:[email protected]...
Brian,
The problem is that you're declaring myDate as a variable instead of a
parameter. Yes, we should be doing better error checking. But that's the
problem.
So, change your declareVariables() and declareParameters() statements
accordingly, and all should work out.
-Patrick
Brian Smith wrote:
Here is the driver code that I am attempting:
public void getDateRange ()
PersistenceManager pm = JDOFactory.getPersistenceManager ();
String filter = "leafDates.contains (cdate) & cdate.statusName ==
myStatus & cdate.datePhaseStarted > myDate";
Date date = new Date ();
Calendar calendar = new GregorianCalendar (TimeZone.getDefault
>>
calendar.set (2002, Calendar.DECEMBER, 26);
date=calendar.getTime();
Extent extent = pm.getExtent (LeafBase.class, false);
Query query = pm.newQuery (LeafBase.class, filter);
query.declareImports ("import aqueduct.*; importjava.util.Date");
>>
query.declareVariables ("aqueduct.LeafDate cdate; Date myDate");
query.declareParameters ("String myStatus");
System.out.println ("dated used = " + date);
Collection results = (Collection) query.execute ("closed", date);
Iterator iter = results.iterator ();
while (iter.hasNext () ) {
LeafBase myLeaf = (LeafBase) iter.next ();
System.out.println ("My leaf = " + myLeaf);
pm.close ();
>
Here is the class:
public class LeafDate implements Serializable
// *******The Attributes***************
private Date datePhaseStarted = null;
private boolean isEstimatedDate = false;
//mark this as non-persistent in the JDO metadata
private StatusType status = null;
//put here to enable one-to-many mapping using a single table in JDO
private LeafBase parent = null;
>
Here is the error I am getting:
C:\bcs\jdo\kodo-jdo-2.4.0\aqueduct>java aqueduct.DealMaint dated used
= Thu
Dec 26 08:47:33 CST 2002
Exception in thread "main" javax.jdo.JDODataStoreException:
com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPARENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAMEFROM> > JDO_DATE t1, JDO_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND> > t1.DATESTARTED> >> > >*variable*) AND t0.ID = t1.PARENTX) [PRE=SELECT DISTINCT t0.ID,
>
ORA-00936: missing expression
[code=936;state=42000]
NestedThrowables:com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
[SQL=SELECT DISTINCT t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX,
t0.DEALPA RENTX, t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAMEFROM
JDO_DATE t1, JD O_LEAF t0 WHERE ((t1.STATUSNAME = 'closed' AND
t1.DATESTARTED > variable) AND t0.ID = t1.PARENTX)] [PRE=SELECTDISTINCT
t0.ID, t0.JDOCLASS, t0.IS_CONFLICT, t0.CURRENCYX, t0.DEALPA RENTX,
t0.PARENTX, t0.PRODUCTKIND, t0.T_SIZE, t0.STATUSNAME FROM JDO_DATE t1,JD
O_LEAF t0 WHERE ((t1.STATUSNAME = ? AND t1.DATESTARTED > variable) AND
t0.ID = t1.PARENTX)]
ORA-00936: missing expression
at
com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExcep
tions.java:23)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCSto
reManager.java:742)
at
com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java
:92)
atcom.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
>>
at
com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
>>
at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:623)
at aqueduct.DealMaint.getDateRange(DealMaint.java:523)
at
aqueduct.DealMaint.main(DealMaint.java:35)NestedThrowablesStackTrace:java.sq
l.SQLException:
ORA-00936: missing expression
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1405)
at
oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:643)
>>
at
oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1819)
>>
at
oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java
:2015)
at
oracle.jdbc.driver.OraclePreparedStatement.doScrollPstmtExecuteUpdate(Oracle
PreparedStatement.java:3021)
at
oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedState
ment.java:416)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePrepare
Patrick Linskey [email protected]
SolarMetric Inc. http://www.solarmetric.com -
DTS Import of MDB in SQL Server 2000 Drops Memo Field Data
I have used DTS in SQL Server 2000 to import an MDB filed (MS ACCESS) of a table. When the table is imported the primary key is lost and the memo field data is completely gone.
I use the tranformation option in the DTS wizard to add the primary key and make sure the data type for the memo field is varchar and has a size of 8000. I need that large size since I am storing lots of html code.
When I preview the data I see the html code that is supposed to get imported. However, when I return all rows from the table in Enterprise Manager the field is empty.
So I tried to manually copy the data from the MS Access Database into SQL Server. Could not figure out if SQL Server has an interface like MS Access to simply copy data into a table. So I linked to the tables from MS Access to the SQL Server table.
When I opened the linked table I see the data in the description field. However, if I return the rows from within SQL Server no data is present.
I have some ASP code trying to read the data in the SQL Server table. However, nothing is returned and when I run the SQL Statement, nothing gets returned. The SQL statement returns all rows. All the other data is present but nothing in the description field.
What am I doing wrong? Any suggestions anyone, please!
TIAIt is important to know the version of MS Access. I will recomend you to use nvarchar datatype instead of varchar. May be the description field contain unicode characters.
Refer this link to understand more on datatype mapping between access source and sql server destionation.
http://blogs.msdn.com/b/ssma/archive/2011/03/06/access-to-sql-server-migration-understanding-data-type-conversions.aspx?Redirected=true
Regards, RSingh -
The memo field in forms won't display text?
I am using Firefox 33.1.1 on a WindowsXP Pro system and have been using FireFox for quite some time . . .
Recently, I must have done something, I just don't know, but I can't seem to remedy the problem.
I create and use a lot of forms. Standard <form></form> HTML forms.
Whenever I pull up a form, I can no longer see any text as I type into the MEMO field. I also don't see any contents of the MEMO field when I recall a record fromn the database within the form.
This is happening ONLY with the MEMO field.
This very message I had to type in notepad and copy and paste it into this bug report form.( OMG - when I pasted this text into this form, I can see the text!! But still not in other forms)
YET, the text is indeed in the form. This text will display when recalling a record to the webpage and displaying the memo field contents on the page.(Not in form)
I have done all I can according to FireFox problem resolution suggestions including uninstalling and reinstalling a fresh pristeen copy of Firefox to a diff location on HD.
I do NOT have this problem when I go into Windows IE. I know there is no problem with the form itself or database contents. This happens on ANY memo field at ANY website, not just mine.
I cannot say if this began after an FF update or not. I feel it may be a simple fix. I may have hit a key or combination of keys that changed a setting causing this, but I dont know where.
Any clues would be helpful.
thanks
jimTry to disable OMTC and leave hardware acceleration in Firefox enabled.
*<b>about:config</b> page: layers.offmainthreadcomposition.enabled = false
*http://kb.mozillazine.org/about:config
You can try to disable hardware acceleration in Firefox.
*Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
You need to close and restart Firefox after toggling this setting.
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
*https://support.mozilla.org/kb/upgrade-graphics-drivers-use-hardware-acceleration
This can be a problem with the font that is used to display the text.
You can do a font test to see if you can identify corrupted font(s).
*http://browserspy.dk/fonts-flash.php?detail=1
You can try different default fonts and temporarily disable website fonts to test the selected default font.
*Tools > Options > Content : Fonts & Colors > Advanced
*[ ] "Allow pages to choose their own fonts, instead of my selections above" -
Missing Memo Fields from Universe Please Help.
Can anyone tell me why all of the memo fields are missing when I try to use a Universe to connect to the database.
If I use a query to create the Universe or insert tables the memo fields are not avalible in a Universe.
In the designer the memo fields show up on the right side pane, but do not show on the left side pane.
If I don't use a universe and just use a standard oledb connection the memo fields are there and I can use them.
Help Please.
Thanks
JeffFound it on Google
-
I have a table in MS access with a memo field. Everything the
user inputs in the field is recorded in the table. When I try to
output the memo field I am on getting part of the field. Attached
is the code for displaying the data from the acty_comments field.
Also below is the actual data that is in the field. Can anyone tell
me what is going on.
Thanks
Actual Data:
"The answers to the questions are below in italic magenta.
The answers reiterate FAR sections. As they are parts of
published regulations, there is no sense in referring to them
""official GSA policy"" as if there is some other authority for the
informa
- here is where it stops-
- here is what should be next
tion.
Ask Acquisition is a convenience service of the Office of
Acquisition Policy; not as an avenue for policy decisions. If they
need a formal response from the Office of Acquisition Policy, you
will need to send any formal inquiries to
- more data -are you using GROUP BY? or aggregating in some way? using
DISTINCT?
There is a limitation in Access if so.
I know there is a M$ technote somewhere, but I can't find it
right now.
Here's a link that might help
http://allenbrowne.com/ser-63.html
Tim Carley
www.recfusion.com
[email protected] -
Interactive Report filter using "in"
I am using an interactive report, and I want to filter using the "in" criteria. The data I want to filter is a person's name, and it is a concatenation of the entire name, last name first. I have no problem doing this filter on just the first or last name, but the concatenated field has a comma in it, and that seems to be throwing the filter off.
What automatically populates when I click a name from the list is something like:
Abraham, Adam
I can see that it would probably be interpreting that as two different values. But even if I put single or double quotes around the name, it still does not work correctly.
An example available at:
http://apex.oracle.com/pls/otn/f?p=41923:1
Try doing an "in" filter on the "name" column.
Thanks,
DavidDavid,
The comma is the operational separator for the 'IN' clause, so you are right, the filter sees each part of the name as a parameter. Just use something else as the separator (like a space) and you will be good to go.
Keep Smiling,
Bob R -
Problems displaying rtf memo fields
Post Author: Davidm
CA Forum: General
We use Crystal Reports X to run reports on an Access database with a significant number of rtf memo fields. We use Total Access Memo to allow extended use of rtf within Access as our users require the additional formatting capabilities that this offers.
However, there are considerable problems displaying items like bullet points, tables and hyperlinks in the Crystal Viewer with tables in particular coming out in a real mess with all entries in the table being displayed in a list with a small square marking each cell at the end of each line.
Curiously, if you preview the report in the full version of Crystal X, it appears a bit better with the hyperlinks still underlined (bullet points still vanish) and rows in rtf tables are at least presented as a row even if the columns are not ordered and mixed (with no bounding cells visible).
Firstly, is this disparity of end result between full Crystal X Print Preview and the Crystal X Viewer fixable?
Secondly, is the limited handling of rtf tags likely to be solved in the next release of Crystal?Hi Mathias,
If I caught you correctly, you want to display data in Adobe forms in form of tabel, right?
So, follow the steps:
1. Insert one sub form on your adobe form.
2. Set its type as "flow content" in object->subform property.
3. Set flow direction as "Table".
4. Insert another subform inside this subform.
5. set its type as "flow content" and flow direction as "Table row".
6. Now, choose binding tab, and there check "repeat subform for each Data item check box" and specify min. count for your rows.
7. Now, insert your column fields inside this sub form once.
8. Format its look and feel as you want.
When you run this application, it will show you multiple data as table on Adobe form.
Regards,
Bhavik -
Memo field problem in CR 8.5
Hi. I'm having a problem with displaying the contents of a memo field in CR8.5 when reading from SQL Server 2005 (this doesn't happen with SQL Server 2000). The memo field just doesn't display. It is in a subreport. The field and the subreport are enabled to grow. Like I said, this works fine when reading from SQL 2000, but not 2005.
Help?
Thanks. Help is ALWAYS appreciated.Hi John,
How are you connecting your DB? If it's ODBC then try using OLE DB etc.
What happens if you create a new report, can you see the memo data?
CR 8.5 is 10 years old so at the time MS 2005 was not out so not sure if there are issues with it or not.
Check the field type and length in 2005, CR 8.5 has a limit of 65,000 characters for memo fields, if upgrading changed that size CR will have problems.
You could try downloading all of the patches for 8.5 and see if that works.
Thank you
Don -
I have a web site that builds pages based on content in an
Access DB. One of the fields is MEMO and contains body copy for the
page (usually 300-400 words per record). This bodyCopy field is
HTML tagged IN the record (in case that matters). So I import the
whole database into SQL. Fine. The pages display ok - All the data
in the bodyCopy field is STILL in there, I can see it on the
webpages. BUT, I cannot see, or edit the cells in SQL Enterprise
manager. If I add a new record similar bodyCopy pastes are
truncated. SQL converted the MEMO field to ntext(16). I have tried
text(16) and nvarchar(8000) with the same results. I need to be
able to edit the existing cells, and input similarly sized data
chunks in with new records...
Can anyone shed some light on this issue?SQL is a bit different in managing the data directly than
Access was.
ntext should be fine for any previous memo fields.
If it tells you that you cannot edit the cells, it is usually
because the Key has not been defined. Importing from Access will
bring in all your data, but it won't necessarilly apply the Key
identifier. Without a key it won't let the data be edited, at least
not directly.
If it is showing up in the web page OK then the data would
not appear to be truncated, just not all viewable in the SQl
listing. If you try to enter too much data into a field in SQL it
usually will simply refuse to do it.
Have ou tried connecting to the SQL server via Access (ADP)?
If you have been used to Access all this time, it can be a really
nice way of working between the two and gives you a familiar way of
doing things. -
I have a data cluster that I am working to write to either Access 2007 thru 2010 and/or SQL Server Express 2008 thru 2012 all on a Windows 7 64 bit OS. Some of the elements are long strings that I put delimited data for the raw trace data. The fields can be 10's of KB long. With Access I cannot stuff any string >255char into the memo field. With SQL Server Express 2008R2 - 2012 I found that if the strings are >32767 they again fail to fill the memo fields. The Access write or reads work fine otherwise, just not the listed offending fields in the cases mentioned. Anyone else having the issue or a solution?
If the long string field has repetitive data, you might be able to compress it using GZIP to reduce it's size below the 32K limitation you mentioned.
GZIP compress/uncompress of string using .NET
Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.
"You are what you don't automate"
Inplaceness is synonymous with insidiousness
Maybe you are looking for
-
Issues on setting the SQL ARRAY in Weblogic 10.3
Hello, I am facing problem while migrating my application from Weblogic 8.1 to Weblogic 10, and problem is on setting the database ARRAY. here is the brief of the problem which we are facing during weblogic upgrade, appreciate if someone could help u
-
I want to have application Siri in my phone. Help me. Thanks you
Hello. I want to have an application Siri in my phone please. Help me please ! Thanks you so much
-
The office I work in uses a very old version of ACT!, an accounting package. This package has a component called SwiftPage, an antiquated email system that enables us to email from the ACT DB. SwiftPage runs via the web browser. Firefox just did an a
-
Labview executable error - system cannot find the file specified
Hi I am trying to create a stand-alone application and I'm getting the error message below: "System cannot find the file specified" This error message occurs when I run the setup.exe. Does any one know why this is happening? I've also attached the er
-
Unable to restore or update ipod nano (1st gen)
hello, I just upgraded to itunes 7 and it told me there is an update to 1.2 for the ipod. I cannot get it to update. as soon as I click update, the "do not disconnect" message disappears from the ipod and eventually it goes to sleep. The computer say