Problem with BO Data Services Function lookup_ext
HI All,
I have to be able to lookup values in a code table based on three input parameters and returning two description columns. Using the wizard and then adding comments I get the following:
lookup_ext(
Lookup Table Specifications
[DS_DB2_RISM.RIMS.RIT_CODE_TABLE,'NO_CACHE','MAX'],
Return Column List Specification
[T_DESCRIPTION,T_LONG_DESC],
Default Value List
[NULL,NULL],
Condition List
[C_STATUS,'=',$IV_STATUS,C_TYPE,'=',$IV_TYPE,C_VALUE,'=',$IV_VALUE],
Order By List
Output Variable List
[$OV_DESCRITION,$OV_LONG_DESC],
SQL Override
SET ("run_as_separate_process"='no',
"output_cols_info"='<?xml version="1.0" encoding="UTF-8"?>
<output_cols_info>,
<col index="1" expression="no"/>
<col index="2" expression="no"/>
</output_cols_info>)
This produces the following errors
[Function:CF_DB2_RIMS_CODE] (Ln21): Syntax error : found <[end of text]> expecting <IF, a decimal>
[Function:CF_DB2_RIMS_CODE] The function <CF_DB2_RIMS_CODE> contains an invalid expression. additional information: syntax error>. (BODI-1111182)
I have tried
1) including the single quote after > on the line with xml version
2) Including the single quote before ) on the last line
3) Getting ride of the SET statement altogether
Any suggestions welcome?
David,
What you described should work. Personally, I'd write the output of the first dataflow to a table, just to insure your output is what you think it is. Then test the second against the data in the table you created in the first workflow. Continue the process until each independent job works as expected. Then combine into the single workflow.
Similar Messages
-
Problem with CFMX web service function return
I made a post yesterday about a web service function I was
writing, as it turns out my post was extremly incorrect for my
problem. With this web service function I can return an array just
fine, I can return one instance of an object just fine, however,
when I try to return an array of the object I keep getting the
error:
Could not perform web service invocation "SelectGames"
because AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode: faultString: [org.apache.axis.AxisFault : ; nested
exception is: coldfusion.xml.rpc.CFCInvocationException:
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
have been modified. Please refresh your web service client.]];
nested exception is: coldfusion.xml.rpc.CFCInvocationException:
[org.apache.axis.AxisFault : ; nested exception is:
coldfusion.xml.rpc.CFCInvocationException:
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
have been modified. Please refresh your web service client.]]
faultActor: faultNode: faultDetail: {
http://xml.apache.org/axis/}stackTrace:
AxisFault faultCode: {
http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode: faultString: [org.apache.axis.AxisFault : ; nested
exception is: coldfusion.xml.rpc.CFCInvocationException:
[java.lang.IncompatibleClassChangeError : Dependent CFC type(s)
have been modifie..
which basically means that the CF server needs restarted.
However if I restart the CF server, no matter how many times I am
still getting this error. If I change up my web service function to
return just a normal array of integers or strings, or I change it
to return one instance of the arbritrary complex type it all works
just fine. I am still a little new on this subject and any
enlightenment would be great. If anyone has found a way around this
please let me know.
Here is my complex type:
<cfcomponent>
<cfproperty name="Game_id" type="numeric">
<cfproperty name="gameDate" type="date">
<cfproperty name="Starttime" type="string">
<cfproperty name="Place" type="string">
<cfproperty name="Level" type="string">
<cfproperty name="Sport" type="string">
<cfproperty name="Gender" type="string">
<cfproperty name="Opponent" type="string">
<cfproperty name="Type" type="string">
<cfproperty name="Link" type="string">
</cfcomponent>
I loop trhough a query and set a cfobject of the types above,
then I append that object to an array and try t o return the array.
Here is the basics of the loop:
<cfset theArray = arrayNew(1)>
<cfobject component = "games" name = "test>
<cfloop query ...>
<!--- set values to test ---->
<cfset arrayApend(theArray, test)>
</cfquery>
<cfreturn theArray>
my return type is array, I think the problem is I need to
specify the return type to be an array of arbritray complex types
which is impossible to do in CF. Anyone find a way to get around
this?? Any feed back at all would be greatly appreciated.Yes, I have tried it and return type any does not work in
this situation since this function is being consumed by a web
service. It needs to be in the form of an array of arbritrary type
that is defined in a cfc file. Since this is WSDL the returntype
has to be specified to every last bit. -
Problems with logical data service
This is related to thread 837141 (Problems creating physical data service to relational table)
I have been able to create the logical data service that uses the physical service (mentioned above).
However when I try to create a library function to update (shown below)
declare function lper:update($new as element(per:Persistance2)) as xs:boolean {*
* let $changed :=*
* for $n in $new*
* let $old := lper:read($new/Project, $ew/Property)*
* return*
* fn-bea:replace-value(fn-bea:changed-element($old), "Value", $n/Value)*
_let $return := {color:#ff0000}pper:update{color}($changed)_*
* return fn:true()*
WorkSpace Studio gives the following error (for the line underlined above, and the function in red)
*{bea-err}FUNC002: Illegal use of side-effect procedure {ld:Physical/Persistance2}update with arity 1. Side-effect procedures cannot be invoked from a side-effect free context*
Any idea why?functions, by definition, do not have side-effects. So calling something that had a side-effect (procedure) is not allowed.
You need to create a library procedure.
Your
declare function lper:update($new as element(per:Persistance2)) as xs:boolean {*
needs to be
declare procedure lper:update($new as element(per:Persistance2)) as xs:boolean {*
- mike
Edited by: mikereiche on Dec 12, 2008 5:10 PM -
Insert problems with Php Data Services
Hi All,
I am using Flex Data wizards to create a simple CRUD application and i am having problems adding data. It works the first time i start my application but subsequent calls to the insert fail.
I am using FB2 Beta with MAMP. The php classes are being generated using the data wizard. i have tried commenting out mysqli_close but still it doesn't work.
public function createDive_events($item) {
$stmt = mysqli_prepare($this->connection, "INSERT INTO $this->tablename ( divedate, divesite, divecost, description, totalDays) VALUES ( ?, ?, ?, ?, ?)");
$this->throwExceptionOnError();
mysqli_bind_param($stmt, 'ssdsi', $item->divedate, $item->divesite, $item->divecost, $item->description, $item->totalDays);
$this->throwExceptionOnError();
mysqli_stmt_execute($stmt);
$this->throwExceptionOnError();
$autoid = mysqli_stmt_insert_id($stmt);
mysqli_stmt_free_result($stmt);
//mysqli_close($this->connection);
return $autoid;
Any ideas, what i am doing wrong. I have tried using the update and it works only once as well, it seems that the connection to the function is lost after the first call.
thank you,
NayanOk, this is what I got.
create a mysql table (`people`) with columns id (auto increment), first_name, last_name, age
in the data/service panel connect to a php service, generate a php service from the database and the people table
generate a form from the createPeople service call
observe that in source view we have something like this: <fx:Script>
<![CDATA[
protected function button_clickHandler(event:MouseEvent):void {
createPeopleResult.token = peopleService.createPeople(people);
]]>
</fx:Script>
<fx:Declarations>
<valueObjects:People id="people"
people_id="{parseInt(people_idTextInput.text)}"
age="{parseInt(ageTextInput.text)}"/>
<peopleservice:PeopleService id="peopleService"/>
<s:CallResponder id="createPeopleResult"/>
</fx:Declarations>
If you now try to execute the code, you will find that you can only insert one person, where each successive addition silently fails.
There is nothing really wrong with the php code (well actually since it's auto incrementing on id you should pull all id reference out of the insert statements...) rather there is a problem with the flex people object.
If you make the following changes the code will work
protected function button_clickHandler(event:MouseEvent):void {
var myPerson:People = new People();
myPerson.first_name = people.first_name;
myPerson.last_name = people.last_name;
myPerson.age = people.age;
createPeopleResult.token = peopleService.createPeople(myPerson);
- e -
Problem with BO Data Services - Multiple Dataflows in single WorkFlow
Hi All,
I have defined a single job, with one workflow and multiple data flows within the workflow.
The idea is to build a single load file adding data from each subsequent data flow. For example
- First Data Flow adds header records
- Second adds 1st level details
- Third adds subsequent details
- etc
- Last Dataflow sorts the output file created in the previous dataflows into the correct order
Building this in stages the first data flow worked with the subsequent data flows blank.
Then added the second data flow and linked to the first which caused the job to fail.
Error Message as follows
Syntax error at line <1>: <>: found <[end of text]> expecting <'(', &ERROR, __AL_LOOKUPEX_TRAN, __AL_SEARCH_REPLACE_TRAN,
__FUNC_TABLE, __AL_MEMORY_TABLE, __AL_EXTRACT_FROM_XML, __AL_TRAN_FUNCTION, __AL_SCHEDULE, ALL, AND, CREATE, FLOWOUTPUT, IF,
INTEGER, Numeric, READ, a decimal, -, SYSTEM, VARIABLE, VIEW, +, NOT>.
1 error(s), 0 warning(s).
Any suggestions on how to get this to work appreciated?David,
What you described should work. Personally, I'd write the output of the first dataflow to a table, just to insure your output is what you think it is. Then test the second against the data in the table you created in the first workflow. Continue the process until each independent job works as expected. Then combine into the single workflow. -
Problem with RESTful web service
I am running into a problem with Flex Web Services (REST) in trying to get the proper format returned. I can see that the HTTP header is set to
Accept: */*;
rather than
Accept: application/xml
when sending the request. The web service was generated via the web services HTTP data services wizard. I edited it to set the resultFormat to xml
// Constructor
public function _Super_UsersService()
// initialize service control
_serviceControl = new mx.rpc.http.HTTPMultiService();
var operations:Array = new Array();
var operation:mx.rpc.http.Operation;
var argsArray:Array;
operation = new mx.rpc.http.Operation(null, "getUsers");
operation.url = "http://localhost:8888/users";
operation.contentType = "";
operation.method = "GET";
operation.resultFormat = "xml";
//operation.serializationFilter = serializer0;
operation.properties = new Object();
operation.properties["xPath"] = "/";
operation.resultType = valueObjects.Users;
operations.push(operation);
_serviceControl.operationList = operations;
model_internal::initialize();
How does one configure the accept header?Hi,
I have posted a simple application with the RESTful reference:
http://apex.oracle.com/pls/apex/f?p=13758
I can give you full privileges on this so you can look at the WEB service reference. Shall I send to you separately for login user?
It is using the RESTful service: http://apex.oracle.com/pls/apex/nd_pat_miller/demo/employee/{deptno}
This RESTful service tests fine when I test from within the RESTful web service module of the Workspace.
I based this on the Video demo tutorial for RESTful web service that Oracle published for 4.2 release. The video seemed to exclude the {deptno} in the URL but when I try that, it doesn't work either.
This is the error I am getting when I run this on my Apex environment: (it, of course, will not run the web service in the apex.oracle.com environment)
class="statusMessage">Bad Request</span>
</h3>
</div>
</div>
<div id="xWhiteContentContainer" class="xContentWide">
<div class="xWhiteContent">
<div class="errorPage">
<p>
<ul class="reasons"><li class="badRequestReason"><span class="target" style="display:none;">uri</span><span class="reason">Request path contains unbound parameters: deptno</span></li>
</ul>Thanks,
Pat
Edited by: patfmnd on May 8, 2013 3:33 AM -
Problem with tpcall and tpgetrply functions
Hi,
I have a problem with tpcall() and tpgetrply() functions.
In this example (invoke tpcall()):
FBFR32 *buf;
FLDLEN32 buflen;
buf = a_buffer.getBuffer(); /* getBuffer() returns FBFR32* */
buflen = a_buffer.getLongitud();
/* at this point: buf == a_buffer.getBuffer() */
if (tpcall(a_contenedor.getServname(),
(char*)a_contenedor.getBufferPeticion()->getBuffer(),
a_contenedor.getBufferPeticion()->getLongitud(),
(char**)&buf,
(long*)&buflen,
0) == -1)
if (tperrno != TPESVCFAIL)
LANZAR_EXCEPCION(CADENA_WHAT_SB,
"Error en funcion Execute(), llamada tpcall()",
tpstrerror(tperrno))
/* at this point: buf != a_buffer.getBuffer() */
tpcall() function change the memory address of buf. What is the problem? Is wrong my code? Is a problem with tuxedo version?
My tuxedo version is:
tmadmin -vINFO: BEA Tuxedo, Version 8.0, 32-bit, Patch Level 306
INFO: Serial #: 650522264137-773290431251, Expiration NONE, Maxusers 150
INFO: Licensed to: Telefonica Moviles Espa?a, S.A.
INFO: 56-bit Encryption Package
Thanks,
ANTONIO.There's nothing wrong with your code or tuxedo. tpcall (and tpgetrply) can change the address of the return buffer if it needs to allocate more memory to hold the data. This is the reason why you pass a pointer to the buffer as the output buffer parameter to tpcall and tpreturn. Everything is working as expected.
-
Problem with reversal of Service entry Sheet
Hi All,
I am facing a problem with reversal of service entry sheet. The user has posted the document in dec 2009 and now the user wants to reverse the doc. I told the process how to reverse it. But when she is trying to revoke the acceptance, she is getting error log.I told her to reset the posting date to present date.Now she tried to change the doc date but she is getting error as "604 item 010 WBS element ****** budget exceeded year 2009". So i advised her further to increase the budget in the year 2009. Even that solution is not working.
Please help in this regard
Thanks & Regards
Nisha PrasadHi,
The user is not authorised to change the budget. The person resposible for this is telling that increasing the budget wont help. can you tell me how to view whether the budget is available for the system in the period or not? Can you please help me in this regard?
Thanks
Nisha -
PDF Generation with LiveCycle Data Services
Hi everybody!
I am using LiveCycle Data Services to generate a dynamic pdf. I worked with this tutorial : livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/pdfgen_1.html and i adapted the code to my own example.
I created a pdf template with livecycle designer and i succeed to generate the pdf thanks to LiveCycle Data Services.
Here is my problem :
In LiveCycle Designer i create a table and bind my data connection (from xml source) to this table and i bind subforms to repeating data.
It works when i try to open an overview of the pdf with LiveCycleDesigner.
But when i try to generate the pdf with livecycle data service, there is no repeat of my data. There is only a number of items corresponding to the minimum of repeating i set in livecycle designer binding window...
Is it possible to generate repeating data with LiveCycle DS ?
an example of my xml source :
<item id="1">
<data>blabla</data>
</item>
<item id="2">
<data>blabla</data>
</item>
In livecycle designer, if i set the minimum of repeating to 1, LiveCycle DS generate a pdf with only one item.
if i set the minimum of repeating to 2, LiveCycle DS generate a pdf with only 2 items. etc.
I don't know how to generate an indeterminate number of items...
Thanks in advance for your help.
Bye
GuillaumeHi Guillaume,
there is no limitation. Dynamic PDF files can be generated with Livecycle Data Services.
You should have a look at the XML file generated by your Flex code. Try to save it and see how the XML file behaves when you generate a PDF preview with Designer. You can go to the menu: File > Properties > Preview > Use XML test data...
With the XFAHelper class, you can either load a PDF or a XDP file. Have you tried with a XDP ?
I've attached a dynamic PDF file that I've created for a customer. I generate a dynamic PDF file using LiveCycle Data Services. Maybe you'll find some clues within the file.
Michael -
Facing problem with a date column in select query
Hi,
I am facing problem with a date column. Below is my query and its fainling with " invalid number format model" .
Query: SELECT *
FROM EMP
WHERE trunc(LAST_UPDATED) >= to_date(to_char(22-05-2009,'dd-mm-yyyy'),'dd-mm-yyyy')
LAST_UPDATED column is "DATE" data type.
Please help me ThanksRadhakrishna Sarma wrote:
SeánMacGC wrote:
WHERE LAST_UPDATED >= to_date('22-05-2009','dd-mm-yyyy');
You do not need the TRUNC here in any case.
I don't think so. What if the user wants only data for 22nd May and the table has records with date later than 22nd also? In that case your query willl not work. In order for the Index to work, I think the query can be written like this I think Sean is right though. Use of TRUNC Function is quiet useless based on the condition given here, since the to_date Function used by OP will always point to midnight of the specified date, in this case 22-05-2009 00:00:00.
Regards,
Jo
Edit: I think Sean proved his point... ;) -
Problem with the date conversion
Hi Friends,
i am facing the problem with the date conversion, Actuall my requirement is to pass the date to the screen based on the user setting roles(SU01).
I have fetched the user setting date format by using the funciton module SUSR_GET_USER_DEFAULTS, The function module picks the exact user date setting (Like as MM/DD/YYYY, MM.DD.YYYY, DD.MM.YY).
After that i have implemented the FORMAT_DATE_4_OUTPUT funciton module for converting of the user role setting date format into system date format.
for the english language case the funciton module FORMAT_DATE_4_OUTPUT works fine but the funciton module not supported for other languages
Can you please provide the Function Moudle for user setting date conversion.
The funciton module is most important for us,
Thanks
Charan
Moderator message: date conversion questions = FAQ, please search before posting.
Edited by: Thomas Zloch on Dec 21, 2010 2:19 PMHope this logic helps you.
DATA LF_DATE TYPE DATS VALUE '21122010'. " 21-dec-2010
DATA LF_DATE_BI(10).
WRITE LF_DATE TO LF_DATE_BI. "Now LF_DATE_BI contains the date in user format
"Now populate the value LF_DATE_BI to the screen field -
PSP: problems with viewing data
Hello.
I'm currently working at on-line shop and have some problems with viewing data from database. When there is no much inserts to table its working very well. But after inserting all Inserts I have its acting weird.
Sample with 10 INSERTS:
http://gafgarion.atspace.com/psp/1.jpg
Sample with 100 INSERTS:
http://gafgarion.atspace.com/psp/2.jpg
I'm using Oracle 9i. when I have more data in my database its acting weird. There is SELECT only from one table, but sometimes I have data from other tables aswell.
I didnt touch any config files or something else. Only created new User and DAD.
any ideas what should I do to fix that ??
thnx in adviceHello,
My guess is that you are speaking about PLSQL Server Pages (PSP), and the PLSQL Web Toolkit.
This is why I do not think that you will have lot of answer since this forum is targeted toward Web Services developer (XML, SOAP, and so on)
I am inviting you to ask your question on the general Oracle Application Server - General or PLSQL forums.
Regards
Tugdual Grall -
Facing lot of problems with the DATA object -- Urgent
Hi,
I am facing lot of problems with the data object in VC.
1. I created the RFC initially and then imported the data object in to VC. Later i did some modifications to RFC Function module,and when i reload the data object, I am not able to see the new changes done to RFC in VC.
2. Even if i delete the function module, after redeploying the IVIew, results are getting displayed.
3. How stable is the VC?
I restarted the sql server and portal connection to R3 is also made afresh.... still i am viewing such surprise results..
please let me know what might be the problem.Hi Lior,
Are u aware of this problem.
If yes, please let me know...
Thanks,
Manjunatha.T.S -
i have a problem with notification of service battery since i installed mavericks. My macbook air is 2012 version. Any solution?
This from the crash log
Dyld Error Message:
Library not loaded: /System/Library/Frameworks/Accounts.framework/Versions/A/Accounts
Referenced from: /System/Library/StagedFrameworks/Safari/Safari.framework/Safari
indicates there is a missing library on your system. What problems were you having before that caused you to delete Safari? How did you delete it?
You're best bet in this case is to re-install the OS. While doing a re-install will not normally harm your user data having a good working backup in cases like this is essential. -
PLSQL Server Pages (PSP): problems with viewing data
Hello.
I'm currently working at on-line shop and have some problems with viewing data from database. When there is no much inserts to table its working very well. But after inserting all Inserts I have its acting weird.
Sample with 10 INSERTS:
http://gafgarion.atspace.com/psp/1.jpg
Sample with 100 INSERTS:
http://gafgarion.atspace.com/psp/2.jpg
I'm using Oracle 9i. when I have more data in my database its acting weird. There is SELECT only from one table, but sometimes I have data from other tables aswell.
I didnt touch any config files or something else. Only created new User and DAD.
any ideas what should I do to fix that ??
thnx in adviceHello,
My guess is that you are speaking about PLSQL Server Pages (PSP), and the PLSQL Web Toolkit.
This is why I do not think that you will have lot of answer since this forum is targeted toward Web Services developer (XML, SOAP, and so on)
I am inviting you to ask your question on the general Oracle Application Server - General or PLSQL forums.
Regards
Tugdual Grall
Maybe you are looking for
-
How do you find the number of lines in a file?
I need to count how many lines there are in a file, I am using a BufferedReader to read in the data, but how can I find the number of lines? Thanks
-
Design approach help : BIC Mapping Tool Conversion
Hi All, Design approach: we know that BIC mapping tool can be used for EDI to XML conversion. also i know that its a Any to any converter. But we prefer EDI to EDI XML conversion only via this tool and do the mapping in SAP PI as it would be easy to
-
File Reciever content conversion header line
Hi all, I want to convert a XML to a CSV-file using file reciever adapter. Doing this I want to add the The parameter for content conversion: recordset: ET_AWB,item parameter list: item.addHeaderLine = 1 item.fieldSeparator = ; ET_AWB.addHeaderLine
-
Sale order : item release authorisation
hi friends, our bussiness requirement, from the sale order they want to release the item level authorisation .. based on manager approval to release the item ,then only item moving for production. PLS HELP ME FOR CONFIGURATION SETTING with regards D
-
Open ECW files in Adobe Photoshop CS4
Hallo Is it possible to open ECW(Enhanced Compressed Wavelet) files in to Photoshop CS4? Kind regards. Daniel Scholten