Boolean Parameter issue in utl_url.escape

Hello,
   I am trying to use below query with 2nd parameter as TRUE but I'm getting below error.
select utl_url.escape(url => 'http://www.sample.com/ümlat.php&\^#q=name', escape_reserved_chars => TRUE) from dual;
Error:
[Error] Execution (16: 100): ORA-00904: "TRUE": invalid identifier
I should pass the parameter as TRUE ( default is FALSE)
Anyone can support me to over come from this issue.
FYI - I tried by creating a user defined function and it is working fine but I want to use directly in SELECT statement than using function.

This isn't an Oracle Text question, but I can probably answer it anyway.
"TRUE" is a PL/SQL expression for a boolean datatype.  There is no boolean datatype in SQL. Therefore, it is not possible to directly call a PL/SQL procedure requiring a boolean parameter from a SQL select query.  You must wrap it in a procedure using only SQL datatypes, as you have suggested.

Similar Messages

  • Utl_url.escape

    Hi, I need to use the utl_url.escape function to convert some illegal characters in a url and I want to know why I get the error "FALSE: invalid identifier" when I use the function like this:
    SELECT utl_url.escape('http://www.acme.com/a url with space.html', FALSE, 'UTF8')
    FROM dual;
    Where the first parameter is the url I want to escape, the second one indicates that I don't want to escape the reserved chars, and the third one is the target charset. I search in the documentation and this is a right way to use the function.
    If I use the function without the second and third arguments, it work properly but it don't make a good conversion, I think it is because I am not indicating the target charset.
    Any help will be appreciated.

    UTL_URL.escape is defined as follows:
      FUNCTION escape(url                   IN VARCHAR2,
                      escape_reserved_chars IN BOOLEAN  DEFAULT FALSE,
                      url_charset           IN VARCHAR2 DEFAULT
                                                        utl_http.get_body_charset)
                      RETURN VARCHAR2;so the second parameter is BOOLEAN which is a datatype NOT KNOWN to SQL.
    You can only use this function in a PLSQL block like this e.g.:
    declare
      url_esc varchar2(1000);
    begin
      url_esc := utl_url.escape('http://www.acme.com/a url with space.html', FALSE, 'UTF8');
      dbms_output.put_line(url_esc);
    end;
    http://www.acme.com/a%20url%20with%20space.htmlMessage was edited by:
    michaels

  • SSRS - Boolean Parameter to pick max date

    I'm trying to create a Boolean parameter that would perform the following:
    If the user indicates True, the report will return rows with the most recent date, rather than show duplicates.
    If left False, the report runs as normal, pulling each row and leaving the duplicates.
    SSRS doesn't appear to allow me to say something like =IIF(Parameters!MaxDate=1, Fields!MaxCreatedDate, Nothing) in an expression anywhere. When I try, I receive an error telling me "Fields cannot be used in query parameter expressions". Does
    anyone have an idea of how I could accomplish this?
    Thanks.

    You need to do this at query behind I believe
    write the filter logic as below
    SELECT Columns...
    FROM
    SELECT *,ROW_NUMBER() OVER (PARTITION BY GRoupFields ORDER BY DateField DESC) AS Seq
    FROM Table
    )t
    WHERE Seq = 1
    OR @BooleanParameter = 0
    where GroupedFields is feilds for which you need to get distinct list.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Win8.1 Pro & Flash Player 11.9.900.117 "base" parameter issue

    While "streamlining" some code for a web site, I just discovered that my solution doesn't work on my 2 Win8.1 PCs, but works in Vista 32-bit and Win7 64-bit machines. I've tested it in IE, Firefox and Chrome. (By "doesn't work", I mean I get an empty block where the Flash Player frame is supposed to be. Right-clicking on the area brings up the Flash settings menu.)
    The change I made was to have all web pages in the "root" directory of the web site, and the videos (.swf and .flv files) in the "video" directory. Previously, the web pages that ran the videos were in the "video" directory. (This still works on the Win8.1 PCs.) I added the "base" parameter to the code (shown below) to direct the Flash Player to the "video" directory.
    I've been poring through the Adobe site and various forums (fora ?) looking for a clue, but came up empty. Can anyone shed some light on the issue?
    If you want to see the site, goto http://theolivebranchforchildren.org to see the current version,
    and go to http://theolivebranchforchildren.org/index.php to see my revamped version.
    Go to the Gallery page and click on any of the video links in the sidebar. (The example shown below is for the "Aids Testing" option [aids.flv video file].)
    This is the code (as copied from the "view Source" option of the browsers - all identical) that runs in Vista and Win7 but not in Win8.1 ...
    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
    codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="502" height="322" id="FLVPlayer">
    <param name="base" value="video" />
    <param name="movie" value="video/FLVPlayer_Progressive.swf" />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars" value="&MM_ComponentVersion=1&base=video&skinName=Halo_Skin_3&streamName=aids&autoPlay=true&autoRewind=false" />
    <embed src="video/FLVPlayer_Progressive.swf"
    flashvars="&MM_ComponentVersion=1&base=video&skinName=Halo_Skin_3&streamName=aids&autoPlay=true&autoRewind=false"
    quality="high" scale="noscale" width="502" height="322" name="FLVPlayer" salign="LT"
    type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object>
    FOLLOW-UP 10/21/2013 -- I almost got around the problem by creating soft links in the web site's root directory to the files in the video directory. This is an ugly workaround, but suggests that the "base" parameter is being totally ignored in the Win8.1 implementation of Flash Player by Firefox & Chrome, both of which can now play the videos. It still doesn't work in IE11, though.
    ... AL
    Please visit http://www.theolivebranchforchildren.org/ to see a miracle developing.

    The "base" parameter issue, as I described it above, has "gone away" silently. Now I can play the movies via Flash Player in IE11, FireFox, Chrome and Safari on my two Win8.1pro laptops.  IE11 was the last holdout -- I had to turn off the PopUp Disabler in the IE settings to let the Flash Player play.
    I'm a happy camper now.
    ... AL

  • How to call a VB dll with boolean parameter in labview

    hi ,
         I havea problem with labview calling dll.
         I need to call a customer's dll(VB) , but I find labview have no  boolean type parameter, so how can I do it ?
         I have used labview 7.1 and only have dll without source code.
    sonic
    Sonic
    Diffrent Strokes for Different Folks

    hi   semercurio :
        I have bulid a dll by lv 7.1 with boolean and  then call lt  from LV7.1,but i have some issue of it .
        I also use U8 and I16 type and all pop up a errer message,you can see it from accathed.
        do you have any suggestion about it ?
    Sonic
    Diffrent Strokes for Different Folks
    Attachments:
    15.JPG ‏17 KB
    SharedLib.h ‏1 KB

  • SSRS : Reporting Services - Multi-Value Parameter Issue

    Hi,
    This problem is been around the blogs and forums for while now but may be it's not answered to the fullest. I couldn't get any satisfactory or completed solution on the issue so far, any clues/help will be highly appreciated.
    My scenario is very simple :-
    I am using SQL Server 2005 and SSRS. I need to develop a report which has a parameter value called Customer Name. The users should be able to select multiple customers from the list and sometimes Select All also.  I tried the following :-
    Created two data sets : Second dataset is just to populate the Customer Name
    Created a Report Parameter and mapped with the query parameter where it says  "Where CName in (@Parameter1)"
    Nothing seems to be working although I tried to apply all the existing half-way solutions currently available in the forums. May be I am not getting to the right solution.
    Here is what's happening :-
    When used '?' like "where CName = ?" then it's working fine for the single value. {Multi value query cannot be used with ?}
    But for multiple values when used @Parameter1 like "where CName in (@Parameter1)" it's giving the following error
    Cannot add multi value query parameter '@Parameter1' for data set 'Dataset1' because it is not supported by the data extension.
    However if commented this line it's pulling all the values whether or not selected from the parameter list.
    This is the basic thing which I was not able to get the desired result, in addition I was looking to get the Customer Name parameter selected with a partial entry as we use LIKE. Example :- If the user enters 'St' in the text box the list should show all the names starting from those two letters
    Starter
    Steve
    Steven
    Stevenson etc.
    I am not sure whether I'll will be able to get to this extent or not but until the multi value parameter, I am desperate to get the solution. So any sort of help/advise is highly appreciated.
    Regards,

    Hi,
    This problem is been around the blogs and forums for while now but may be it's not answered to the fullest. I couldn't get any satisfactory or completed solution on the issue so far, any clues/help will be highly appreciated.
    My scenario is very simple :-
    I am using SQL Server 2005 and SSRS. I need to develop a report which has a parameter value called Customer Name. The users should be able to select multiple customers from the list and sometimes Select All also.  I tried the following :-
    Created two data sets : Second dataset is just to populate the Customer Name
    Created a Report Parameter and mapped with the query parameter where it says  "Where CName in (@Parameter1)"
    Nothing seems to be working although I tried to apply all the existing half-way solutions currently available in the forums. May be I am not getting to the right solution.
    Here is what's happening :-
    When used '?' like "where CName = ?" then it's working fine for the single value. {Multi value query cannot be used with ?}
    But for multiple values when used @Parameter1 like "where CName in (@Parameter1)" it's giving the following error
    Cannot add multi value query parameter '@Parameter1' for data set 'Dataset1' because it is not supported by the data extension.
    However if commented this line it's pulling all the values whether or not selected from the parameter list.
    This is the basic thing which I was not able to get the desired result, in addition I was looking to get the Customer Name parameter selected with a partial entry as we use LIKE. Example :- If the user enters 'St' in the text box the list should show all the names starting from those two letters
    Starter
    Steve
    Steven
    Stevenson etc.
    I am not sure whether I'll will be able to get to this extent or not but until the multi value parameter, I am desperate to get the solution. So any sort of help/advise is highly appreciated.
    Regards,
    you speak spanish

  • Report Parameter issue

    Hi All
    I have an rdf report version 10g , registered in oralce apps 11i .I have one parameter for the report.
    When i pass the value for this parameter from SRS window , report is not giving output.
    But when i pass it as null it return the value.Its a character type parameter.I have checked token also in oracle concurrent program definition, and its fine.
    Also when i run the report using report bulder its running fine in both cases.
    Any suggestion what causing the paramter issue.
    Thanks

    earlier report version is 6i , i simply opened it in report builder 10g and compiled it, i hope it did'nt caused any issue.
    Thanks
    Vikas

  • SSRS parameter issue.

    I am trying to build report with a multiple parameters have 10 parameters.
    in the below parameters client id is using shared dataset and it is not depending on any of the parameters but still its not populating to select values. the SP using in this shared data source
    Can any one please help me with this issue
    hemanth

    Have you selected Available and Default values for the Client Id parameter?
    Whats does the query look like for the Dataset that is used to populate Client Id?

  • Crystal report parameter issue in SAP B1 8.8

    Hi Experts,
    We are facing following issue in Crystal report SAP B1 8.8 version
    Can not open crystal report without mentioning optional parameters.
    User is forced to mention all parameters
    User should allow to open crystal report by mentioning mandetory parameters
    if We set for the parameter value of field [Optional Prompt] to 'True' and then preview in SAP Business One, then although the dialogue is displayed,  click 'OK' without populating the parameter value, the report is run
    but in our case we are passing parameters through Stored Procedure and this option is block in report to do so.
    means that option available to make optional true / false is block and we are not able to do anything.
    Pls. provide solution
    Regards
    Kamlesh Vagal

    Julie.
    This change has already occurred?
    Thanks.

  • Multi value parameter issue.

    We are facing some issue in SSRS report, whilst running SSRS report  it shows as blank in the multi value parameter field when the <all> option is selected(character will be more than 20000). (Report server: MS windows server 2003 and 32 bit(GIRMSA3),
    server: MS windows server 2008 and 64 bit)
    Same is working in the  SSRS Server and Citrix servers both  are 32 bit , MS windows server 2003.
    1. What is the Maximum Number of Values allowed in a SSRS 2008 Text Parameter Dropdown ? Is it configurable  ?
    2. What is the Maximum of Length of Select Values in a Text Parameter Dropdown in SSRS 2005 ? Is it configurable  ?
    Thanks
    Vijay
    Thanks Rai

    Hi  Vijay,
    This is because of the following patch
    “MS11-100 .Net Framework Security Update (KB 2656355)”. Applying this update limits the maximum number of form keys, files and JSON members to 1000 in a request.
    Go to the reporting services installation folder.
    Go to the report server folder and make a backup of the file “Web.config”. Once you have the backup, open the original file in notepad and add the following entry under the Configuration section:
       <appSettings>
                   <add key="aspnet:MaxHttpCollectionKeys" value="30000"/>
       </appSettings>
    Go to the Report Manager folder and again make a backup of the file “Web.config”. Once you have the backup, open the original file in notepad and add the following entry under the appSettings tag:
    < add key="aspnet:MaxHttpCollectionKeys" value="10000"/>
    Once you do the above steps, you should be able to run the report without any issue.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Calling stored procedure with struct and boolean parameter

    Hi all,
    I am trying to write an EJB method using eclipselink that has to call a stored procedure which has the following parameters:
    - an object type (in/out)
    - a date (in)
    - another date (in)
    - a boolean (optional, in)
    - a number (out)
    - a string (out)
    When using StoredProcedureCall, I succeed in passing the dates and the object type (as a STRUCT) into the procedure and read out the output variables. I can also do this using NamedStoredProcedureCall and only map the number and string in a result class. Drawbacks of NamedStoredProcedureCall:
    - I cannot map the object type that comes back out (working example, anyone?)
    - I cannot specify the boolean input variable
    The problem is when I want to specify the boolean. In StoredProcedureCall, this is not possible since this only accepts native JDBC parameters. So I tried our PLSQLStoredProcedureCall.
    Here, I can specify all in/out parameters except the object type! No matter what I try, I seem to end up with ORA-3115 - unsupported network datatype or representation. Does anyone have a working example on how to use this?
    Regards,
    Jeroen van Veldhuizen
    REDORA B.V.

    The problem is not that I want to pass in a boolean. When I try to use PLSQLStoredProcedure, I do not succeed in passing in/out an object type (or STRUCT). It looks like the code has been made to access PLSQL record and table types by wrapping them in an object type, but it seems not to be possible to to use an object type directly.
    To start with: when you create a STRUCT parameter, the generated sql code is this:
    DECLARE
      l_param_in STRUCT := :1;and since struct is not a datatype, this fails.
    Jeroen

  • Dynamic Parameter Issue - Crystal XI

    I've been working in 9 and 10 for a couple of years, and have recently moved to 11 to create some reports for a client.  I have an issue with creating a dynamic parameter in Crystal 11 - it won't allow me to select dynamic (as in the radio button is grayed out).  I've searched through the options, created RDO and DAO connections to both the Access database and the Xtreme Sample database, all to no avail.  Any thoughts or suggestions?
    Thanks!
    Ian

    After searching, I stumbled across the answer in this document: [XI Features by Version|http://www.businessobjects.com/pdf/products/crystalreports/crxi_feat_ver_ed.pdf]
    It strikes me as a little odd, in the Comprehensive formating and Design Control section it lists "Parameter fields" as available for all versions, but in the Report Viewing and Interaction section it lists "Dynamic and Cascading Prompts" as available only in Developer and Pro ... it even identifies at the end of the document that "Dynamic and Cascading Prompts can be viewed, but cannot be designed in the Standard Edition".
    So, this begs the next question, if I create a report using parameters based on a database column in Crystal 10, then open it in Crystal XI, will the dynamic prompts work?  I may have to try...

  • Boolean parameter in a stored procedure

    Hi,
    I made this jsp page with a call to a stored procedure. This procedure has a boolean as a parameter.
    But i am getting an error i don't understand.
    The error is "unknown columntype".
    I'm using
    * Apache Tomcat/4.1.24-LE-jdk14
    * J2SDK1.4.1_02

    Hi,
    Types that are supported by PL/SQL only, such as BOOLEAN, PL/SQL RECORD types, and PL/SQL indexed-by tables cannot be accessed directly by JDBC programs.
    JPublisher enables you to specify and customize the mapping of SQL types to Java classes. For more information on JPublisher refer to http://otn.oracle.com/docs/products/oracle9i/doc_library/release2/java.920/a96658/toc.htm
    Also you could refer to this [url http://otn.oracle.com/sample_code/tech/java/jsp/samples/boolean/boolean.html]How-to for understanding how to use JPublisher for an appropriate mapping of Boolean to a JDBC Type.
    Hope this helps.
    Sujatha.
    http://otn.oracle.com/sample_code/content.html

  • Boolean function issue

    SQL> create or replace function my_func
    2 return boolean as
    3 x boolean;
    4 begin
    5 x := true;
    6 return x;
    7 end;
    8 /
    Function created.
    SQL> select my_func from dual;
    select my_func from dual
    ERROR at line 1:
    ORA-06552: PL/SQL: Statement ignored
    ORA-06553: PLS-382: expression is of wrong type
    SQL>
    Above is what I thought was a simple function that returns a boolean value. I am doing a asp.net project and i need a simple function to call as a test. I have written a simple function that returns an int, string already and i dont understand the error above....
    Can some one give me an example of a function that returns a boolean value based around a simple table like the emp table for example. That would be great thanks ( or else tell me whats wrong with my simple ha ! function above)

    I'd rather put some sort of wrapper on the oracle side. The reason for this is that the application i'm building is designed to allow users run functions or procedures and pass as many arguments as they want to the c# class. This is what I've been working on but there are data type issues arising.
    create or replace function convFunc
    --funcName varchar2
    return number
    as
    a boolean;
    b number;
    begin
    --a := myFunction();
    a:=funcName
    --Is there any way I can pass in the name of the function to be called
    and concatenate the () brackets to it and assign it to a. I tried
    funcName:= funcName||(); but it wont let me do that. The second problem is that as the function returns true or false but the function name comes in as a string there is a type mis match... There has to be some way of solving the problem on the oracle side. Again all I want from the user is the function name and parameters
    Sorry if i'm annoying people with similar posts
    if a=true then
    b:=1;
    return 1;
    else
    b:=0;
    return 0;
    end if;
    end;

  • ******DataControl Drag and drop -method return parameter issue!!!******

    Hi,
    It is a basic DataControl question where I am facing some issues due to this.
    I have created the DataControl form java webservice and using that DC in my ADF application. When I drag and drop my Data Control RESULT in my UI and select some specific output structure (Table or form or etc), it is pop-up the window with all the return parameters where I can enter the lables and hitting OK button.
    While hitting OK button some times it is pop-up the next window where I can see the DataControl name on the top and the method input parameters list on the bottom of the window and I can enter the value for my input fields. But very few times I am getting this 2nd window popup. Not every time where after hit the OK button in the first window directly it is creating the table / form in the UI.
    But I need this 2nd window to be popup inorder to carry forward my input parameters binding across my application. Please help me why am I not getting that method input list sometimes. Or is there any other file I can edit and set the method input parameter binding?? This is really helpful to solve one of my major project issue. Help plzzzz...
    Thanks
    klogube

    Arun & Puthanampatti      
    Thanks for the help. Yes I did the same and now I could able to carry forward my input param values from first page to 2nd and 3rd pages where the first page holding method input parameters via DataControl and the 2nd and 3rd pages holding the DC method;s return params. Can you please let me know how to set the new value for the input parameter mapping from 2nd to 3rd page.
    *Ex: In first page have 2 input parameters values set to:(UserID1 = #{pageFlowScope.arg0} & UserID2 = #{pageFlowScope.arg1}). I am navigating to 2nd page where I am displaying the userSearch result it may be display more than 1 user. Now I am navigating to 3rd page by selecting any one of the user ID and want to display that selected user details in the 3rd page. Here I am using the same DataControl method result at 2nd and 3rd page.*
    *So I want to set the selected userId value to #{pageFlowScope.arg1} before I navigate to 3rd page. Please help me how to change/set the value to the #{pageFlowScope.arg1}. This will solve my major issue. Thanks in advance.*
    Thanks
    klogube

Maybe you are looking for

  • Oracle application 11.5.10.2 installation problem on xp sp2 with cygwin

    Hi all, lam trying to install ORA APPS on xp but the rapidwiz stopped at step 3 and freezed. rapidwiz didn't give me an error while running but didn't continue to step 5 and below part of my log which shows no error unless the connection failed but i

  • Test Stand API 1.0 and LabView 6 UI

    I modified the Simple User Interface provided with TestStand for my companies needs. When a step fails, I intercept the UI message when "Update Result List" is true - I receive a step name - status, strip out the step name and go to a case statement

  • ShowModalDialog - session lost

    Hi All, Using showModalDialog to open a pop up window the session value getting lost. How to resolve this? window.showModalDialog(url,"","resizable:no;help:no;dialogHeight:17;dialogWidth:14")- vignesh

  • Using my combination to "unlock" the volume setting is being rejected

    I wrote down my combination, (unless I mis-entered), I have tried the following ways to enter the combination: click to each number, advance to the next, etc, then press the middle bottom- rejected click to each number, hit middle button, then advanc

  • Install Error when installing CISCO AnyConnect Mobility Client

    When installing Cisco AnyConnect Mobility Client 3.1.02040, I get the following install error: There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or pa