Trex Search Error : attribute value is not a date or wrong syntax
Search Failure
Error during search occurred - com.sapportals.wcm.WcmException: attribute value is not a date or wrong syntax
Yes, Let me know if you know about it.
Thanks
Deepak
Similar Messages
-
After executing an RFC, I want to get a table of elements that is passed as the Output.
As soon as I try to get the first element of the Output table, via xxxNode.getElementAt(index), I receive this error:
Attribute value is not valid for attribute 'Flag_Stam_Orig' of model class 'it.prova.mctciat_rfc.checkprintstatus_sr00.Zmctbpm_Rfc_Output_Print_A'
com.sap.tc.cm.base.model.BaseGenericModelClass.setAttributeValue(BaseGenericModelClass.java:327)
com.sap.tc.cm.arfc2.model.ARFC2GenericModelClass.unmarshalFromJCoRecord(ARFC2GenericModelClass.java:287)
com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.doUnMarshalAt(ARFC2ModelObjectCollection.java:97)
com.sap.tc.cm.arfc2.model.ARFC2ModelObjectCollection.get(ARFC2ModelObjectCollection.java:120)
com.sap.tc.webdynpro.progmodel.context.ModelElementList.getElement(ElementList.java:1726)
com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:387)
com.sap.tc.webdynpro.progmodel.context.Node.getElementAt(Node.java:395)
it.prova.mctciat_rfc_client_man.rfcclientmanagercomp.RFCClientManagerComp.callSpecifiedRFC(RFCClientManagerComp.java:1163)
Before calling .getElementAt(index) I use xxxNode.size() to get the number of returned elements and then I execute a for loop in which I visit all the elements of node XXX.
Can someone help me?
Thank you,
Pietro
Edited by: pietro.m on Dec 3, 2010 2:10 PMI've solved the problem.
At first the attribute generating the error was defined ABAP-side as a custom domain based on CHAR (1) type that allowed only two possible values: "O" or "X". But the ABAP function returned only " " (empty space) or "X".
So we tried to add "O" to the set of the legitimate values, but that did not solve the problem.
Next we got rid of the custom type and custom domain and we defined the parameter as a simple CHAR (1).
That made the problem disappear and, best of all, I can't still figure why. Anyway, the problem is solved and that is all that matters now.
*I'm sorry to say this in a SAP forum, but SAP's approach to type checking sucks really hard.*
It is not possible that the ABAP side does not check types and the Java side raises these kind of errors (and, please note that it is not allowed to change a model type in Java).
Anyway, thank you Nizamudeen for helping me.
Edited by: pietro.m on Dec 7, 2010 9:41 AM -
htmlb:tableView : (table) Attribute value is not a valid reference
Hi All,
In Table view i am getting the following error.
The following error text was processed in the system:
<htmlb:tableView>: (table) Attribute value is not a table
My code in View is
CREATE OBJECT MODEL TYPE ZCL_HREPAN_MODEL_MAIN.
CREATE OBJECT tv_itr1 TYPE ZCL_HREPAN_MODEL_ITR_STATUS exporting model = model.
%>
<htmlb:tableView id = "reportsTable1"
headerVisible = "true"
headerText = "All PANs:"
footerVisible = "true"
design = "alternating"
visibleRowCount = "20"
width = "100%"
fillUpEmptyRows = "false"
columnWrapping = "false"
columnWidth = "200"
sort = "server"
selectionMode = "lineEdit"
iterator = "<%=tv_itr1%>"
table = "//MODEL/DATE_RANGE_PAN" >
</htmlb:tableView>
in above DATE_RANGE_PAN is table from model 'ZCL_HREPAN_MODEL_MAIN'
Controller as below: DO_REQUEST.
if lr_event is bound and lr_event->server_event = 'allpans'.
lo_model ?= get_model( 'model_id_status' ).
lo_display_view->set_attribute( name = 'model' value = lo_model ).
lo_display_view = create_view( view_name = 'allpans.htm').
call_view( lo_display_view ).
ENDIF.
DO_INIT as below
lo_model ?= create_model( class_name = 'ZCL_HREPAN_MODEL_MAIN'
model_id = 'model_id_status').
please help me how to solve this??
REgards,
KishanI think DATE_RANGE_PAN is not table. Make sure its a table. If issue persist, post the data type declaration here.
Raja -
Attribute value does not accepitng expression ???
]I am using Tomcat 5.0.28 and JSTL 1.0.6. I put the files standard.jar and jstl.ar within my web-app WEB-INF/lib folder. I made no changes in web.xml. Then I ran the following program as test.jsp
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
<html>
<body>
<c:set var="hello" value="Hello World!"/>
<c:out value="${hello}"/>
</html>
</body>
I'm getting this error message <br>
"According to TLD or attribute directive in tag file, attribute value does not accept any expression"With Tomcat5, you should be using JSTL1.1.
The JSTL1.0 tags didn't let you use runtime expressions like <%= expr %> with your tags. Instead you had to use ${expr}.
${expr} is a runtime expression in JSP2.0, where it wasn't before.
JSTL1.1 provides a new tld with the correct settings.
You should be using JSTL1.1 and the uri:
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
See full spiel on JSTL vs Tomcat versions in this thread:
http://forum.java.sun.com/thread.jspa?threadID=629437&tstart=0 -
I've created a model containing a customer entity with various domain based attributes. I've populated the entities via a combination of manual entry and the staging tables. In the source system I have approx 950 customer records, all of which
fail validation on the source system as some of the attributes will be maintained only in MDS and are not in the source systems I'm pulling the initial data from.
I ran the MDSModelDeploy.exe to create a package containing data on the source system. I then ran the package to apply the package using the -deployclone option on my target system. I piped the output into a flat file for review.
Here is the error I'm receiving.
MDSModelDeploy operation failed. Elapsed time: 00:01:00.2314612
Error:
A clone of the "Subzero_1" model cannot be deployed.
An error occurred while processing message request type 'EntityMembersMergeRequest'. See exception details for more information.
Package deployment failed with 344 errors
The attribute value is not valid.
The attribute value is not valid. (repeated 344 times)
Any ideas what the issue might be? I have tried verbose logging as well and did not find anything that would point me in the direction of the problem. The end result was that the model was not deployed to the target.
I have also created a package without data, deployed that, then applied the data. This gets the model to the target and the data also appears to be there but I did receive this error on the deployupdate.
This is on SQL Server 2012.I am seeing the same error. Created a model, Cloned the model. Made changes to the clone (Schema and Data), and used MDSModelDeploy UpdateModel to update the primary (not cloned) model. In looking at the log, I see the error shown below, but I do not
see anything that points to what was happening at the time.
I tried running a SQL trace to see if one of the SQL commands received an error, but none of the commands did.
In looking at the model that was updated, I can see all of the schema changes were made, and most of the data was updated. There is one table that did not update completely. The attributes in the table consist of Domain Specific and text attributes only.
I also verified that everything on both models was validated before starting.
In the weblog I see the error listed below, but there is nothing in the data that would match that value
Not sure were to go from here....
Chad
--- MDSMODELDEPLOY ERROR RECEIVED ---
MDS Error: 0 : Microsoft.MasterDataServices.WebUI.ServiceAdapterObjectInvalidException: An error occurred while processing message request type 'EntityMembersMergeRequest'. See exception details for more information.
at Microsoft.MasterDataServices.WebUI.ServiceAdapter.InspectResponseForErrors(MessageRequest request, MessageResponse response)
at Microsoft.MasterDataServices.WebUI.ServiceAdapter.ExecuteRequest[TRequestType,TResponseType](MdmServiceOperation`2 operation, TRequestType request)
at Microsoft.MasterDataServices.WebUI.ServiceAdapter.DoEntityMembersMerge(EntityMembers entityMembers)
at Microsoft.MasterDataServices.Deployment.ModelDeployer.BatchEntityMembersMerge(Collection`1 masterData, Boolean membersOnly, Int32 batchSize, Int32 totalBatches, Collection`1 errors)
at Microsoft.MasterDataServices.Deployment.ModelDeployer.UpdateData(Collection`1 masterData, Warnings errorsAsWarnings)
at Microsoft.MasterDataServices.Deployment.ModelDeployer.DeployUpdate(Package package, Boolean includeData, Identifier targetVersionId)
at Microsoft.MasterDataServices.Deployment.Utility.ModelDeploy.DeployUpdate(String serviceName, String packageFile, String versionName)
at Microsoft.MasterDataServices.Deployment.Utility.ModelDeploy.Main(String[] args)
DateTime=2014-02-06T16:03:17.8405277Z
-- WEB ERROR RECEIVED --
MDS Verbose: 0 : Unable to convert value of query string parameter Id = VID to an integer
DateTime=2014-02-06T17:18:00.7367274Z -
More "TypeError: Error #1006: value is not a function." trouble
var pntClk:int = -1;
for(var t:int=0;t<tab1PointsArray.length;t++) {
tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <Problem code i think. Error points to line 117
trace("Event listener added to " + tab1PointsArray[t].name);
function tab1PointClicked (event:MouseEvent):void {
for(var T:int=0;T< tab1PointsArray.length;T++) {
if (event.currentTarget == tab1PointsArray[T]) {
pntClk = T;
openInfoTab();
trace("Point Clicked: " + tab1PointsArray[T].name);
I wrote some previous code that worked and i copy pasted over to this project and it doesn't work.
The weird part to me is that it still runs the first set of trace statements (there are 8 objects in that array). But, it won't run the second set...
for(var l:int=0;l<Tab2PointsArray.length;l++) {
Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
trace("Event listener added to " + Tab2PointsArray[l].name);
function tab2PointClicked (event:MouseEvent):void {
for(var t:int=0;t< Tab2PointsArray.length;t++) {
if (event.currentTarget == Tab2PointsArray[t]) {
pntClk = t;
openInfoTab();
trace("Point Clicked: " + Tab2PointsArray[t].name);
if you need more code or info to help me figure this out let me know
I don't know actionscript that well so bare withThe output window:
Event listener added to PointHitch
Event listener added to PointPTO
Event listener added to PointSafety
Event listener added to PointGearBox
Event listener added to PointBlade
Event listener added to PointTeeth
Event listener added to PointGrapple
TypeError: Error #1006: value is not a function.
at TractorSawFlash_fla::MainTimeline/frame1()[TractorSawFlash_fla.MainTimeline::frame1:115]
I think the first set of listeners is added then the error happens and the second set of listeners doesn't get added.
Here is more code.
import fl.transitions.Tween;
import fl.transitions.easing.*;
import flash.events.MouseEvent;
var infoTabIsOpen:Boolean = false;
//TAB CODE
var TractorSawTabToggle:Boolean = false;
var TabButtonArray:Array = new Array(TabTR3200.TR3200BTN, TabTR3200LT.TR3200BTNLT);
for (var i:int=0; i<TabButtonArray.length; i++)
TabButtonArray[i].id = i;
TabButtonArray[i].addEventListener(MouseEvent.CLICK, onClick);
TabTR3200.TR3200BTN.mouseEnabled = false;
TabTR3200.TR3200BTN.buttonMode = false;
function onClick(event:MouseEvent):void{
if (TractorSawTabToggle == true) {
TractorSawTabToggle = false;
swapChildren(this.TabTR3200,this.TabTR3200LT);
TabTR3200LT.TR3200BTNLT.mouseEnabled = true;
TabTR3200LT.TR3200BTNLT.buttonMode = true;
TabTR3200.TR3200BTN.mouseEnabled = false;
TabTR3200.TR3200BTN.buttonMode = false;
else {
TractorSawTabToggle = true;
swapChildren(this.TabTR3200,this.TabTR3200LT);
TabTR3200LT.TR3200BTNLT.mouseEnabled = false;
TabTR3200LT.TR3200BTNLT.buttonMode = false;
TabTR3200.TR3200BTN.mouseEnabled = true;
TabTR3200.TR3200BTN.buttonMode = true;
//END TAB CODE
//MovieTab
MovieButton.addEventListener(MouseEvent.CLICK, clickedMainMovie);
MovieTab.Exit_BTN.addEventListener(MouseEvent.MOUSE_DOWN, outMainMovieTrigger);
function clickedMainMovie(event:MouseEvent):void {
var TabMainMovieDown:Tween = new Tween(MovieTab, "y", Strong.easeOut, -600, 0, 1, true);
var TabMainMovieAlphaIn:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 0, 1, 1, true);
if (infoTabIsOpen == true) {
closeInfoTab();
function outMainMovieTrigger(event:MouseEvent):void {
outMainMovie();
function outMainMovie():void {
trace("Three Sixty MOUSE_OUT");
var TabMainMovieUp:Tween = new Tween(MovieTab, "y", Strong.easeOut, 0, -600, 1, true);
var TabMainMovieAlphaOut:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 1, 0, 1, true);
MovieTab.FLVPlayback.stop();
//END MovieTab
//INFO TAB ARRAYS AND FUNCTIONS
var placeHolder:String = "null";
var tab1PointsArray:Array = new Array(this.TabTR3200.PointHitch, //0
this.TabTR3200.PointPTO, //1
this.TabTR3200.PointSafety, //2
this.TabTR3200.PointGearBox, //3
this.TabTR3200.PointBlade, //4
this.TabTR3200.PointTeeth, //5
this.TabTR3200.PointGrapple, //6
placeHolder); //7
var Tab2PointsArray:Array = new Array(this.TabTR3200LT.PointHitch, //0
this.TabTR3200LT.PointPTO, //1
this.TabTR3200LT.PointSafety, //2
this.TabTR3200LT.PointGearBox, //3
this.TabTR3200LT.PointBlade, //4
this.TabTR3200LT.PointTeeth, //5
placeHolder, //6
this.TabTR3200LT.PointPushingBar);//7
var pictureArray:Array = new Array(placeHolder,
placeHolder,
placeHolder,
placeHolder,
placeHolder,
placeHolder,
placeHolder,
placeHolder);
var textArray:Array = new Array(InfoTab.txtHitch, //0
InfoTab.txtPTO, //1
InfoTab.txtSafety, //2
InfoTab.txtGearbox, //3
InfoTab.txtBlade, //4
InfoTab.txtTeeth, //5
InfoTab.txtGrapple, //6
InfoTab.txtPushingBar); //7
//Point Clicked Code
var pntClk:int = -1;
for(var t:int=0;t<tab1PointsArray.length;t++) {
tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <LINE 115 were it says the error is happening
trace("Event listener added to " + tab1PointsArray[t].name);
function tab1PointClicked (event:MouseEvent):void {
for(var T:int=0;T< tab1PointsArray.length;T++) {
if (event.currentTarget == tab1PointsArray[T]) {
pntClk = T;
openInfoTab();
trace("Point Clicked: " + tab1PointsArray[T].name);
for(var l:int=0;l<Tab2PointsArray.length;l++) {
Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
trace("Event listener added to " + Tab2PointsArray[l].name);
function tab2PointClicked (event:MouseEvent):void {
for(var t:int=0;t< Tab2PointsArray.length;t++) {
if (event.currentTarget == Tab2PointsArray[t]) {
pntClk = t;
openInfoTab();
trace("Point Clicked: " + Tab2PointsArray[t].name);
//Info Tab
var ImageLoader:Loader;
ImageLoader = new Loader();
// make text invisible
function makeTextInvisible():void {
for (var txt:int=0; txt<textArray.length; txt++) {
textArray[txt].visible = false;
InfoTab.Exit_BTN.buttonMode = true;
InfoTab.Exit_BTN.addEventListener(MouseEvent.CLICK, closeInfoTrigger);
function closeInfoTrigger(e:MouseEvent):void {
trace("close feature triggered");
closeInfoTab();
//OPEN INFO TAB
function openInfoTab():void {
//EnableExitButton
var EnableExitButton:Timer = new Timer(333, 1);
InfoTab.mouseEnabled = true;
InfoTab.mouseChildren = true;
var tabIn:Tween = new Tween(InfoTab, "y", Regular.easeOut, 600, 60, 10, false);
var tabAlphaIn:Tween = new Tween(InfoTab, "alpha", Regular.easeOut, 0, 1, 10, false);
//pictureSetter
if (pictureArray[pntClk] != "null") {
ImageLoader.load(new URLRequest(pictureArray[pntClk]));
this.InfoTab.ImageHolder_MC.addChild(ImageLoader);
textArray[pntClk].visible = true;
infoTabIsOpen = true;
//end open info tab
//CLOSE INFO TAB
function closeInfoTab():void{
//deactivating setters
InfoTab.mouseEnabled = false;
InfoTab.mouseChildren = false;
trace("feature tab deactivated");
//unload picture
if (pictureArray[pntClk] != "null") {
ImageLoader.unload();
this.InfoTab.ImageHolder_MC.removeChild(ImageLoader);
ImageLoader = null;
//tab action variables
var tabAlphaOut:Tween = new Tween(InfoTab, "alpha", Regular.easeIn, 1, 0, 8, false);
var tabOut:Tween = new Tween(InfoTab, "y", Regular.easeIn, 60, 600, 8, false);
infoTabIsOpen = false;
//exit timer
var exitTimer:Timer = new Timer(200, 1);
exitTimer.addEventListener(TimerEvent.TIMER, exitHandler);
exitTimer.start();
function exitHandler(event:TimerEvent):void
trace("exit handler fired");
makeTextInvisible();
//end exit timer
pntClk = -1;
//end closeFeatureTab -
Error #1006: value is not a function
I'm trying to port a big library to Alchemy. I've run into something that looks like an Alchemy bug. I have a class with a static member. There's a static function that uses it. Something like this:
In foo.h:
class Foo
static Bar m_pBar;
static void doSomething (int a);
In foo.cpp:
Bar Foo::m_pBar;
void Foo::doSomething (int a)
m_pBar.doSomething(a);
When I do Foo::doSomething(a), I get TypeError: Error #1006: value is not a function.
On the other hand, if I use a local variable of the same type in the static function (just to test), it works :
void Foo::doSomething (int a)
// Test
Bar pBarTest;
pBarTest.doSomething(a);
So my guess is that the static variable is not being initialized. This works fine when compiled with g++ in Linux and Mac and with Visual C++ 2008 in Windows so it looks like Alchemy is doing something wrong.
Has anyone encountered this same issue?Ignore, it was something in the called class, oops
-
Read attribute value of a master data object's master data object
Hi Guys,
I have a peculiar condition where I need to read attribute value of a master data object's master data.
Requisition (ZREQUI) is linked to Candidacy (ZCDCY) by object called Recquisition.
Candidacy (ZCDCY) is linked to Candidacy Activity (0CDCY_ACT) by object called Candidacy.
I want to populate attribute called due date in ZREQUI by reading lowest value of due date value of 0CDCY_ACT. There can be multiple hits.
If I can get the code to do this, I would really appreciate it.Here is the outline of the code ,as per my understanding..chk if it can help u
In start routine write a select statement to pick all the data from 0cdcy_act.
select 0CDcY_ACT ZCDCY DuE_DATE from /BiC/P0CDCY_ACT
into table itab1
for all entries in source_package
where ZCDCY = source_package-ZCDCY.
as you need the lowest due date, sort the iTAB1
sort itab1 by due_date ZCDCY. (default is acending order)
In the field routine of your due date
Read table itab1tnto wa_itab1 where
ZCDCy = source_fields -ZcDcY.
now duedate = wa_itab1-duedate. -
We are getting an intermittent problem when we do a search from our KM iview. When we put in a search string it for the most part comes back with the appropriate data, but every once in a while we get the following error either as an informational text at the top of the iview or as stack dump error.
Error during search occurred - com.sapportals.wcm.WcmException: Index does not exist;index=ourindex (Errorcode 2007)
Does anybody have any information on a fix for this?Hi Aaron
Indexes are created in ECC or any other SAP for trex search and sometimes indexes may be have to be rebuild, have you checked this particular index shown in the error message 'ourindex'
Bhudev -
Oracle XML DOM parser - attribute values are not printing on the screen ??
Hi Everyone,
I am just trying to use oracle DOM parser to paerse one of my xml file, java file can be compiled and run agianst a xml file, But I cannot see any attribute values printing on the screen..
Appreciate if anyone can help, where I have gone wrong please?
Below is the java file:
// menna puthe DOMSample eka - duwanawa 19/12/2005
import java.io.*;
import java.net.*;
import org.w3c.dom.*;
import org.w3c.dom.Node;
import oracle.xml.parser.v2.*;
public class DOMSample { //public class eka ***
static public void main(String[] argv){ // main method eka ###
try {
if (argv.length != 1){
// Must pass in the name of the XML file...
System.err.println("Usage: java DOMSample filename");
System.exit(1);
// Get an instance of the parser
DOMParser parser = new DOMParser();
// Generate a URL from the filename.
URL url = createURL(argv[0]);
// Set various parser options: validation on,
// warnings shown, error stream set to stderr.
parser.setErrorStream(System.err);
parser.showWarnings(true);
// Parse the document.
parser.parse(url);
// Obtain the document.
Document doc = parser.getDocument();
// Print document elements
System.out.print("The elements are: ");
printElements(doc);
// Print document element attributes
System.out.println("The attributes of each element are: ");
printElementAttributes(doc);
catch (Exception e){
System.out.println(e.toString());
} // main method eka ###
static void printElements(Document doc) {
NodeList nl = doc.getElementsByTagName("*");
Node n;
for (int i=0; i<nl.getLength(); i++){
n = nl.item(i);
System.out.print(n.getNodeName() + " ");
System.out.println();
static void printElementAttributes(Document doc){
NodeList nl = doc.getElementsByTagName("*");
Element e;
Node n;
NamedNodeMap nnm;
String attrname;
String attrval;
int i, len;
len = nl.getLength();
for (int j=0; j < len; j++){
e = (Element)nl.item(j);
System.out.println(e.getTagName() + ":");
nnm = e.getAttributes();
if (nnm != null){
for (i=0; i<nnm.getLength(); i++){
n = nnm.item(i);
attrname = n.getNodeName();
attrval = n.getNodeValue();
System.out.print(" " + attrname + " = " + attrval);
System.out.println();
static URL createURL(String filename) { // podi 3 Start
URL url = null;
try {
url = new URL(filename);
} catch (MalformedURLException ex) { /// BBBBBB
try {
File f = new File(filename);
url = f.toURL();
} catch (MalformedURLException e) {
System.out.println("Cannot create URL for: " + filename);
System.exit(0);
} // BBBBBB
return url;
} // podi 3 End
} //public class eka ***
// End of program
output comes as below:
Isbn:
Title:
Price:
Author:
Message was edited by:
chandanalHi Chandanal,
I edited your code slightly and I was able to get the correct output.
I changed the following line:
for (int j=0; j >< len; j++)to:
for (int j=0; j < len; j++)I have included the complete source below:
// menna puthe DOMSample eka - duwanawa 19/12/2005
import java.io.*;
import java.net.*;
import org.w3c.dom.*;
import org.w3c.dom.Node;
import oracle.xml.parser.v2.*;
public class DOMSample {
//public class eka ***
public static void main(String[] argv) {
// main method eka ###
try {
if (argv.length != 1) {
// Must pass in the name of the XML file...
System.err.println("Usage: java DOMSample filename");
System.exit(1);
// Get an instance of the parser
DOMParser parser = new DOMParser();
// Generate a URL from the filename.
URL url = createURL(argv[0]);
// Set various parser options: validation on,
// warnings shown, error stream set to stderr.
parser.setErrorStream(System.err);
parser.showWarnings(true);
// Parse the document.
parser.parse(url);
// Obtain the document.
Document doc = parser.getDocument();
// Print document elements
System.out.print("The elements are: ");
printElements(doc);
// Print document element attributes
System.out.println("The attributes of each element are: ");
printElementAttributes(doc);
} catch (Exception e) {
System.out.println(e.toString());
// main method eka ###
static void printElements(Document doc) {
NodeList nl = doc.getElementsByTagName("*");
Node n;
for (int i = 0; i < nl.getLength(); i++) {
n = nl.item(i);
System.out.print(n.getNodeName() + " ");
System.out.println();
static void printElementAttributes(Document doc) {
NodeList nl = doc.getElementsByTagName("*");
Element e;
Node n;
NamedNodeMap nnm;
String attrname;
String attrval;
int i, len;
len = nl.getLength();
for (int j = 0; j < len; j++) {
e = (Element)nl.item(j);
System.out.println(e.getTagName() + ":");
nnm = e.getAttributes();
if (nnm != null) {
for (i = 0; i < nnm.getLength(); i++) {
n = nnm.item(i);
attrname = n.getNodeName();
attrval = n.getNodeValue();
System.out.print(" " + attrname + " = " + attrval);
System.out.println();
static URL createURL(String filename) {
// podi 3 Start
URL url = null;
try {
url = new URL(filename);
} catch (MalformedURLException ex) {
/// BBBBBB
try {
File f = new File(filename);
url = f.toURL();
} catch (MalformedURLException e) {
System.out.println("Cannot create URL for: " + filename);
System.exit(0);
// BBBBBB
return url;
// podi 3 End
} //public class eka ***-Blaise -
List view error "Filter Value is not in a supported date format"
I've column "Name = Order Status","Type = Calculated" & Data Type = "Date and Time". I've given this Condition in the formula:- =IF(NOT([PO Date]=0),"ORDERED","NOT ORDERED"). I'm trying to create view
for this column but its getting error while create the view "Filter Value is not in a supported date format".
Same error I'm getting for column "Name = Status","Type = Calculated" & Data Type = "Number". I've given this Condition in the formula:- =IF([PO Date]="","",IF(NOT([Balance Qty]=0),"OPEN","CLOSED"))Can you check data type returned for your calculated column 'Balance Qty'?
Try to set it as Number. It may help you.
Thanks. -
SAP ECC 6.0 -- Business Connector / Error:Input values do not contain IDOC
Hello,
We have a scenario R/3 4.6C ORDRSP to the SAP business connector which is running fine. When I send the first IDoc the routing roule is created automatically and it can be adapted.
Now we switched to the ECC 6.0 system but I get the following error message:
"Input values do not contain IDOC" and no routing roule is created either. The status of the IDoc is 03.
Do you have any idea what the problem could be? Could it have anything to do with ECC 6.0?
Thank you for your support.Hi,
I hope you must have added new SAP ECC system under SAP tab on SAP BC page.
To check exact error information:
FIrst open SAP BC page in browser (http://localhoet:port)
Go to transaction tab, and there under TID box, enter transaction id corresponding to SM58. And check what it says.
About routing rule:
BC automatically creates routing rule, if not you can edit and direct them to correct process flow, or you can create new routing rule, as BC need routing rule to move IDOC ahead.
Please let us know further about error information, so that we can help you further.
Divyesh -
Our Search Service got hosed after install of SP1/June CU (didn't upgrade), so I re-created it, but when setting up rules, content sources, I am getting the following error:
This item could not be crawled because the crawler could not connect to the repository. I tried crawling using admin account, so I don't think it is permission related. The DisableLoopbackCheck in the registry is already set...
We previosly had crawl working on this farm, so shouldn't be because we are using host headers and the loopback issue. Does anybody have any ideas? Another error that may be related...
SharePoint Web Services Round Robin Service Load Balancer Event: EndpointFailure
Process Name: OWSTIMER
Process ID: 1612
AppDomain Name: DefaultDomain
AppDomain ID: 1
Service Application Uri: urn:schemas-microsoft-com:sharepoint:service:edd515218442481abce89e54e3c63a64#authority=urn:uuid:a297b0fb965f465ca42051f55fa3f4bd&authority=https://spapp-wc-2p:32844/Topology/topology.svc
Active Endpoints: 4
Failed Endpoints:3
Affected Endpoint:
http://[ourservername]:32843/edd515218442481abce89e54e3c63a64/ProfileService.svc
Any suggestions are appreciatted, this is a tricky one...
Jonathan HerschelMake sure your hosts file on each server in your farm has 127.0.0.1 webappname in it for each SPSite you're trying to crawl
Look in %systemroot%\system32\drivers\etc and edit the hosts file so that it has entry for web app
make sure search account listed as access account is also service admin for search service
check user policy on web app, make sure that account has full read
Check that SharePoint Web Services Root app pool is started on server that is indexing farm
if still cant crawl, give search account db_owner on content db using sql server management studio
Set BackConnectionHostNames for site collection.
Then in a non prod environment, reset index and perform a full crawl, repeat in prod.
Stacy Anothersharepointblog.blogspot.com -
Display 0 value for not applicable data found in Company Code Hierarchy
Dear Expert,
How to display 0 value inside company code hierarchy which has no data applicable data found in BW Report? I have created queries with Profit Center(PC) Hierarchy and inside this hierarchy there are several PC. Based on data in BW Cube some of the PC has no applicable data found. But my report should display all the PC inside this hierarchy with 0 value for no applicable data found. What should i do to default 0 value for no applicable data found for that PC so that my report will be display all PC in that hierarchy?
Best regards and thank you,
LinHi Lin,
Right now what value you are seeing when executing the query?
Thanks & Regards,
Vipin -
Error : The value is not set for parameter number"
Hello All,
I am getting an error message when I tried modifying a program by adding a new ID column to a database table.
All DML is working except the Delete. So to look at the delete method, I am setting the parameter correctly as can be seen in the code belwo.
Can someone please take a quick look and let me know where I need to tweak the code further.
Thanks
Fm
The piece of code is given below.
/* File Modified */
/* EmailSetupDao.java
* Generated by the MDK DAO Code Generator
package com.harris.mercury.setups.standard.emailsetup;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Vector;
import org.apache.log4j.Logger;
import com.harris.mercury.dao.CreateException;
import com.harris.mercury.dao.DAO;
import com.harris.mercury.dao.DataField;
import com.harris.mercury.dao.Holder;
import com.harris.mercury.dao.LocalResultProxy;
import com.harris.mercury.dao.RemoveException;
import com.harris.mercury.dao.ResultProxy;
import com.harris.mercury.system.DatabaseHelper;
import com.harris.mercury.system.database.dialect.Dialect;
* The EmailSetupDao class
public class EmailSetupDao implements DAO
protected static Logger logger = Logger.getLogger(EmailSetupDao.class);
/* This method is called by ResultProxies when they need
* the data they have retrieved in a ResultSet mapped
* to a holder.
public Holder createHolder(ResultSet rs) throws SQLException
EmailSetupHolder holder = new EmailSetupHolder(); // THE CODE GENERATOR NEEDS THIS VARIABLE
try
/* Assign the data into the new holder */
// $$START_CREATEHOLDER_CONVERSIONS
holder.setEmail_address( rs.getString("email_address") );
holder.setLogin_id( rs.getString("login_id") );
holder.setUser_name( rs.getString("user_name") );
holder.setSmtp( rs.getString("smtp") );
holder.setId(rs.getString("id") );
// $$END_CREATEHOLDER_CONVERSIONS
catch(SQLException sqle)
logger.error(sqle, sqle);
throw sqle;
return holder;
/* The findAll method returns a ResultProxy containing all the
* records in the pucemailr table, unless an extended where clause
* has been defined.
public ResultProxy findAll(Connection con) throws SQLException
LocalResultProxy result = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
// $$START_ALLFIND
result = new LocalResultProxy(this,con, "select email_address, login_id, user_name, smtp, id from pucemailr"+makeOrderBy());
// $$END_ALLFIND
return result;
/* Inserts a record into the pucemailr table using a EmailSetupHolder.
* An exception is thrown if it is not sucessful.
public void insert(Connection con, EmailSetupHolder holder) throws CreateException
CreateException ce = null;
PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
try
// Insert into the data base
// $$START_INSERT_PS
ps = con.prepareStatement("insert into pucemailr (email_address, login_id, user_name, smtp) values(?, ?, ?, ?) ");
// $$END_INSERT_PS
/* Assign the variables in the holder to their corresponding
* indexes in the prepared statement
ps = assignPreparedStatementValues(ps, holder, true) ;
// Try the insert
ps.executeUpdate();
catch (SQLException se)
ce = new CreateException(se.getMessage());
catch (Exception ex)
ce = new CreateException(ex.getMessage());
} finally {
DatabaseHelper.close(ps);
// Throw exception if error occurred
if (ce != null) {
throw ce;
/* This method will update a pucemailr record using the
* supplied EmailSetupHolder. If an error occurs, an exception
* is thrown.
public void update(Connection con, EmailSetupHolder holder) throws Exception
RuntimeException re = null;
PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
try
// $$START_UPDATE_PS
ps = con.prepareStatement("update pucemailr set email_address=?, login_id=?, user_name=?,smtp=? where id=?");
// $$END_UPDATE_PS
/* Assign the variables in the holder to their corresponding
* indexes in the prepared statement
ps = assignPreparedStatementValues(ps, holder, false) ;
// Try the insert
int ret = ps.executeUpdate();
if (ret != 1)
re = new RuntimeException("Update failed on table pucemailr in EmailSetupDao");
catch (SQLException se)
re = new CreateException(se.getMessage());
catch (Exception ex)
re = new RuntimeException(ex.getMessage());
} finally {
DatabaseHelper.close(ps);
// Throw exception if error occurred
if (re != null) {
throw re;
/* Using the EmailSetupHolder, this method locates records in the pucemailr table.
* Null values found in the holder are not used in the search.
* An exception is thrown if an error occurs.
public ResultProxy find(Connection con, EmailSetupHolder holder) throws SQLException
// THE CODE GENERATOR NEEDS THESE VARIABLES
ResultProxy result = null;
int needAnd = 0;
StringBuffer selectStatement = new StringBuffer();
// $$START_FIND
selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
if(holder.getId() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("id like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getId())+"%'");
if(holder.getEmail_address() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("email_address like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getEmail_address())+"%'");
if(holder.getLogin_id() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("login_id like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getLogin_id())+"%'");
if(holder.getUser_name() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("user_name like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getUser_name())+"%'");
if(holder.getSmtp() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("smtp like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getSmtp())+"%'");
// $$END_FIND
result = new LocalResultProxy(this, con, selectStatement.toString()+makeOrderBy());
return result;
/* Creates an Order by clause */
public String makeOrderBy()
String result = "";
// $$START_ORDERBY
result = " order by smtp";
// $$END_ORDERBY
return result ;
/* This method deltes a single record that matches all the
* variables found in the EmailSetupHolder.
* An exception is thrown if an error occurs.
public void delete(Connection con, EmailSetupHolder holder) throws RemoveException
RemoveException re = null;
PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
boolean hasVars = false;
StringBuffer deleteSQL = new StringBuffer();
deleteSQL.append( "delete from pucemailr where " );
// $$START_DELETE_SQL
if (hasVars)
deleteSQL.append(" and ");
if (holder.getEmail_address() != null) {
deleteSQL.append("email_address=?") ;
} else {
deleteSQL.append("email_address is null");
hasVars = true;
if (hasVars)
deleteSQL.append(" and ");
if (holder.getLogin_id() != null) {
deleteSQL.append("login_id=?") ;
} else {
deleteSQL.append("login_id is null");
hasVars = true;
if (hasVars)
deleteSQL.append(" and ");
if (holder.getUser_name() != null) {
deleteSQL.append("user_name=?") ;
} else {
deleteSQL.append("user_name is null");
hasVars = true;
if (hasVars)
deleteSQL.append(" and ");
if (holder.getSmtp() != null) {
deleteSQL.append("smtp=?") ;
} else {
deleteSQL.append("smtp is null");
hasVars = true;
if (hasVars)
deleteSQL.append(" and ");
if (holder.getSmtp() != null) {
deleteSQL.append("id=?") ;
} else {
deleteSQL.append("id is null");
hasVars = true;
// $$END_DELETE_SQL
try
ps = con.prepareStatement(deleteSQL.toString());
/* Assign the variables in the holder to their corresponding
* indexes in the prepared statement
int index = 1 ;
// $$START_DELETE_VARS
/* if( holder.getEmail_address() != null) {
ps.setString(index, holder.getEmail_address() );
index ++;
if( holder.getLogin_id() != null) {
ps.setString(index, holder.getLogin_id() );
index ++;
if( holder.getUser_name() != null) {
ps.setString(index, holder.getUser_name() );
index ++;
if( holder.getSmtp() != null) {
ps.setString(index, holder.getSmtp() );
index ++;
if( holder.getId() != null) {
ps.setString(index, holder.getId() );
index ++;
// $$END_DELETE_VARS
// Try the insert
int ret = ps.executeUpdate();
if (ret != 1)
re = new RemoveException("Delete failed on table pucemailr in EmailSetupDao");
catch (SQLException se)
re = new RemoveException(se.getMessage());
catch (Exception ex) {
re = new RemoveException(ex.getMessage());
} finally {
DatabaseHelper.close(ps);
// Throw exception if error occurred
if (re != null)
throw re;
/* This method finds records in pucemailr table that match the
* supplied where clause.
* An exception is thrown if an error occurs.
public ResultProxy advancedFind(Connection con, String whereclause) throws SQLException
// THE CODE GENERATOR NEEDS THIS VARIABLE AND THE PARAMETER VARIABLE 'whereclause'
StringBuffer selectStatement = new StringBuffer();
// $$START_ADVANCEDFIND
selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
// $$END_ADVANCEDFIND
selectStatement.append(" where ");
selectStatement.append(whereclause);
return new LocalResultProxy(this,con, selectStatement.toString()+makeOrderBy());
/* This methods returns a Vector of DataField objects that
* map the columns in the pucemailr table for the
* advanced find Where Clause Generator in the client. The extended
* where clause will be applied if one exists for this DAO.
public Vector<DataField> getQueryFields() {
Vector<DataField> v = new Vector<DataField>() ; // THE CODE GENERATOR NEEDS THIS VARIABLE
// $$START_QUERYFIELDS
v.addElement( new DataField( "email_address", "Email address", DataField.STRING ) ) ;
v.addElement( new DataField( "login_id", "Login id", DataField.STRING ) ) ;
v.addElement( new DataField( "user_name", "User name", DataField.STRING ) ) ;
v.addElement( new DataField( "smtp", "Smtp", DataField.STRING ) ) ;
v.addElement( new DataField( "id", "Id", DataField.STRING ) ) ;
// $$END_QUERYFIELDS
return v;
* Jira Issue NS 30679 - Faiz Qureshi March 7, 2013
* @param ps
* @param holder
* @param isInsert - Added Boolean parameter so the id parameter does not get passed for Insert DML statements
* @return
* @throws Exception
public PreparedStatement assignPreparedStatementValues(PreparedStatement ps, EmailSetupHolder holder, boolean isInsert)
throws Exception
// $$START_PS_SETS
if( holder.getEmail_address() != null)
ps.setString(1, holder.getEmail_address() );
else
ps.setNull(1, java.sql.Types.VARCHAR);
if( holder.getLogin_id() != null)
ps.setString(2, holder.getLogin_id() );
else
ps.setNull(2, java.sql.Types.VARCHAR);
if( holder.getUser_name() != null)
ps.setString(3, holder.getUser_name() );
else
ps.setNull(3, java.sql.Types.VARCHAR);
if( holder.getSmtp() != null)
ps.setString(4, holder.getSmtp() );
else
ps.setNull(4, java.sql.Types.VARCHAR);
if (!isInsert){
if( holder.getId() != null)
ps.setString(5, holder.getId() );
else
ps.setNull(5, java.sql.Types.VARCHAR);
// $$END_PS_SETS
return ps;
/* Do not delete this tag, it is reserved for adding new methods to the DAO */
// $$ START_MDK_RESERVED
// $$START_EDITABLE_SUB_TABLE_NAME
* Returns the table names used in this DAO
* @return the table names used in this DAO
public String[] getTableNames() {
// $$START_UNEDITABLE_SUB_TABLE_NAME
String[] tableNames = new String[] {"pucemailr"};
// $$END_UNEDITABLE_SUB_TABLE_NAME
return tableNames;
// $$END_EDITABLE_SUB_TABLE_NAME
// $$START_EDITABLE_SUB_FIND
* Using the EmailSetupHolder, this method locates records in the pucemailr table.
* Null values found in the holder are not used in the search.
* An exception is thrown if an error occurs.
* @param con The database connection
* @param holder holder containing the values to generate a query upon
* @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
* space in front of the order by, it will be automatically handled. Specify null to use the default
* or empty string for no ordering.
* @return The result of the search
* @throws SQLException if an error occurs in the search.
public ResultProxy find(Connection con, EmailSetupHolder holder, String orderBy) throws SQLException
// THE CODE GENERATOR NEEDS THESE VARIABLES
ResultProxy result = null;
int needAnd = 0;
StringBuffer selectStatement = new StringBuffer();
// $$START_FIND
selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
if(holder.getEmail_address() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("email_address like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getEmail_address())+"%'");
if(holder.getLogin_id() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("login_id like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getLogin_id())+"%'");
if(holder.getUser_name() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("user_name like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getUser_name())+"%'");
if(holder.getSmtp() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("smtp like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getSmtp())+"%'");
if(holder.getId() != null)
if ( needAnd > 0)
selectStatement.append(" and ");
else
selectStatement.append(" where ");
needAnd++;
selectStatement.append("Id like ");
selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getId())+"%'"); }
// $$END_FIND
result = new LocalResultProxy(this, con, selectStatement.toString() + (orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
return result;
// $$END_EDITABLE_SUB_FIND
// $$START_EDITABLE_SUB_FINDALL
* The findAll method returns a ResultProxy containing all the records in the pucemailr table,
* unless an extended where clause has been defined.
* @param con The database connection
* @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
* space in front of the order by, it will be automatically handled. Specify null to use the default
* or empty string for no ordering.
* @return The result of the search
* @throws SQLException if an error occurs in the search.
public ResultProxy findAll(Connection con, String orderBy) throws SQLException
LocalResultProxy result = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
// $$START_UNEDITABLE_SUB_FINDALL
result = new LocalResultProxy(this,con, "select email_address, login_id, user_name, smtp, id from pucemailr" + (orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
// $$END_UNEDITABLE_SUB_FINDALL
return result;
// $$END_EDITABLE_SUB_FINDALL
// $$START_EDITABLE_SUB_ADVANCEDFIND
* This method finds records in pucemailr table that match the supplied where clause.
* @param con The database connection
* @param whereclause The where clause for the select statement - do not include the "where" - it
* will be automatically prepended
* @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
* space in front of the order by, it will be automatically handled. Specify null to use the default
* or empty string for no ordering.
* @return The result of the search
* @throws SQLException if an error occurs in the search.
public ResultProxy advancedFind(Connection con, String whereclause, String orderBy) throws SQLException
// THE CODE GENERATOR NEEDS THIS VARIABLE AND THE PARAMETER VARIABLE 'whereclause'
StringBuffer selectStatement = new StringBuffer();
// $$START_ADVANCEDFIND
selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
// $$END_ADVANCEDFIND
selectStatement.append(" where ");
selectStatement.append(whereclause);
selectStatement.append((orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
return new LocalResultProxy(this,con, selectStatement.toString());
// $$END_EDITABLE_SUB_ADVANCEDFIND
// $$ END_MDK_RESERVED
}First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
Next we need to know the jdev version you are using!
As the code is generated I would first try to generate it again after the db change.
Timo
Maybe you are looking for
-
Sync Music will not sync voice memos. Why?
When I check "include voice memos" in Sync Music, and sync music, Voice Memos do not move into iTunes. Memo is 33 minutes but that does not really seem, to me, to be an issue. A search does not find it nor is there a Voice Memo Folder created in iT
-
The search service is not able to connect to the machine that hosts the administration component
Hi After uninstalling the binaries, and reinstalling / joining back to the farm, everything seems happy expect search. When we try and start the Search Service back, it takes us to the Search Application section, and shows this message; The search se
-
Report with Delivery number and header text as output
Hello all, I need to create a "quick and dirty" report that which will give me every delivery number, and the corresponding header text, in the month of July for given shipping points. I am having trouble figuring out how to get the header text for
-
I'll start by saying my experience with Verizon customer service has never been stellar. Last year in (July 2012) my iPhone 4 died in a horrible gatorade accident. I did not have insurance, so I added a line to my family plan and got a new iPhone 4
-
Cannot open Yahoo home page or email
Windows 7 home pro.