Code Throwing error sometimes.
Hi All,
I am using the following code to convert a ColdFusion Query Object to ColdFusion structure to work in Kendo UI datagrid.
<cffunction name="convertQueryToKendoJSON" access="public" returntype="Struct" hint="Converts a ColdFusion Query Object into Kendo UI format JSON">
<cfargument name="queryObject" required="true" type="query" hint="ColdFusion Query Object" />
<cfset var returnStruct = structNew() />
<cfset var tempArray = arrayNew(1) />
<!--- Loop over the query Object and create one structure Object for each row and query fields are the structure keyfields
Store the structure into an array Object. --->
<cfloop query="arguments.queryObject">
<cfset tempStruct = structNew() />
<cfloop list="#arguments.queryObject.columnList#" index="columnName">
<cfset tempStruct[columnName] = arguments.queryObject[columnName][arguments.queryObject.currentRow] />
</cfloop>
<cfset arrayAppend(tempArray, tempStruct) />
</cfloop>
<!--- Store the Array into result key field of the returnStruct --->
<cfset returnStruct['results'] = tempArray />
<!--- If record Count value exists in the query then only set the totalRecords value --->
<cfif findNoCase("ntRecordCount", arguments.queryObject.columnList)>
<cfset returnStruct['totalRecords'] = arguments.queryObject.ntRecordCount />
</cfif>
<cfreturn returnStruct />
</cffunction>
It is working fine most of the times. But, in some cases when I am getting the query object from a stored Proc call or from QoQ opearation then I am getting the following error.
[Table (rows 4 columns NTRECORDCOUNT, NTROWINDEX, NTLEAD_ROUTING_ALGOID, VCROUTING_ALGO, DTCREATED, DTLAST_UPDATED, NTSORT_ORDER): [NTRECORDCOUNT: coldfusion.sql.QueryColumn@10ec6d0] [NTROWINDEX: coldfusion.sql.QueryColumn@11e9be0] [NTLEAD_ROUTING_ALGOID: coldfusion.sql.QueryColumn@8b96e1] [VCROUTING_ALGO: coldfusion.sql.QueryColumn@5e9f7e] [DTCREATED: coldfusion.sql.QueryColumn@3947f5] [DTLAST_UPDATED: coldfusion.sql.QueryColumn@a35419] [NTSORT_ORDER: coldfusion.sql.QueryColumn@e669f3] ] is not indexable by NTSERVICE_TYPEID
NOTE: I am not getting the error always, sometimes I am getting this error.
System Info:
DataBase: MS SQL 2008
CF - ColdFusion 9,0,2,282541 Enterprise Edition
Hi Dan,
I got following log report.
ColumnList:
BTACTIVE,NTCOMPANYID,VCCOMPANY_NAME
Error Message:
[Table (rows 311 columns ntCompanyID, vcCompany_Name, btActive): [ntCompanyID: coldfusion.sql.QueryColumn@5d213b6c] [vcCompany_Name: coldfusion.sql.QueryColumn@30c45f38] [btActive: coldfusion.sql.QueryColumn@2c476e8b] ] is not indexable by VCOFFICE_NAME
QueryObject Loged in Error Log:
{"QUERYOBJECT":{"COLUMNS":["NTCOMPANYID","VCCOMPANY_NAME","BTACTIVE"],"DATA":[[
I haven't posted the data of query object.
Similar Messages
-
I have a SSRS report that parses RTF to TXT and displays it in a report. The report works fine and everything displays correctly. The subscription email, however, contains a report with errors: Request for the permission of type
'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
The report contains embedded code as well as references to System.Security and System.Windows.Forms. I've updated .....\Reporting Services\ReportServer\rssrvpolicy.config and ....\Reporting Services\ReportManager\rsmgrpolicy.config to change permissions
to FullTrust. Not sure what else I need to do. Please help.Hi Chimuelo,
According to your description, if the report contains custom code and assemblies, the subscription email contains an error “Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
failed”.
In your scenario, the issue could cause by that the report can’t access those assemblies. Please modify the policy configuration files to grant additional permissions for those assemblies. For more information, please refer to this article:
How to grant permissions to a custom assembly that is referenced in a report in Reporting Services.
Similar thread for your reference:
Custom assembly throwing #error in reports with subscriptions
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Passing UDT as parameter to Anonymous block in C# code throws error
Hi Gurus,
Can't seem to make it work when UDT is involved.
I have a proc with the ff signature:
MySchema.MyProc(p_param1 IN OUT MyUDT, p_output OUT SYS_REFCURSOR)
Now I have generated a C# class to map my UDT. I created a pl/sql block below:
string sql = "BEGIN " +
"MySchema.MyProc(:1, :2); " +
"END;";
MyUDT prm = CreateMyUDT();
cmd.CommandText = sql;
cmd.Parameters.Add(":1", OracleDbType.Object, System.Data.ParameterDirection.InputOutput).Value = prm;
cmd.Parameters.Add(":2", OracleDbType.RefCursor, System.Data.ParameterDirection.Output);
cmd.ExecuteReader() or cmd.ExecuteNonQuery() both throws "*Invalid Parameter binding" error*.
Any suggestion how I can resolve this error pls...
regards.I am not sure about the original thread request, but I have found some valuable information from Mark William's site. He wrote a book on ODP.NET which is also a very good and helpful book.
http://oradim.blogspot.com/2007/04/odpnet-tip-anonymous-plsql-and.html
http://www.cheshamdbs.com/
Hope it helps you. -
ADC PHP enabling shell script throws errors
Hi, guys.
I recently tried to enable PHP on my MacBook Pro.
I speak some bash, but no AppleScript.
On the Apple Developer Center they write you a little script to enable PHP, which failed repeatedly before numerous edits by me. I eventually massaged the script to work, but I want to understand *why* the script didn't work.
The code they give is as follows (and you can find it here: http://developer.apple.com/mac/articles/internet/phpeasyway.html):
set admin_email to (do shell script "defaults read AddressBookMe ExistingEmailAddress")
user_www=$HOME/Sites
filename=php-test
user_index=${user_www}/${filename}.php
user_db=${user_www}/${filename}-db.sqlite3
# NOTE: Having a writeable database in your home directory can be a security risk!
conf=`apachectl -V | awk -F= '/SERVER_CONFIG/ {print \$2}'| sed 's/"//g'`
conf_old=$conf.$$
conf_new=/tmp/php_conf.new
touch $user_db
chmod a+r $user_index
chmod a+w $user_db
chmod a+w $user_www
echo "Enabling PHP in $conf ..."
sed '/#LoadModule php5_module/s/#LoadModule/LoadModule/' $conf | sed
"s^[email protected]^\$admin_email^" > $conf_new
echo "(Re)Starting Apache ..."
osascript <<EOF
do shell script "/bin/mv -f $conf $conf_old; /bin/mv $conf_new $conf;
/usr/sbin/apachectl restart" with administrator privileges
EOF
Here are where this code throws errors for me:
First:
set admin_email to (do shell script "defaults read AddressBookMe ExistingEmailAddress")
I don't even recognize the shell syntax that this would work in. It's sort of csh like. Is this AppleScript?
Anyway, OS X bash chokes on this at the first '(' and I changed it to:
admin_email=`defaults read AddressBookMe ExistingEmailAddress`
which works just fine.
Second:
chmod a+r $user_index
I have no idea how his is supposed to work without 'touch $user_index'
I added:
touch $user_index
to the script.
Third:
conf=`apachectl -V | awk -F= '/SERVER_CONFIG/ {print \$2}'| sed 's/"//g'`
Okay, this actually *works*, but I don't know why it should. In my book, it should choke on the \$2, because the \ is invalid.
I've left it because it works and if it works it isn't wrong, but I would have written:
conf=`apachectl -V | awk -F= '/SERVER_CONFIG_FILE/ {print $2}' | sed 's/"//g'`
which I've tested and also works.
I'd like to know why Apple's first line works.
Fourth:
sed '/#LoadModule php5_module/s/#LoadModule/LoadModule/' $conf | sed "s^[email protected]^\$admin_email^" > $conf_new
The error here is that:
sed "s^[email protected]^\$admin_email^"
doesn't replace [email protected] with the contents of $admin_email.
I don't know what the and are supposed to do, but this just replaces the string '[email protected]' with the string '\$admin_email'
I replaced this with:
sed 's^[email protected]^'$admin_email'^'
This gives me a final script of:
#!/bin/sh
admin_email=`defaults read AddressBookMe ExistingEmailAddress`
user_www=$HOME/Sites
filename=php-test
user_index=${user_www}/${filename}.php
user_db=${user_www}/${filename}-db.sqlite3
conf=`apachectl -V | awk -F= '/SERVER_CONFIG/ {print $2}'| sed 's/"//g'`
conf_old=$conf.$$
conf_new=/tmp/php_conf.new
touch $user_index
touch $user_db
chmod a+r $user_index
chmod a+w $user_db
chmod a+w $user_www
echo "Enabling PHP in $conf ..."
sed '/#LoadModule php5_module/s/#LoadModule/LoadModule/' $conf | sed 's^[email protected]^'$admin_email'^' > $conf_new
echo "(Re)Starting Apache..."
osascript <<EOF
do shell script "/bin/mv -f $conf $conf_old; /bin/mv $conf_new $conf; /usr/sbin/apachectl restart" with administrator privileges
EOF
which works just fine.
But I'm still confused - why did ADC have a code snippet that could have never worked? Or am I missing something obvious?
- NathanHey, RanjeetJones!
You're probably right - it's a lot of code to uncomment a line and change the administrator setting.
And the first time I set up PHP, I just found and edited the config file.
But the script had me so confounded I went back to troubleshoot it and got all wrapped up in why it ended up that way.
And this will help the next coder who wants to learn PHP and maybe doesn't speak bash.
- Nathan -
I'm trying to create a list using CustomSchemalXml property in ListCreationInformation object in CSOM. But, the code throws an error "Invalid List Schema". Any pointers on how to set the CustomSchemalXml property?
SriHi Lakshmanan,
Thanks for your reply.
I checked this post and there was no solution to the problem there. I undersand we cannot create a list based on custom template in CSOM, but what I'm looking for is how of form xml and set it to CustomSchemalXml
property, so that everytime when I want to create a list with similar content types and stuff, I can just set the
CustomSchemalXml property.
Sri -
PL/SQL throwing errors! trying to alter dates
the following code keeps throwing errors, I was wondering if it is due to me getting confused when to use ":" before a variable and also ":=" when setting values?
Can anyone see what I am doing wrong?
Here is the code, at the moment it is throwing an error on line 44
ORA-06550: line 44, column 1:
PLS-00103: Encountered the symbol "" when expecting one of the following:
CODE.....
DECLARE
QNStart DATE;
QNFinish DATE;
Q1Start DATE;
Q1Finish DATE;
Q2Start DATE;
Q2Finish DATE;
Q3Start DATE;
Q3Finish DATE;
Q4Start DATE;
Q4Finish DATE;
Q5Start DATE;
Q5Finish DATE;
QNT NUMBER;
Q1T NUMBER;
Q2T NUMBER;
Q3T NUMBER;
Q4T NUMBER;
QNR NUMBER;
Q1R NUMBER;
Q2R NUMBER;
Q3R NUMBER;
Q4R NUMBER;
BEGIN
case current_date
when current_date between to_date('01-JAN', 'DD-Mon') AND to_date('31-MAR', 'DD-Mon') then
QNStart := to_date('01-JAN', 'DD-Mon');
QNFinish := to_date('31-MAR', 'DD-Mon');
when current_date between to_date('01-APR', 'DD-Mon') AND to_date('30-JUN', 'DD-Mon') then
QNStart := to_date('01-APR', 'DD-Mon');
QNFinish := to_date('30-JUN', 'DD-Mon');
when current_date between to_date('01-JUL', 'DD-Mon') AND to_date('30-SEP', 'DD-Mon') then
QNStart := to_date('01-JUL', 'DD-Mon');
QNFinish := to_date('30-SEP', 'DD-Mon');
when current_date between to_date('01-OCT', 'DD-Mon') AND to_date('31-DEC', 'DD-Mon') then
QNStart := to_date('01-OCT', 'DD-Mon');
QNFinish := to_date('31-DEC', 'DD-Mon');
End Case
:Q1Start := ADD_MONTHS(:QNStart,-3);
:Q1Finish := ADD_MONTHS(:QNFinish,-3);
:Q2Start := ADD_MONTHS(:QNStart,-6);
:Q2Finish := ADD_MONTHS(:QNFinish,-6);
:Q3Start := ADD_MONTHS(:QNStart,-3);
:Q3Finish := ADD_MONTHS(:QNFinish,-3);
:Q4Start := ADD_MONTHS(:QNStart,-4);
:Q4Finish := ADD_MONTHS(:QNFinish,-4);
:Q5Start := ADD_MONTHS(:QNStart,-5);
:Q5Finish := ADD_MONTHS(:QNFinish,-5);
select COUNT(COUNT(*)) INTO :Q1T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q1Start AND :Q1Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q2T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q2Start AND :Q2Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q3T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q3Start AND :Q3Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q4T from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :Q4Start AND :Q4Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :QNT from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN :QNStart AND :QNFinish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q1R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q2R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q2Start AND Q2Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q3R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q3Start AND Q3Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :Q4R from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN Q4Start AND Q4Finish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q5Start AND Q5Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
select COUNT(COUNT(*)) INTO :QNR from FF_ACTIONS a
WHERE a.DATE_ENTERED BETWEEN QNStart AND QNFinish
AND a.COMPANY_NAME IN
(select f.COMPANY_NAME from FF_ACTIONS f, FF_ACTION_TYPE_LOV a
WHERE f.DATE_ENTERED BETWEEN Q1Start AND Q1Finish
AND a.ACTION_SCORE = 'Y'
AND f.INPUT_TYPE = a.ACTION_NAME
GROUP BY f.COMPANY_NAME)
GROUP BY a.COMPANY_NAME;
EXECUTE
Cheers
SimonDave had given you already some good advice.
Your code is not only too complicated, but you have also probably a bug in it. You have for instance a QNstart as to_date('01.01, 'dd.mm') and a corresponding QNfinish as to_date('31.03', 'dd.mm'). As this means, it is the time portion at 00:01, you are missing the complete last day of this interval. So you better do:
declare
l_QNstart date;
l_Q1start date;
l_Q1finish date;
l_q1t number
begin
l_QNstart := trunc(sysdate, 'Q');
l_Q1start := add_months(l_QNstart, -3);
l_Q1finish := l_QNstart;
-- your condition is now
select count(count(*))
into l_q1t
from ff_actions f, ff_action_type_lov a
where f.date_entered >= l_Q1start and f.date_entered < l_Q1finish
and a.action_score = 'y'
and f.input_type = a.action_name
group by f.company_name;
end;
/Message was edited by:
Leo Mannhart
btw: what is the difference between Q1Start / Q3 Start and Q1Finish / Q3Finish resp.? -
Throwing error message for a component
I have a form in which there are several fields. One of field is LOV for which i do some validation on valuechangeListener. If that validation fails, i send error to the form for that particular field. It is working fine. but after this if user submits the form, it is submitted. In case of validation failed by framewrok, it is not submitted. HOw i can set that component in error state so that form is not submitted. I am using following code to throw error or component:
FacesMessage msg = new FacesMessage(FacesMessage.SEVERITY_ERROR, null, "Invalid value");
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(binding.getClientId(context), msg);
I am using Jdeveloper 11g with latest patch set of ADF i.e. 11.1.3.xHi,
actually you are not throwing an error but set a message to display to the user. Can't you just create a validation for the input field. The field has a property for you to define a managed bean validation reference. You can generate the method skeleton from JDeveloper.
Frank -
Database.LoadDataSet() method is throwing error during retriving data from empty table of IBM DB2 database. It is giving error code "SQL0100W".
“Error Message: 0NO_DATA [02000] [IBM] [DB2 / NT] SQL0100W FETCH, whether there is a line to be UPDATE or DELETE, or of the query result is an empty table .
SQLSTATE = 02000”Hello SharayuPandit,
For issues regarding DB2, i suggest that you could post it to DB2 related forum:
https://www.ibm.com/developerworks/community/forums/html/forum?id=11111111-0000-0000-0000-000000000842
Regards.
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Hi experts,
I have a big issue in production server,
the Queues are stuking in smq2 " command to tRFC/qRFC: execute LUW again"
if i am reprocess or press F6 it is going manually.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- Call Adapter
-->
- <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="INTERNAL">CLIENT_RECEIVE_FAILED</SAP:Code>
<SAP:P1>400</SAP:P1>
<SAP:P2>ICM_HTTP_CONNECTION_FAILED</SAP:P2>
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText><html><head><title>Application Server Error</title> <style type="text/css"> body { font-family: arial, sans-serif;} </style> </head> <BODY text="#172972" link="#808080" vlink="#808080" alink="#8e236b" bgcolor=white leftmargin="0" topmargin="0" marginheight="0" marginwidth="0"> <table height="61" width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td background="http://xidist:8000/sap/public/icman/img/bluebar_tile.gif" height="30"><table> <tr> <td width=5></td> <td width=20% nowrap><font face=arial size="-1" color=white>SAP NetWeaver Application Server </font></td><td width=75% align="right" nowrap><font face=arial size="-1" color="white"><a href="http://help.sap.com/">Help </font></td><td width=5% nowrap></font></td> </tr></table> </td><td rowspan=2 width=122 height=61 valign=top><img src= "http://xidist:8000/sap/public/icman/img/theme.jpg" width=122 height=61 border=0 alt="SAP"></td> </tr><tr><td background="http://xidist:8000/sap/public/icman/img/graybar_tile.jpg" height="31"> </td></tr> </table> <br><br> <table width=800> <tr><td width=50 nowrap> </td><td> <H2><b>404 Resource not found</b></H2><br>Partner not reached<br><br><hr> <table border="0"> <tr><td>Error:</td><td>-20</td></tr> <tr><td>Version:</td><td>7000</td></tr> <tr><td>Component:</td><td>ICM</td></tr> <tr><td>Date/Time:</td><td>Wed May 14 15:50:24 2014 </td></tr> <tr><td>Module:</td><td>icxxconn.c</td></tr> <tr><td>Line:</td><td>2341</td></tr> <tr><td>Server:</td><td>xidist_GXI_00</td></tr> <tr><td>Error Tag:</td><td>{004654a1}</td></tr> <tr><td>Detail:</td><td>Connection request from (110/28816/0) to host: xidist, service: 50000 failed (NIESERV_USED) EX-T110, U28816, 001 PIAFUSER, 10.1.57.50, 15:50:24, M0, W1, , 1/0</td></tr> </table> <p></p> </td></tr></table> <table><tr><td width=50 nowrap></td> <td nowrap><FONT SIZE=-1><a href="http://www.sap.com/">© 2001-2009, SAP AG</a></FONT> </td></tr></table> </body></html></SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack>Error while receiving by HTTP (error code: 400, error text: ICM_HTTP_CONNECTION_FAILED)</SAP:Stack>
<SAP:Retry>N</SAP:Retry>
</SAP:Error>
Regards,
Kiran polaniDear Sriram Ramani,
in ths case some scenarios are working good. proxy to soap, idoc to soap and jdbc to proxy, proxy to jdbc all are working with out error.
but my problem is in Soap to RFC case..
for all RFC communication channels are working but some time it is throwing RFC_COMMUNICATION_ERROR and messages are stucks in smq2 with retry.
when i check with retry error with in sxmb_moni log showing ICM_HTTP_CONNECTION_FAILED with error code 400.
not for all signals for few signals for some time..
Why it is happening i can't understand.
in repository it is saying Repsitory object hmi failed and address already in use.
is there any problem with loading IR objects.
Please suggest me good suggestion for this type of issue what can do for this to resolve.
Regards,
Kiran Polani -
Universe created on BI cube throws error.
Hi Experts,
This is the first time i have created one universe based on a Cube in BI system. After universe creation, I am logined into WebIntelligence Rich Client and create a query on top of the created universe which throws errors like below.
A database error occured. The database error text is: The supplied XML is not valid. <CONSTANT>. (WIS 10901)
I tried with many combinations, but, in result sometimes with blank report and sometimes throwing above error.
Cany anyone suggest me what is the solution for this ?
Regards,
SureshHi Suresh,
The reason here is some thing has bean changed at SAP BI Cube after creation of Universe in Business Objects.
Solution for this is " Refresh the universe structure " and then save it and export and try create reports. If it is not the reason give some more clarity on your error.
Thanks.
ChiranGV -
Submit button not throwing error
I have a Search Region and a table to show the data based on Search criteria...After search I am modifying the some fields with invalid data in Result table
and I am clicking the Submit button, it is throwing error(I written Exception in EO level) , the same time if i click the submit button second time , it is not validating and throwing the error and record is saving to database with invalid data.
Could you please help me and let me know what I am missing here?I written the following code in EntityExpert, the EntityExpert code in EO
public boolean isItemNameValid(String ItemName)
System.out.println("Entity Expert");
System.out.println(ItemName);
boolean isActive = false;
ItemNameVVOImpl ItemNameVO = (ItemNameVVOImpl)findValidationViewObject("ItemNameVVO1");
ItemNameVO.initQuery(ItemName);
if (ItemNameVO.hasNext())
isActive = true;
System.out.println("Return ");
System.out.println(isActive);
return isActive;
and I am calling the above method in EOImpl
public void setItemName(String value)
if ((value != null) || (!("".equals(value.trim()))))
ItemNameEntityExpert expert = getItemNameEntityExpert(getOADBTransaction());
if (!(expert.isItemNameValid(value)))
throw new OAAttrValException(OAException.TYP_ENTITY_OBJECT,
getEntityDef().getFullName(), // EO name
getPrimaryKey(), // EO PK
"Item Name", // Attribute Name
value, // Attribute value
"MSC", // Message product short name
"UPDATE_SUPPLY_ITEMNAME"); // Message name
setAttributeInternal(ITEMNAME, value);
Please check.
Thanks,
K.Murugesan -
Why Webdynpro framework is throwing error in this testcase
Hi All,
In my requirement i'm using the WTGXXX(for Discount field) in Webdynpro ABAP.
If I validate the entries there is a standard check performed by the webdynpro framework when entries other than the numercie fields are given.
This is a webdypro ALV.
For Ex:
when the discount is given as (9-33) it is throwing the error that "The entered value can only contain numerical characters" but it is not throwing any error for (9-(9/22)) or (9-(42)) instead it is calculating the values which is a good feature. But why, (9-33) this case is not handled.
I tried to keep the value in duegging it is working fine.
Before any event gets trigerred for the above cases the value is calculated by the framweork by defalut.
Some times some cases are handled sometimes not.
I'm unable to get this behavior of the framework.
For the first time (9-3*3) calcuation is throwing error from the 2nd time onwards this is giving the correct output. When I load the view for the first time and do this check then error is thrown, second time when the other calcuations are done and again do this calcaulation then this error is not shown instaead it is giving me 0 which is the result.
This case applies to the cases where the expressions result in 0 (defalut values)
One mroe test case for this is - (9-9).
Eventhough the user knows the result of these expresions, these are throwing errors.
How to handle this.
I tired handling this with own DE/Domanin CURR 15 but for the 1st time this error is theon 2nd time on wards the reuslt is shown correct.
Isn't a special case.
When I bound the table again with INITIAL data then again the erorr is thrown for that case.
ie I have one RESET button where i will bind the table again with the INITIAL table entries then agian the error is thrown for (9-3*3).
Is there any SAPNOTE applied or Exceptions to this. Please let me know.
Please replicate the same in Webdynpro Java also and share the reasons.
Currently I'm doing this by taking the string only to avoid these erorrs in case of Zero.
Regards,
Lekha.Hi
Use another forum for Webdynpro questions: Web Dynpro ABAP
BR, Sergei -
Throwing error from backing bean on button click?
Hi Everyone,
i have two lovs out of 2 lovs user has to select atleast one lov value and click on find button.
On clicking on find button im getting lov values if atleast one is not selected i need to throw one error message.
How can i throw error message?
Thanks.Hi,
i used this code:
public String showMessage() {
System.out.println("inside error msg");
String messageText="Please select emp or ename";
FacesMessage fm = new FacesMessage(messageText);
* set the type of the message.
* Valid types: error, fatal,info,warning
//fm.setSeverity(FacesMessage.SEVERITY_INFO);
fm.setSeverity(FacesMessage.SEVERITY_ERROR);
FacesContext context = FacesContext.getCurrentInstance();
context.addMessage(null, fm);
System.out.println("end of error msg");
return null;
And called this method on clicking on find button in the method binding of the find button but it didnt show any error dialog bax rather it moved to the next page as usual.
Code in the find backing bean:
public String Find(){
if(Emp.equalsIgnoreCase("ALL") && EmpNo.equalsIgnoreCase("ALL")) {
String k=this.showMessage();
return "Find"; // to navigate to next page
what to do now? -
Throwing Error on the OAF Page
Hi All,
I have a requirement to throw an error message in the OAF page.
I have added a new region in the standard OAF page. In that region controller, am checking one condition. If that condition fails i have to throw an error message in the OAF page.
I am using the following code:
throw new OAException("EGO","XXAT_FILE_ALREADY_EXIST",null,OAException.ERROR,null);
But am not able to get the error message in the page.
Kindly please help me in resolving this issue.
Many thanks in advance.
Kind Regards,
MyvizhiHi Sushant,
I have created a custom region and attached that into a standard page. Now am trying to throw the error message in the standard page from the region controller.
I tried all the following ways, In this if condition is true this should throw the error message.
try
if( a3 != "-1" && lineflag[a].equalsIgnoreCase("Y"))
throw new OAException("EGO","XXAT_FILE_ALREADY_EXIST",null,OAException.ERROR,null);
catch(Exception e)
Context.writeDiagnostics(this," Exception in enabling error message : ",OAFwkConstants.STATEMENT);
try
if( a3 != "-1" && lineflag[a].equalsIgnoreCase("Y"))
OAException oaexception = new OAException("EGO","XXAT_FILE_ALREADY_EXIST",null,OAException.ERROR,null);
pageContext.putDialogMessage(oaexception);
catch(Exception e)
Context.writeDiagnostics(this," Exception in enabling error message : ",OAFwkConstants.STATEMENT);
if( a3 != "-1" && lineflag[a].equalsIgnoreCase("Y"))
String errorMessage = "This file already exists as a pending attachment";
throw new OAException(errorMessage,OAException.ERROR);
Kind Regards,
Myvizhi -
In Shopping cart once we assign Supplier & check throws error like lock
Hi SRM Gurus,
While creating Shopping cart and on onssignment of supplier code syetem is throwing error
"Supplier 0600004713 is locked for organizational unit Corp Purchasing Organization"
as i have check system is created for Invoicing party and not created as vendor in Poratal, in back like PP01 assignment.
Please suggest.
Quick response will be appreciated.
Regards,
Vinod
Edited by: Vinod Malagi on Jun 10, 2011 9:48 AMVinod,
Kindly go to transaction BP, provide the supplier BP and check if there is a central block that exists for this supplier. If so, remove that block.
Regards,
Nikhil
Maybe you are looking for
-
I am trying to setup air print with a canon PIXMA iP7250 and win 7 64bit
I am trying to setup air print using a canon PIXMA iP 7250 printer and win 7 64bit
-
Can i stream hd movies on time capsule to my ipad or TV
would appreciate if anyone can help
-
Is Saudi Government Ban on FaceTime a lie?!
I have browsed apple communities for the reason of banning facetime from iPhones sold in Saudi and the answer from Apple always blame the government of Saudi for imposing this ban and request customers to complain to their government. When users do t
-
Trying to convert from .mts to .flv
I'm trying out Flash Video Encoder for creating .flv files to add to my web site. My Canon HD HG10 creates .mts video files, which aren't being uploaded when I try to "Add" them. This format is not in the drop-down list. Any suggestions? Scott
-
When a logout from X I get a Out of Signal in my monitor
And I can't see anything, i just get a blank screen. I must do a logon with root in a diferent terminal (just memorizing my tiping, cause I can't see anything) and do a reboot. Then all returns to normality till a do a new "startx" My X works fine (G