SQL Expression in Filter conditon Error in OBIEE 10g
Hi
I am getting an error while giving the sql in the sql expression in filter conditon.
The sql expression I am giving is:SELECT MAX("Task Runs"."Start Time") saw_4 FROM "Analysis"'
Error:
Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
Odbc driver returned an error (SQLExecDirectW).
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SELECT>: Syntax error [nQSError: 26012] . (HY000)
SQL Issued: {call NQSGetLevelDrillability('set variable disable_cache_hit=1; SELECT "Task"."Task Name" saw_0, "Task Runs"."Time in Seconds" saw_1, TOPN("Task Runs"."Time in Seconds", 10) saw_2, "Task Runs"."Start Time" saw_3 FROM "Analysis" WHERE "Task Runs"."Start Time" >= SELECT MAX("Task Runs"."Start Time") saw_4 FROM "Analysis"')}
But when I individualy select start time column and check max of it the data comes fine, but if I am giving in sql expression it errors out.
Please suggest.
Hi Sini,
I have tried taking the second suggestion but I get no result for that
"Task Runs"."Start Time" -->Filter->Advanced button->Convert this in SQL->
WHERE "Task Runs"."Start Time" >= MAX("Task Runs"."Start Time" by "Task"."Task Name")
Here I did not understand the code Task Runs"."Start Time" by "Task"."Task Name". If possible elaborate.
And 1st suggestion the query formed just looks the query u suggested.
Unable to figure out what exactly is the problem.
Try something as in with 2 queries
http://www.cool-bi.com/Tweaks/JoinsinAnswers.php
or else
"Task Runs"."Start Time" -->Filter->Advanced button->Convert this in SQL->
WHERE "Task Runs"."Start Time" >= MAX("Task Runs"."Start Time" by "Task"."Task Name")
not sure how it works but this is other way of your sql in BI
Similar Messages
-
Errors when applying sql expression on filter, please help
Hello guys
I was trying to put a filter on the date column and filter between timestampadd(sql_tsi_day,-31,current_date) and current_date
I was successfully able to define both field on sql expression of the filter and I selected "is between"
However when I run reports it returns the following errors:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 22024] A comparison is being carried out between non-compatible types. (HY000)
SQL Issued: SELECT "Year"."Transaction Date" saw_0 FROM tranSale_cube WHERE "Year"."Transaction Date" BETWEEN timestampadd(sql_tsi_day,-31,current_date) AND current_date ORDER BY saw_0
When I using the same timestamp expression on the column formula and run report without filters, the report will return the correct date however though
I am using essbase as the data source.
Please help
ThanksThanks
However, the error still exist the same.. This error code returns when I run report based on this one single column
when I put this date column with measures and other columns then run report, I get a different error:
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 42043] An external aggregate is found in an outer query block. (HY000)
SQL Issued: SELECT Product."Brand Name" saw_0, "Up Level"."Trial - level 12" saw_1, "Year"."Transaction Year" saw_2, "Year"."Transactoin Month" saw_3, "Year"."Transaction Date" saw_4, tranSale.count_of_transactions saw_5, Avg(tranSale.count_of_transactions by "Up Level"."Trial - level 12", "Year"."Transactoin Month", Product."Brand Name") saw_6 FROM tranSale_cube WHERE ("Up Level"."Trial - level 12" IN ('0', 'Product Upsell')) AND ("Year"."Transactoin Month" >= '2009 Feb') AND ("Year"."Transaction Date" BETWEEN timestampadd(sql_tsi_day,-31,current_date) AND current_date) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4
I believe it must be something with the essbase that is not serving OBIEE well. Because I tried the same filter on a different environment not having essbase, it return me the right results..
Could anyone help?
Thanks -
SQL Expressions in RAD -Getting error during runtime while generating rpt
Hi
We have just migrated from WSAD to RAD Version: 7.0.0.7.
The issue is: I am getting the error at the runtime when I am trying to use the SQL expression in my one of the report. The SQL Expression feature is not supported by this version of RAD. I checked the Help contents. It says
Field Objects: SQL expression fields
This report contains SQL Expression fields. These fields are not visible in this version of the Crystal Reports designer, but they will be evaluated by the system when the report is executed. New SQL Expression fields cannot be created by the designer. SQL Expression fields will remain in the .rpt file after saving and can be edited by other Crystal Reports designers
To me it seems you can use the 'SQL Expressions' in the report using some Crystal Reports designers and at the runtime it will be evaluated. So I edited my report with some Crystal Reports Designer and tested it on WSAD. It worked fine. Now since we have migrated to RAD, this is an issue since I am getting the following error:
ERROR [WebContainer : 0] com.crystaldecisions.reports.formatter.formatter.objectformatter - com.crystaldecisions.reports.dataengine.be: Failed to parse expression.
[12/17/08 15:12:14:750 EST] 0000001c SystemOut O 15:12:14,671 ERROR [WebContainer : 0] com.businessobjects.reports.sdk.JRCCommunicationAdapter - Failed to export report
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Failed to parse expression.
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
When I remove the expression fields, it works fine on RAD too.
I am using following versions:
RAD Version: 7.0.0.7
Crystal Reports for Rational Application Developer Version: 11.5.6.v20080304.
Crystal Report Runtime Support version is 11.8.4.v1094
Please let me know if somebody has faced the similar issue.
Any help/suggestions would be appreciated.
Thanks,
KamalHi
We have just migrated from WSAD to RAD Version: 7.0.0.7.
The issue is: I am getting the error at the runtime when I am trying to use the SQL expression in my one of the report. The SQL Expression feature is not supported by this version of RAD. I checked the Help contents. It says
Field Objects: SQL expression fields
This report contains SQL Expression fields. These fields are not visible in this version of the Crystal Reports designer, but they will be evaluated by the system when the report is executed. New SQL Expression fields cannot be created by the designer. SQL Expression fields will remain in the .rpt file after saving and can be edited by other Crystal Reports designers
To me it seems you can use the 'SQL Expressions' in the report using some Crystal Reports designers and at the runtime it will be evaluated. So I edited my report with some Crystal Reports Designer and tested it on WSAD. It worked fine. Now since we have migrated to RAD, this is an issue since I am getting the following error:
ERROR [WebContainer : 0] com.crystaldecisions.reports.formatter.formatter.objectformatter - com.crystaldecisions.reports.dataengine.be: Failed to parse expression.
[12/17/08 15:12:14:750 EST] 0000001c SystemOut O 15:12:14,671 ERROR [WebContainer : 0] com.businessobjects.reports.sdk.JRCCommunicationAdapter - Failed to export report
com.crystaldecisions.reports.exportinterface.exceptions.ExportException: Failed to parse expression.
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
When I remove the expression fields, it works fine on RAD too.
I am using following versions:
RAD Version: 7.0.0.7
Crystal Reports for Rational Application Developer Version: 11.5.6.v20080304.
Crystal Report Runtime Support version is 11.8.4.v1094
Please let me know if somebody has faced the similar issue.
Any help/suggestions would be appreciated.
Thanks,
Kamal -
How to implement PL/SQL expression in Report conditonal?
Hi All,
In my application i am want use Pl/SQl as expression in Conditional Display for Report region. Can you please suggest me how to handle using PL/SQl expression in conditonal.
Thanks,
Anoo..In general terms, your PL/SQL expression should evaluate to true or false - true will display the region, false will hide it. It's analogous to writing the conditional expression part of an if statement.
So, if you had normal PL/SQL code that looks like this:
if :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0 then
end if;The equivalent conditional pl/sql expression would simply be:
:P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0 Note: this is NOT the same as you would do for "PL/SQL body returning boolean Expression", which looks more like:
return :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0;or
declare
bl_retval boolean;
begin
bl_retval := :P999_MYPAGEITEM is null or :P999_MYPAGEITEM = 0;
return bl_retval;
end; -
Using sql expression in filter
Hi Experts,
I have a question using 'sql expression' in filters in answers. Let's say i have a date filter and i would like the value for that date as max(tablename.colname). Please tell me the syntax for passing this.
One more question is i have a date prompt the data will be refreshed weekly let's say the data refreshed like this *08/1/11 ,08/8/11 and 08/15/11* . Now if i select 08/08/11 it will show the data
populated on *08/08/11* which is ok but if i select *08/09/11 to 08/14/11* it show only *08/08/11* data. Same way if select *08/16/11 or 09/16/11* it should show the last refreshed data which is *08/15/11*
Thanks in Advance.
chakOk, so you want the report to be restricted as of last refresh date when your selects a date in prompt which is beyond/greater than the last refresh date.
One way of doing this can be as below:
- Capture the last refresh date in a repository variable. So this variable will always hold a value for last refresh date.
- In prompts, capture the date selected by user in a presentation variable and apply the below statement in the Advanced SQL of the report.
DateColumn = case when Timestamp '@{pvar}{2011-01-01 00:00:00}' <= valueof("lastRefDate") then timestamp '@{pvar}{2011-01-01 00:00:00}' else valueof("lastRefDate") end
Here pvar is your presentation var and lastRefDate is your rep variable holding the last refresh date. What this statement would do is if user selects a date which is less that equal to last refresh date, then report will be filtered as of that date. Else, the report will be filtered by value of the Last Refresh date.
Thanks -
Multiple pl/sql expressions for a conditonal process
Can I put multiple pl/sql expressions in the expression one box? I want run a process on conditions that posts an update when the user has checked a box that was not previously checked.
looks something like this:
when
(p1_checkbox1 = 'Y' or p1_checkbox2 = 'Y')
and ((p1_checkbox1 =! p1_checkbox1_sav)
or (p1_checkbox2 =! p1_checkbox2_sav))
Is this possible or will I need to create multiple processes that do the same thing with different run conditions?Please tell us your first name and update your forum profile with it to help us. Thanks.
The answer is no, you can only have one expression, for example:
(:p1_checkbox1 = 'Y' or :p1_checkbox2 = 'Y')
and ((:p1_checkbox1 =! :p1_checkbox1_sav)
or (:p1_checkbox2 =! :p1_checkbox2_sav))Scott -
Governor limit exceeded in cube generation error in OBIEE 10g
Hi Gurus,
one of my OBIEE Report is throwing the error called *"Governor limit exceeded in cube generation(Maximum data records exceeded.)"*
I am using OBIEE 10g.Could you please suggest me here and report also runnig for long time like to get one day data it is running for 30 min to pick 9000 rows.
Regards,
SKHello,
Try to alter the values in the instanceconfig.xml. ( Under \OracleBIData\web\config )
<CubeMaxRecords>200000</CubeMaxRecords>
<CubeMaxPopulatedCells>200000</CubeMaxPopulatedCells>
Also refer to : OBIEE 10g: Error: "Governor Limit Exceeded In Cube Generate. Error Codes: QBVC92JY" or "Maximum number of allowed pages in Pivot Table exceeded...Error Detail" When Displaying a Pivot View or Chart [ID 1092854.1] if it did not solve the issue.
Hope this helps. Pls mark if it does.
Thanks,
SVS -
Socket communication error in OBIEE 10g.
Hi
I have below error in nqserver log by which i am unable to connect admin tool and presentation service. I am using OBIEE 10g.
[nQSError: 12002] Socket communication error at call=recv: (Number=10004) A blocking operation was interrupted by a call to WSACancelBlockingCall
Please Suggest.Hi ,
Its not about the no. of connection pools u have in ur RPD .Its the maximum number of connections allowed for this connection pool. The default is 10. This value should be determined by the database make and model
and the configuration of the hardware box on which the database runs as well as the number of concurrent users who require access.
Ref :
http://siebel.ittoolbox.com/groups/technical-functional/siebel-analytics-l/oracle-bi-server-stops-automatically-after-some-time-3645235
Just give it try . -
Hi Friends,
I got an error while executing the writeback Template.I am using simple SH schema.
Please Help me to fix the error.
The Template I have given is below..
<?xml version="1.0" encoding="utf-8" ?>
<WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
<WebMessageTable lang="en-us" system="WriteBack" table="Messages">
<WebMessage name="write">
<XML>
<writeBack connectionPool="Connection Pool">
<insert> </insert>
<update>UPDATE SALES SET PK=@4 WHERE TIMES.CALENDAR_YEAR='@1' PRODUCTS.PROD_NAME='@2' SALES.AMOUNT_SOLD=@3</update>
</writeBack>
</XML>
</WebMessage>
</WebMessageTable>
</WebMessageTables>
The Updated Colomn here is "PK" present in SALES Table.
The Error I got is ....
An error occurred while writing to the server. Please check to make sure you have entered appropriate values. If the problem persists, contact your system administrator.
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43093] An error occurred while processing the EXECUTE PHYSICAL statement. [nQSError: 16001] ODBC error state: S1000 code: 933 message: [Oracle][ODBC][Ora]ORA-00933: SQL command not properly ended. [nQSError: 16015] SQL statement execution failed. (HY000)
SQL Issued: EXECUTE PHYSICAL CONNECTION POOL "Connection Pool" UPDATE SALES SET PK=123 WHERE TIMES.CALENDAR_YEAR='1998' PRODUCTS.PROD_NAME='1.44MB External 3.5" Diskette' SALES.AMOUNT_SOLD=64464.83
Please Help me to fix the Error.
Thanks in Advance....
Regards,
Pamidi.Hi JD,
Thank you for your good Reply.
I already recognized the Error with Update Command.No need to end ';' to Update Commad.
I know the Simple Update command like <update>UPDATE SALES SET PK=@2 WHERE PROD_ID='@1'</update> . this command will be worked.
But in this case(This Error with previous Update Command) , I am not able to write correct Update Command.
If you know please let me know.Thanks in Advance.
Regards,
Pamidi. -
I am getting syntax error [nQSError: 27002] Near <)>: Syntax error [nQSError: 26012] . Please help me to identify for below code
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year" <> 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = cast(concat(cast(day(current_date) as char) ||’-’|| month(current_date) ||’-’|| cast(year(Core."Dim - Date"."Year") as char)) as date)) Else 0 End
Many thanks.WHEN Core."Dim - Date"."Year" 'year(current_date)' THEN You are missed condtion
try to use as WHEN Core."Dim - Date"."Year" ='year(current_date)'
or
CASE WHEN Core."Dim - Date"."Year" = 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = VALUEOF(NQ_SESSION."R_Current_Date")) WHEN Core."Dim - Date"."Year"= 'year(current_date)' THEN FILTER( AGO(Core."Fact - Spend and AP Invoice Distribution"."Spend YTD", Core."Date"."Year", 1) USING Core."Dim - Date"."Date" = cast(concat(cast(day(current_date) as char) ||’-’|| month(current_date) ||’-’|| cast(year(Core."Dim - Date"."Year") as char)) as date)) Else 0 End
Mark as correct
Edited by: Srini VEERAVALLI on May 3, 2013 6:02 AM
Based on given OP what was said is correct. when you are getting cast issues then you need to share values too.
Thanks
Edited by: Srini VEERAVALLI on May 3, 2013 2:03 PM -
Consistency check error in OBIEE 10g
Hi
I have the below error while doing consistency check.
I was trying to join two fact tables by complex join, but getting below error
NQSError:15009 Could not load navigate space for subject area
NQSError: 15009 Multiple paths exist to table Plans.Circular joins schemas not supported
Please suggestIf you have to join fact tables in physical, make sure your logical layer remains a star.
Either add both fact tables to one logical fact table source , or create two logical stars, where both facts are joined to all conformed dimensions.
Note: if both facts are not at exactly same granularity, your reports will show incorrect results most definitely. So avoid fact to fact joins. -
I had a requirment where I need to calculate the duration of the etl runs on daily basis
So I have calculated the duration using the below formula.
by grouping the run_wid and using the column in criteria and hiding it(in order to avoid the error 'column in GROUPBY clause not in the projection list.')..
the reason for grouping the run_wid is when the etl fails it is run multiple times and multiple entries on same run_wid are generated so I have captured them by
grouping them based on run_wid.
Everything works here fine.
But when I want to analyze on the whole year average etl runs using the above process.
So in order to achieve this by taking the year and duration and grouping by run_wid. I again get the error 'column in GROUPBY clause not in the projection list.').
I can't use the run_wid in the criteria because it not showing at year level. Please suggest a way/idea on achieving this.
Edited by: 949675 on May 30, 2013 10:17 PMHi Yadav,
Thanks for suggesting the idea it worked little bit by not making me to pull the run_wid in both
criteria and adding in GROUP by in advanced tab.
The problem what I am facing now is the value is not average values and its only showing the sum
of all the values
The formula for calculating Average is Avg(round(sum(TimestampDiff(SQL_TSI_SECOND,Audit."Start Time",Audit."End Time"))/60,2)/60 by run_wid)
The columns in my criteria are
Year|Average
Ex:
In year 2011 the ETL has run 50 times, I am seeing 50 etls total run time in Average. -
Java heap space error in obiee 10g
Dear All,
We are unable to generate the reports. We observed the following error in OC4J
12/06/06 17:43:28 java.lang.OutOfMemoryError: Java heap space
12/06/06 17:43:36 Exception in thread "Timer-8" Exception in thread "Timer-0" j
va.lang. OutOfMemoryError: Java heap space
12/06/06 17:44:45 java.lang.OutOfMemoryError: Java heap space
12/06/06 17:45:18 java.lang.OutOfMemoryError: Java heap space
12/06/06 17:45:19 java.lang.OutOfMemoryError: Java heap space
12/06/06 17:45:26 java.lang.OutOfMemoryError: Java heap space
How to resolve this.
Thanks.Hi,
Increase the heap size by setting -Xmx to the desired amount of memory in the <java-option> element in opmn.xml:
<module-data> <category id="start-parameters">
<data id="java-options" value="-Xmx256M" />
</category>
</module-data>
Alternatively, you can set a system property at OC4J startup:
java -Xmx256M -jar oc4j.jar
Refer : http://docs.oracle.com/cd/B14099_15/web.1012/b14011/diagnosis.htm
Regards,
Srikanth -
SQL Expression for date conversion - version XI
I am trying to convert a number field to a date field in order to use it in a date parameter in Infoview. The database field is in a 15 digit DTM format but is stored as a number. There is also a zero stored in the database field. When I try to create the date SQL Expression I get this error: Error in compiling SQL Expression: Failed to retrieve data from the database. Details: ORA-01840: input value not long enough for date format. How can I get the SQL Expression to not look at the zero? I tried putting a statement in my Record Selection to not pull any zero fields but that doesn't work. Any ideas? Thanks! Kelley
Hi Kelly,
It's been a while since I used Info View, so if it's about registering, etc. I won't know the
answer.
Did you link it ? Have you tested that it should even return data ?
Check the filtering, etc in a query builder to make sure.
Have you tested the sub report by running it by itself ? (just add a value to the parameter
field request)
Do you have suppression formulas in the sub report ?
Is the section of the main report that is holding the sub report
free of "suppresion" formulas ? -
Hello everyone,
I'm having trouble with this SQL expression that works in 8.5, and XI R2 runtime and designer, but I cannot edit the expression. As soon as I open the SQL Expression and click the X-2 check button, the error following
SQL Expression I'm trying to run:
(Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where a1.Staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID"
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
The Errror I Receive After Clicking the X-2 button:
Crystal Reports
Error in compiling SQL Expression :
Failed to retrieve data from the database.
Details: ADO Error Code: 0x
Source: SalesLogix OLE DB Provider
Description: The multi-part identifier "CEIHRPROJECTEDACTUAL.STAFFINGCHAINID" could not be bound.
Native Error: [Database Vendor Code: 181797304 ].
OK
This is the SQL statement passed to the database:
SELECT (Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where a1.Staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID"
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
If I reverse the order of the where clause as follows, I do not get the error
(Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where CEIHRPROJECTEDACTUAL."STAFFINGCHAINID" = a1.Staffingchainid
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
This is the working SQL statement passed to the database.
SELECT (Select Distinct b1.CandEmploymentType
from ceistaffing a1
inner join ceisubmittal b1 on a1.submittalid = b1.ceisubmittalid
Where CEIHRPROJECTEDACTUAL."STAFFINGCHAINID" = a1.Staffingchainid
and b1.createdate in (Select max(b2.createdate) from ceistaffing a2 inner join ceisubmittal b2 on a2.submittalid = b2.ceisubmittalid where a2.staffingchainid = a1.staffingchainid))
FROM "sysdba"."CEIHRPROJECTEDACTUAL" "CEIHRPROJECTEDACTUAL"
I figured I would just reverse the where clause statements, but then I came to this one that I couldn't get to work:
(Select case when tmp.restartcount = 0 then 'F' else 'T' end from
(Select Count(b.restart) as restartcount from ceistaffing a inner join ceihrprojectedactual b on a.staffingchainid = b.staffingchainid
where a.candcontactid = (Select distinct candcontactid from ceistaffing a2 where a2.staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID")
and b.restart = 'T'
and a.createdate = (Select min(a1.createdate) from ceistaffing a1
where a1.createdate > (Select max(a3.createdate)
from ceistaffing a3
where a3.staffingchainid = CEIHRPROJECTEDACTUAL."STAFFINGCHAINID")
and a1.candcontactid = a.candcontactid)) as tmp )
I've burned an entire day trying to find some solution. Are there any patches out there that will fix this?
I'm running Crystal Report XI Release 2 SP2 - Version 11.5.8.826
Thank you, ...RobOkay, to simplify the illustration of the problem Iu2019m facing, Iu2019ve created a bare bones example as described below:
I've created a report that returns all contacts from our "CONTACT" table. On the report, I've created a SQL expression to return a count of all contacts with the similar last name, as shown below:
(Select count(a1.ContactID) from CONTACT a1 where a1.LASTNAME = "CONTACT"."LASTNAME")
When I try to save the SQL expression, I get this error:
Crystal Reports
Error in compiling SQL Expression :
Failed to retrieve data from the database.
Details: ADO Error Code: 0x
Source: SalesLogix OLE DB Provider
Description: The multi-part identifier "CONTACT.LASTNAME" could not be bound.
Native Error: [Database Vendor Code: 205193720 ].
OK
This SQL expression works fine in CRW 8.5, but no luck in XI R2 SP4 - As mentioned above in the thread, this seems to be an issue solely with how XI R2 is parsing the SQL Expression. If I remove the "A1" alias from my expression all is good, but that will not work for some of the more advanced SQL expressions I have that are using joins and sub queries.
What will it take to get this recognized as an issue worthy of a hot fix? I'm at a stand-still here, facing the unfortunate possibility of having to re-architect many of my reports. Please help.
Thank you, ...Rob
Edited by: Rob Bartram on Aug 6, 2008 3:45 PM
Maybe you are looking for
-
Memory is supposedly Full, deleted some files, and now I can't open Itunes.
I have a Macbook Pro but I don't play any games, I've never downloaded movies, but I do download music approx. 16GB and pictures...though not sure how to see how much memory these take up. Recently I've had trouble because my computer keeps notifying
-
Add (+) search criteria grayed out
When searching in a finder window, the normal ( +) button to add search criteria is disabled. I thought maybe I had a corrupt preference file, so I trashed all the .plist files that seemed to relate to the finder. Whe I restarted, the button was back
-
Text Editor update in PR05 ( Travel & Expense )
Hi, I am trying to update editor in PR05. I am using function module HRTRV_IF_MODIFY_TRIP to update PR05. For some reason, I am trying to update the editor. But I am getting below error message. Field PTP71-EDITOR_TEXT(9) does not exist I saw whether
-
Inspection Lot created before Post Goods Recept of Inbound Delivery
Does anyone have experience of an inspection lot being created before a Post Goods Receipt is performed for an Inbound Delivery. This is preventing me from receipting the stock as 1. When you try to post goods receipt, I receive a warning that the st
-
I had an excel sheet that I loaded into Oracle that was design like a matrix. The excel sheet had about 25 columns starting with a number and then a 1 in the column that is relevant: For example: Name Male Female Trans Both Unkno