Null check for "ora:readFile()" function
Hi,
I want to check whether a particular file is present in a given folder in our local server.In case of success scenario the "ora:readFile()" function is working fine but if the file is not present in the same folder then,this function is getting failed with system exception ,reason:-message can't be null.
Can't we add a null check for this and continue the flow further?
Regards,
N.Das
Hi,
You should first try list operation in file adapter to check for the file then use the readfile() conditionally if file is found.
Try the function to mention the path as
ora:readFile(concat('file:',bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist','/ns1:filelist/ns1:file/ns1:directory'),'/',bpws:getVariableData('Invoke1_FileListing_OutputVariable','filelist','/ns1:filelist/ns1:file[1]/ns1:filename'))).
This will get you the content in base64encoded format. You can then decode it to get the text format data.
Thanks,
Durga
- It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).*
Similar Messages
-
Null check for a bind variable in view criteria
Hi, Greetings.
I am using Jdeveloper 11.1.2.0.
I have a view object, LocationsView, for locations table of the XE database.
I want to apply a condition, ((:bind_var is null) or (:bind_var is not null and location_id = :bind_var), in this LocationsView.
That is, I want to apply the condition only if the bind variable value is not null.
How can I construct this condition using a declarative view criteria?
Any help and hints on this regard is greatly appreciated.
Regards,
Guru KHi,
Thanks for the update and it is working perfectly fine.
Now, how can I set the "ignore null values" option as checked if I am constructing the criteria programmatically using view criteria row and view criteria item at runtime.
Thanks and regards,
Guru K -
Syntax check for tables and function modules
Hi,
I am writing a program that perform syntax check on object such as executable programs , function modules and tables.
Syntax check works fine for programs, but not for tables.
How can I perform syntax check on my tables or structures?
I get my data from the table TADIR. But I don't get my function modules from there. What is the table for this.
Thanks 4 ur replies.
Parvezhi
good
generally in sap while creating a table or structure we get the error and we solved them,but like reports during runtime it is not possible to check the syntax of a table or structure.
thanks
mrutyun^ -
Sales Area check for custom partner function
When processing sales orders in our system, it does not check the sales area for the customer of a custom partner function. Can this be setup via config or is there a an exit that can be used for this.
Thanks,
RoyYogesh -- Thanks for your response. However, it does not address the functionality issue.
Currently, I created new partner function ZZ (for example).
I assigned this partner function ZZ to account group Z000.
I created new partner XYZ in account group Z000, in sales area XX00/XX/XX.
I created a sales order in sales area YY00/YY/YY.
Problem is that system allows me to assign partner XYZ to this sales order.
How do I prevent this?
How do I enfore that system will only allow partner XYZ in the sales order, if the partner is created in the same sales area?
Edited by: krist d on Dec 13, 2010 4:33 AM -
Material Availablity check for production order - function module?
I have a production order with Material BOM, which has more than 30 components in it. Please suggest me if there is any function module to do the material availability check of a production order. I need the missing component list as output of that function module, with quantities if possible.
thanks,
SubbareddyYou might want to look at these FMs:
CO_ZA_AVAILABILITY_CHK_ORDER
ISA_AUC_MATERIAL_AVAILABILITY
Thanks,
Santosh -
Empty space check for text box
i need to verify null check for textbox fields and it sould not allow spaces as well.... is there any way like trim functions.. please help me..
Already tried with JavaScript's trim() and not working... I'm using es3Hello and welcome to the forum,
You do not tell which version you are using? And I suppose you are talking about a Text Entry Box?
If you want to check if the right text is entered, you'll have to tick 'Validate User Input' in the General accordion of the TEB Properties panel.
A HUD will appear under the TEB, labeled Correct Entries. With the + button you can add correct values (text that is correct when the TEB is validated), eventually check the 'Case Sensitive' option.
In the Options accordion you can check the captions to appear (like for a button or a click box).
When the user clicks the Submit button or uses the shortcut key for the TEB, one of two actions (Action accordion) will be performed:
Success: if the text was correct, you can choose there for 'Go to Next Slide'
Last Attempt after the attempts are exhausted
Lilybiri -
Spell check for any application
Having only just my iphone I can't believe there is no spell check for the mail functionality. Aside from that why is spell check unavailable for yahoo and gmail through the web browser? Any ideas please...
Move the associated plist files for those applications out of /Library/Preferences/ within your home folder to the Desktop. E.g., com.apple.textedit.plist for TextEdit, quit and relaunch TextEdit, and re-enable spell as you type. If that fixes things, delete the moved file, and do the same with any other apps where it appears to be broken.
-
Page Validation - Function Returning Boolean - Check for NULL
I have 3 Page Validations which all fire on "When Button Pressed" = "Submit".
<br><br>
Number 1 is of type "Item specified is NOT NULL" for "P199_BUSINESS_UNIT1".
<br>
Number 2 is of type "Item specified is NOT NULL" for "P199_BUSINESS_UNIT2".
<br>
Number 3 is of type "Function Returning Boolean" and has the following code:
<br><br>
IF :P199_BUSINESS_UNIT1 IS NULL AND
:P199_BUSINESS_UNIT2 IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
When P199_BUSINESS_UNIT1 is NULL and P199_BUSINESS_UNIT2 is NOT NULL, I get the Error from Validation 1. Perfect.
<br>
When P199_BUSINESS_UNIT1 is NOT NULL and P199_BUSINESS_UNIT2 is NULL, I get the Error from Validation 2. Perfect.
<br>
When P199_BUSINESS_UNIT1 is NOT NULL and P199_BUSINESS_UNIT2 is NOT NULL, I don't get an Error Message. Perfect.
<br><br>
When P199_BUSINESS_UNIT1 is NULL and P199_BUSINESS_UNIT2 is NULL, I get Error Message 1 & 2, <strong>but nothing from 3.</strong>
<br><br>
If I change the code to:
<br><br>
IF :P199_BUSINESS_UNIT1 = '01' AND
:P199_BUSINESS_UNIT2 = '01' THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
and change both values to '01', I get the appropriate Error Message.
<br><br>
What is going on? Is there some reason I can't check for NULL in a Function Returning Boolean?Scott,
<br><br>
Instead of adding the Validations, I changed my code from:
<br><br>
IF :P199_BUSINESS_UNIT1 IS NULL AND
:P199_BUSINESS_UNIT2 IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;
<br>to the following and got the desired results:
<br><br>
IF REPLACE(:P199_BUSINESS_UNIT1,<strong>'%null'</strong> || '%',NULL) IS NULL AND
REPLACE(:P199_BUSINESS_UNIT2,<strong>'%null'</strong> || '%',NULL) IS NULL THEN
RETURN FALSE ;
ELSE
RETURN TRUE ;
END IF ;<br>
Note that I changed the word REPLACE to upper case and the second occurrence of the word NULL to upper case to accentuate the fact that the '%null' is case sensitive, using "%NULL' does not work, it has to be "%null' in lower case.
<br><br>
<strong>Thanks for your help.</strong> -
How do I check for null date entires using custom JScript on a SharePoint NewForm.aspx?
Hi,
I have the below JScript:
/*Function to convert the US Date format to UK date format */
function parseDate(input) {
var parts = input.split('/');
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[2], parts[1]-1, parts[0]); // months are 0-based
/*Function to check if end date is before the start date */
function checkDates(){
var sd = parseDate($("input[title='From']").val());
var ed = parseDate($("input[title='Until']").val());
if(sd > ed) {
alert("Please check From and Until Date");
$("input[value$='Save']").attr('disabled', true); //hide save button
else
$("input[value$='Save']").attr('disabled', false); //show save button
The above works fine for checking sd > ed but I can't seem to check for null's, I have attempted the below which doesn't work:
/*Function to convert the US Date format to UK date format */
function parseDate(input) {
var parts = input.split('/');
// new Date(year, month [, date [, hours[, minutes[, seconds[, ms]]]]])
return new Date(parts[2], parts[1]-1, parts[0]); // months are 0-based
/*Function to check if end date is before the start date */
function checkDates(){
var sd = parseDate($("input[title='From']").val());
var ed = parseDate($("input[title='Until']").val());
if( (sd > ed) || (sd == null) || (ed == Null) ) {
alert("Please check From and Until Date");
$("input[value$='Save']").attr('disabled', true); //hide save button
else
$("input[value$='Save']").attr('disabled', false); //show save button
Any help appreciated.Hi aspnet-scotland,
Please post ASP.NET related questions in
ASP.NET forums where you could receive better responses.
Thanks for your understanding.
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. -
ORA-24347: Warning of a NULL column in an aggregate function
The following query works fine, normally.
select max(ship_date) Ship_date,msn.attribute7 from
mtl_serial_numbers msn,
mtl_item_categories mic,
mtl_categories mc
where msn.inventory_item_id = mic.inventory_item_id and
mic.category_id=mc.category_id and
mic.category_set_id=1 and
mc.segment1 in ('ILMI','ILM','ILMI-UNT')
Group by msn.attribute7
But when I include the same query inside a SQL report it gives me the Following error message
ORA-24347: Warning of a NULL column in an aggregate function
Help me out.I tried out with some Dummy Date, it worked fine.
But the problem I am facing here is I cannot assume
any Date for the corresponding column. Whether there
is any other possibility to avoid this problem without
giving any dummy date?
thanks,
chandru -
ORA-01423: error encountered while checking for extra rows in exact fetch
ERROR at line 1:
ORA-01423: error encountered while checking for extra rows in exact fetch
ORA-01722: invalid number
ORA-06512: at "Department.get_emp_name", line 57
ORA-06512: at line 14
Hi
The above are the error messages I am running into and I am not sure what it means at all. I do have a query which select few rows into cursor
cursor c_requested is
select * from departments where emp_id in (1, 2, 3)
now from these rows I again creating a query dynamically
open c_requested;
loop
fetch c_requested into deptID, name, authorized; -- declared variables
exit when c_requested%NotFound;
sqlstring := 'Select name from employees where deptID = ' || deptID || ' and Authorized = ' || authorized;
begin
execute immediate sqlstring into description; -- declared variable
exit;
exception when no_data_found then
description := 'FILTER_OUT';
end;
end loop;
close c_requested;
This code is inside a function get_emp_name(). When I execute this function I am getting the above errors. I really appreciate all your help. Please let me know if you need more information.
Thank you very muchThank you very much damorgan,
I looked through my code and figured out what was wrong. I had a varchar2 column in the table where I was passing a value 999 instead of '999'. Thanks again.
I have one more question. I am using cursor to loop through.. here is my code
rowcount integer;
cursor c_emp is
select * from employees where empID in (....);
begin
open c_emp;
rowcount := c_emp%RowCount;
loop
end loop;
dbms_output.put_line(rowcount);
end;
I am getting rowcount = 0 even though there are many values in it. I am not sure if I am using the where clause properly. Any help would be appreciated.
thank you. -
Check for null and empty - Arraylist
Hello all,
Can anyone tell me the best procedure to check for null and empty for an arraylist in a jsp using JSTL. I'm trying something like this;
<c:if test="${!empty sampleList}">
</c:if>
Help is greatly appreciated.
Thanks,
Greeshma...A null check might not be you best option. If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
In the C# method, first check if either is an empty string, if so return an empty string.
If not, TryParse the data, if successful, return a valid data string for EventDate. If not, error or return empty string, whichever satsifies the requirement. -
Check for null or empty in the functoid
I want to check for null and empty values on input source node. If there exists a null or empty in the input source node, I should not pass that to output destination node. Does the
following attachment work? I want to check for null or empty in the date and time and then concatenate them to send to output. If any of them is null or empty, the other should not fail. In the Not Equal Functoid I am checking for blank, but how to check for
null?A null check might not be you best option. If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
In the C# method, first check if either is an empty string, if so return an empty string.
If not, TryParse the data, if successful, return a valid data string for EventDate. If not, error or return empty string, whichever satsifies the requirement. -
ViewCriteriaRow attribute to check for null or not null
I Want to apply a view criteria to check for null or not null on a column , i see examples on how to set for value like
vcRow.setAttribute("Sal", "> 2500")but i need to check for Sal is null or not null ,
tried vcRow.setAttribute("Sal", null) and it is not working
and vcRow.setAttribute("Sal", "is null") gives me error .
can somebody help with correct syntax for this
Thanks for your timelooks like vcRow.setAttribute("Sal", "null") works
-
How does APEX check for null values in Text Fields on the forms?
Hello all,
How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
Declare
v_valid boolean;
Begin
IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := TRUE;
ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
v_valid := FALSE;
ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
v_valid := FALSE;
END IF;
return v_valid;
END;
My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
ThanksSee SQL report for LIKE SEARCH I have just explained how Select list return value works..
Cheers,
Hari
Maybe you are looking for
-
Split message mapping to integration process
Hi, I faced an error when trying to send a multiple message (after a message split) to an integration process and I would like to know the possibilities to resolve this issue. What I want to do (more details below) : 1. Get an order list from a datab
-
Is there an archive of Flash Player MSI's
I recently deployed the latest 10.1.85 version of Flash Player through GPO but it's not uninstalling 10.1.82. There is just a seperate install sitting in Add/Remove programs. I already deleted the 10.1.82 MSI out of the folder and replaced it with
-
I am a new upcoming Web Designer. I created two web pages for my web site, in Adobe Flash Pro CS3, and I published it for HTML view. I upload it to the server the page would play but when I'd go to click on the buttons that would link to the other pa
-
If I purchased my macbook air 13 inch 3 days ago, will I be able to get the new iWork and iLife for free, t I cannot return my macbook right now.
-
I used my time capsule (1st gen) as an external hard drive to store my iTunes files and my iTunes app is on my main iMac. Now, I've decided to move those iTunes files from my external hard drive (TC) back to my iMac where my iTunes app is located.