Concatentating of variables issue - Getting Not a variable debugging.

I'm building a insert statement based on a view I have by building
while stepping thru a bulk collect. I'm Concatentating my 4 varibles to
create a final sql statment that I want to use for Execute Immediate.
However when Concatentating the four variables the last variables for some
strang reason null out the variable.
While debugging I see all 4 variables populated ok, I played with changing the
variables lengths to see if that was the issue but I still have the issue.
Any idea why I would get "not a variable" when Concatentating the final variable?
Below is the Procedure with 2 lines showing the partial one that works and the
full line that fails.
CREATE OR REPLACE Procedure File_Load_Proc Is
Type Fl_Tab Is Table Of File_Load%Rowtype Index By Binary_Integer;
Recs Fl_Tab;
     ValCols Varchar2(1000);
     SelCols Varchar2(1000);
     SqlStatI Varchar2(200);
     SqlStatS Varchar2(200);
     FinalSql Varchar2(32767);
     v Integer;
VMp# Map.Mp#%Type := Null;
Procedure Get_Data
          Is
Begin
Select * Bulk Collect
Into Recs
From File_Load;
End Get_Data;
Procedure Perform_Insert
          Is
Begin
Null;
          --Execute Immediate FinalSql;
End Perform_Insert;
Procedure Process_FileLoad_Data
          Is
Begin
For Indx In 1 .. Recs.Count Loop
                    --First Record from Map
                         If Recs(Indx).RO# = 1 Then
                         If VMp# Is Null Then
                                   VMp# := Recs(Indx).MP#;
                              Elsif VMp# <> Recs(indx).MP# Then
     v := Length(SqlStatI || Rtrim(ValCols,',') || ') ' || RTrim(SelCols,',') || SqlStatS);
--This shows values the partial string values
     FinalSql := RTrim(SelCols,',') || SqlStatS;
                                        --When I add all the pieces to the sql statment the variable contains no data
FinalSql := SqlStatI || Rtrim(ValCols,',') || ')' || RTrim(SelCols,',') || SqlStatS;
                              Perform_Insert;
                              End If;
                              SqlStatI := 'Insert Into ' || Recs(Indx).SD_Into_Tb || ' (';
                              ValCols := Null;
                              SelCols := 'Select ';
                              SqlStatS := ' From ' || Recs(Indx).SD_Select_Tb || ';';
                         End If;
                         ValCols := ValCols || Recs(Indx).SD_Name_Out || ',';
                         SelCols := SelCols || Recs(Indx).SD_Name_In || ',';
End Loop;
               --Insert last Map Records;
FinalSql := SqlStatI || Rtrim(ValCols,',') || ')' || RTrim(SelCols,',') || SqlStatS;
     Perform_Insert;
End Process_FileLoad_Data;
Begin
Get_Data;
          -- Loop Thru Records and build Insert Statements
Process_FileLoad_Data;
Commit;
Exception
When Others Then
Rollback;
Raise;
End File_Load_Proc;

This could be an artifact of whatever front end program you're using to debug.
If I were you, I'd try adding debug statements (via your custom debug log package if you have one or via dbms_output.put_line if you haven't - not forgetting to set serveroutput on first *{;-) ) to record what each value was. That should help you to pinpoint what the issue might be.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • WorkFlow Issues: Appending (not replace) Attendee Field in Calendar List and Email Variables (including .ICS file link)

    Kind of new to attempting any custom development in SharePoint.  Working with 2013 and have the 2013 Workflow Farm setup/working.  I am trying to have a calendar that users can register to appointments via custom list.  I
    have the list that pulls the title into its  own "Event" field as a lookup.  Also have a workflow on the calendar that adds the current user as an attendee and made that field "not required".  I'm trying to accomplish this:
    1) Have the Custom List update the Calendar list attendee field with the username. Currently it wipes out what is there and replaces with the "Created By" name. Tried to set a variable that would put the current attendees in a string
    and just add the current user, then use that variable to update the attendee field.  No luck.  Ultimately if I can understand this enough and get fancy enough, I'd setup a workflow  that can have someone delete their own registration item in
    the custom list and remove only their own name from Attendees...
    2)  Have a workflow kick off an email that sends the registrant the calendar details. Have tried to pipe in variables to get the ICS file (some variation of this )
     If I put the List ID in brackets I get an error about having that and variables in the same code for an email workflow.  In any event I can't really get the email workflow to give any kind of nice piped in values the best looked like this and had
    the wrong date: You registered for  {"results":[{"Id":22,"Value":"Test Event 8"}]} on 1/1/0001 12:00:00 AM

    Hi Jason,
    seems your requirement a bit complex, we forum team may have limited resource regarding this issue.
    you may consider to use infopath for example from this 3rd party article:
    http://www.bizsupportonline.net/infopath2007/programmatically-add-item-sharepoint-calendar-infopath.htm
    or for general example:
    http://office.microsoft.com/en-001/infopath-help/customize-a-sharepoint-list-form-HA101821257.aspx
    the article is to add an item to your calendar list, so then you may need to do wipe or other procedures, by infopath you may add the data as
    you need.
    if should infopath feature may not be possible to use in your environment, i may need to suggest you to open an advisory case to us, by contacting our representative,
    https://support.microsoft.com/
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Get ReferenceError: Error #1065: Variable Transform3DController is not defined. when running debug.

    Hi,
    I just upgraded my Flash Builder to 4.6. Ever since the upgrade I have been getting the following error right when I run my web files through debug:
    ReferenceError: Error #1065: Variable Transform3DController is not defined.
              at global/flash.utils::getDefinitionByName()
              at ominds.mouseinspect::MouseInspector/onTmd3dModuleLoaded()
    I'm not sure if this came from the new upgrade to the builder or if this an issue with the new Flash Player 11,1,102,55 release. It seems that when I got to http://www.adobe.com/software/flash/about/ it doesn't even load the flash movie.
    I'm on a Mac OS X v10.6.8 and I use mostly chrome but this issue also occurs in FireFox.
    Does anyone have any ideas to wtf is going on?
    Thanks,
    -Nate

    I have been experiencing this same issue. After reading this post a messing around, I also feel like it has to do with either Flashbug or FlashFirebug. So I've been experiencing this issue while trying to launch my application in Chrome. I disabled these extensions and the error when away. I then reenabled the extensions, and the error didn't come back until I launched debug in Firefox, even if I switched to launching in Chrome. I can only guess that these extensions are doing something to the flash player that v11 isn't happy with.
    Anyway, even if you're debugging in Chrome, try out disabling these extensions. It's odd, yes, but it worked for me.

  • I am getting ORA-01008:not all variables bound error

    Hi all,
    i am getting ORA-01008:not all variables bound error while executing the following code...
    Could any one help me to find out the problem...i am very new to ODP.net and Oracle ..
    I am using VC++.net for run this code.
    Here is the code.....
    #include <iostream>
    using namespace std;
    using namespace System;
    using namespace Oracle::DataAccess::Client;
    class Sample
    public:
         Sample();
    ~Sample();
    Sample::Sample()
         int num = 100;
         int sal = 200;
    //connect to Oracle
         OracleConnection ^con ;
         con = gcnew OracleConnection();
         con->ConnectionString = "User Id=test;Password=test;Data Source=test.local.com";
         //Oracle command part
         OracleCommand ^cmd;
         cmd = con->CreateCommand();
         cmd->CommandText = "insert into simple values (:num, :sal)";
         try
              con->Open();
              cmd->ExecuteNonQuery();
         catch (Exception ^e)
              Console::WriteLine("Execution Failed:" + e->Message);
    finally
              con->Close();          
    Sample::~Sample()
    int main()
         Sample samp;
         return 0;
    sorrry lack of comments.....
    plz help me out..
    thanks in advance..
    justin

    Hello,
    You have 2 bind variables in your statement (:num and :sal) but you have not created parameters and bound them to the bind variables.
    - Mark

  • I am not getting User Environment Variable Value

    Hi Team,
    I have been Trying to recover variables values using an anonym procedure from Windows XP SP3
    I have already executed following procedure.
    BEGIN
    DECLARE
    gf_filelog UTL_FILE.file_type;
    v_file_log VARCHAR2 (1024) := ' ';
    gv_path_log VARCHAR2 (1024) := ' ';
    gv_path_log2 VARCHAR2 (1024) := ' ';
    gv_file_log VARCHAR2 (1024) := ' ';
    BEGIN
    DBMS_OUTPUT.put_line ( 'obteniendo valores of vars: '
    || gv_path_log
    || ' '
    || gv_file_log
    DBMS_SYSTEM.get_env ('ORACLE_HOME', gv_path_log);
    DBMS_SYSTEM.get_env ('PATH_MODULO', gv_path_log2);
    DBMS_SYSTEM.get_env ('FILELOG', v_file_log);
    DBMS_OUTPUT.put_line ( 'valores vars ORACLE_HOME: '
    || gv_path_log
    || 'PATH_MODULO:'
    || gv_path_log2
                   || ' FILELOG:'
                   || v_file_log
    gv_file_log :=
    v_file_log || TO_CHAR (SYSDATE, 'yyyymmddHH24MISS')
    || '.log';
    DBMS_OUTPUT.put_line ( 'Nombre de Archivo creado'
    || gv_path_log
    || ' '
    || gv_file_log
    gf_filelog := UTL_FILE.fopen (gv_path_log, gv_file_log, 'w');
    DBMS_OUTPUT.put_line ('Archivo creado' || gv_path_log || ' '
    || gv_file_log
    UTL_FILE.put_line (gf_filelog,
    || TO_CHAR (SYSDATE, 'HH24:MI:SSSSS')
    || ']--> '
    || 'Prueba de escritura'
    || gv_path_log
    || ' '
    || v_file_log
    UTL_FILE.fflush (gf_filelog);
    UTL_FILE.fclose (gf_filelog);
    EXCEPTION
    WHEN OTHERS
    THEN
    DBMS_OUTPUT.put_line ( '[reporta_log]Error en :'
    || SQLCODE
    || ' - '
    || SQLERRM
    raise_application_error (-20000,
    '[reporta_log]Error en :'
    || SQLCODE
    || ' - '
    || SQLERRM
    END;
    END;
    I show you data result after procedure was excecuted.
    obteniendo valores of vars:
    valores vars ORACLE_HOME: E:\oracle\product\10.2.0\db_1PATH_MODULO: FILELOG:
    Nombre de Archivo creadoE:\oracle\product\10.2.0\db_1 20111122171625.log
    [reporta_log]Error en :-29280 - ORA-29280: invalid directory path
    BEGIN
    ERROR at line 1:
    ORA-20000: [reporta_log]Error en :-29280 - ORA-29280: invalid directory path
    ORA-06512: at line 55
    I see that only ORACLE_HOME variable value was got, question is why, of course, variable values are already defined as user variables.
    Variables PATH_MODULO and FILELOG was defined using windows maintenance variable method, that is :
    1.- settings
    2.- system
    3.- advanced options
    4.- environment variables
    Here my oracle version
    SQL> select version from v$instance;
    VERSION
    10.2.0.1.0
    SQL>
    Is this an Oracle Issue or variables would be defined in another way?
    ORACLE_HOME VARIABLE was created when oracle engine was installed.
    I have got same result after computer was restart.
    I appreciate wathever clue.

    Ok, that is , I only can read environment variables values, but not variables values at user profile. It happends in unix environment too. So I tried to use another instruction sequence in order to read user variables values.
    Regards

  • F4 input help on Variable screen is not working on Portal

    Dear Experts,
    We are facing one issue when we run the WAD report on portal, variable screen gets hang after clicking on input help button (F4) for couple of variables. We are facing same issues when we run the base queries on portal. But when we run the same base queries in RSRT (Tcode) or in BEx Analyzer we are not facing this issue and able to get the input help screen with values.
    I also have gone through some old posts related to such issues but didn't help much. We are already on SAP BW 7.4 SP Level 008 and for Char IO Query Filter Value setting is kept as "Values in Master Data Table" only. This is a MD IO with Compounding.
    Kindly let me know if anyone has faced such issue.
    Thanks in Advance,
    Nilesh

    Dear Martin,
    There is a no long running work process in the backend and data volume is more in Master Data Table, there are around 19 Lacks records available.
    For BI Java patch and defaultTrace for errors I will check it with BASIS Admin team. Unfortunately I don’t have rights to do same.
    Thanks,
    Nilesh

  • Presentation Variable issue in OBIEE 11g

    Hi,
    I have 2 reports, report 1 and report 2
    When i drill down on report 1 column 'Number of id's' will open the details report of Id's report 2
    I am using a Presentation variable in report 2 filters (detail report) which is generated in Main report dasnbord prompt.
    They have separate star schema.
    Main report(reprot1) using Aggregated table.
    Sub report(report2) using detail table.
    Problem:
    After upgradation from OBIEE 10.1.3.4 to OBIEE 11.1.1.5,(Unix server) The presentation variable value is not getting passed to the detail report. This is working completely fine in OBIEE 10g.
    Is there any BUG in OBIEE 11g wrt presentation variable or do we want to change the configuration?
    Thanks,
    Satheesh

    Hi,
    Not sure about the behaviour in 11g, but we faced a similar issue in 10g while passing the presentation varaibles to detail report where main/detail report where coming from different subject areas. The behavior was a little unpredictable. To overcome this, we tried using request variable instead of presentation variable and it worked for us.
    You can give it a try by doing the same and see if it works for you.
    Thanks

  • [AIR 3.0] New JSON functionality doesn't work in FlashPro: Error #1065: Variable JSON is not defined

    After upgrading the AIR SDK to 3.0 in Flash Professional CS5.5 I've found some problems.
    First, the JSON class in the as3corelib.swc library now throws a couple of compile errors:
    1061: Call to a possibly undefined method decode through a reference with static type Class.
    1172: Definition com.adobe.serialization.json:JSON could not be found.
    At first I was completely puzzled, since I had the proper "import com.adobe.serialization.json.JSON;" reference,
    and I had the "as3corelib.swc" referenced in my ActionScript Properties, so how could that not be found?
    Then, I found out that's because it conflicts with the new internal JSON class included with AIR 3.0
    (maybe it should have been called something else, to avoid conflicts with Adobe's own as3corelib library).
    The new native JSON class doesn't have the decode() method. Now it's called parse()
    Ok, so I've tried using the new JSON class, but after changing decode() with parse() and removing
    the "import com.adobe.serialization.json.JSON;" reference, Flash tells me that "Variable JSON is not defined".
    Really? The JSON class is showing in the Flash Builder code completion popup,
    complete with its all-new parse() and stringify() methods! So why does it say it's not defined?
    Also, my SWF file gets compiled with no errors at all, so that verifies that the new 3.0 libraries are in place.
    I only get the "JSON is not defined" error at runtime in ADL, not at compile time. Why?
    In order to upgrade to the AIR 3.0 SDK, I've followed this guide:
    http://kb2.adobe.com/cps/908/cpsid_90810.html
    I know that's about upgrading to AIR 2.7, but I suppose the steps to upgrade to AIR 3.0 would be very similar,
    only with the AIR3.0 SDK package, instead of 2.7.
    I also took care to type version="13" in all the XMLs, instead of version="12" as stated in that guide, which is meant for 2.7.
    Also, I followed this advice about adding -swf-version=13 in the Project Properties window in Flash Builder:
    http://blogs.adobe.com/cantrell/archives/2011/08/how-to-use-the-air-3-beta-sdk.html
    But that doesn't seem to make a difference, since, even though I use Flash Builder for code editing (which is usually used for Flex),
    my project is a Flash Professional project, not a Flex one, and when testing the project, Flash Builder runs Flash Professional
    to compile and then runs adl.exe (it's the same as if you click the option "Control / Test movie / in AIR Debug Launcher (Mobile)" inside Flash Pro).
    In the "ActionScript Settings" window in Flash Professional, I also have the proper airglobal.swc referenced (from the AIR 3.0 SDK),
    and the same airglobal.swc is referenced in Flash Builder as well (in "Referenced Libraries"), to get proper code completion.
    I've tried all sorts of things to try to get it to work, but no luck. Still get the "JSON is not defined" error at runtime.
    I'm starting to get desperate about this. I'm going to have to revert back to AIR 2.7.1, to stop wasting time on this issue.
    BTW, I'm also having another unrelated problem (though maybe it happens because of the same reason as the other problem).
    Now Flash Builder underlines the getTime() method in my code, as if it no longer were a method of a Date class instance.
    I have a line where I ask for the timestamp like this:
    ts = new Date().getTime();
    That has worked perfectly fine up until now with AIR 3.0.
    Now, when hovering the mouse cursor over the orange "(?)" icon that appears at the left, Flash Builder tells me
    "Access of undefined property getTime". Why?
    The AS3 documentation doesn't say anything about getTime() getting deprecated of anything of the sort:
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html
    In fact, in the code completion popup that Flash Builder shows, now there isn't any mention
    of get or set methods, as you can see here:
    I suppose I can use the .time property instead of .getTime() but I don't know why I'm not getting all the methods I had available before.
    Any ideas why all this is happenning? Specially the dreaded "JSON is not defined" error.

    Well, after much tinkering, I think I've finally found a way to finally make it work!.
    I've created some modified XML files with the profiles needed for AIR 3.0 and after a lot of tries, it finally works!
    I've uploaded them here: http://www.mediafire.com/?d5e761frl5px4
    These are the steps needed to get AIR 3.0 running properly:
    Put all three files into the folder "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\Players"
    Then, make sure you've unzipped the AIR 3.0 SDK into the folder "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR3.0" Do not overwrite the contents of the "AIR2.6" folder, as suggested by the "Overlay AIR SDK" article (linked in the above post). It gave me problems. It's best to use a different separate folder. My XML files point to that new "AIR3.0" folder.
    Inside the folder "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0" create a new folder named "AIR3.0". Inside that folder, copy the file "airglobal.swc" located at "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR3.0\frameworks\libs\air".
    Finally, you will have to keep the file "descriptor-sample.xml" in the "c:\Program Files (x86)\Adobe\Adobe Flash CS5.5\AIR2.6\samples" folder, but change the xmlns attribute to "http://ns.adobe.com/air/application/3.0"
    Yes, you have to change that inside the AIR2.6 folder even if the SDK has been put into AIR3.0. That's because of how the publish settings work in Adobe Flash. It's hardcoded into a DLL, so that can't be changed. Not very intuitive.
    I think AIR SDK installations should be a lot more straightforward than this! I know Adobe AIR is meant for developers, not for final users, but still, all these not very well documented upgrade procedures are a pain in the ***. I've wasted A LOT of hours in this (more than half a day), with what should have been a straightforward upgrade!
    Adobe should make a SDK installer so we do not have to be tinkering with all these error-prone procedures each time a new update is released!
    Well, I hope those XML files are useful to somebody and avoids further frustration.
    Regards,
    OMA2k
    PD: BTW, I still have the .getTime() issue described in my above post, but it's not very important,
    since I can still use the .time property. Still, it puzzles me why this is happening.

  • HELP! flash error code #1065 variable TCMText is not defined

    Hi,
    Im doing a project for uni and trying to create a search bar throughout the flash document for people to find what they are looking for.
    Followed a tutorial online step by step and then i get this error. #1065 variable TCMText is not defined.
    I'm really a beginner, any help would be so greatly appreciated!
    stop();
    var i:int = 0;
    var names:Array = new Array("Annual Report","annual report");
    var frames:Array = new Array("2","2");
    text_in = "..."; /*what is wrong with you */
    searchbutton.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);
    function fl_MouseClickHandler(event:MouseEvent):void
      findInArray(text_in.text);
      gotoAndStop(frames[i]);
    function findInArray(str:String):int
      for(i = 0; i < names.length; i++)
      if(names[i] == str)
      return i;
      return 0;
    it says the issue is on line 7 where i have commented out "what is wrong with you"!
    Ive read a lot of things online and i have got it as classic text, which everyone is telling them to do. So quite confused.
    If you can, please help me.
    Thanks!!!

    Sorry for a delay in reply.
    Here is what the error says...
    ReferenceError: Error #1065: Variable TCMText is not defined.
    Scene 1, Layer 'Actions', Frame 1, Line 7
    1067: Implicit coercion of a value of type String to an unrelated type flash.text:TextField.
    If you could help in away that would be great cheers!

  • Very Strange:  ReferenceError: Error #1065: Variable txtToonName is not defined.

    I have a flash label on a movie clip with its instance name called 'txtToomName'.  This object has existed, been successfully instantiated and used for over a year without any modifications.  All of a sudden, during the getClassByName() call, I start getting an errors.
    The actual error is:
    ReferenceError: Error #1065: Variable txtToonName is not defined.
    at mcToonInformation_Design/__setTab_txtToonName_mcToonInformation_Design_Layer1_0()
    There are other objects on the movieclip, defined as buttons, that were derived from an object in the library that didn't have its linkage set.  This had worked fine up til now where I could define a common object without linkage, create copies of that object on a movie clip and assign an instance name to allow access.
    Once I changed my buttons to be an instance of an object in the library with linkage properties assigned they didn't give me an error.  The problem now is that it doesn't seem to like the Label object which is by default an instance of an object in the library that does have linkage properties set and yet still doesn't like it.
    Anyone have any idea what the heck is going on?  There hasn't been any library changes made or CS5 updates applied since 8/16/2010, the date on flash.exe.
    I am using CS5 ver.11.0.2.489
    Any advise/direction/assistance would be greatly appreciated as this is a show stopper and adds hours upon hours of adjustments to an application that has been running fine for a long time.
    Message was edited by: whornak
    In an attempt to get beyond the previously mentioned error, realizing that it references 'tab', I made the label inaccessible and now receive the following error:
    ReferenceError: Error #1065: Variable txtToonName is not defined.
         at mcToonInformation_Design/__setAcc_txtToonName_mcToonInformation_Design_Layer1_0()

    Upon attempted execution, after changing the setting you requested, the following is what I get.
    ReferenceError: Error #1065: Variable lblCoinQty is not defined.
    at mcToonInformation_Design/__setTab_lblCoinQty_mcToonInformation_Design_Layer1_0()[mcToonIn formation_Design::__setTab_lblCoinQty_mcToonInformation_Design_Layer1_0:1]
    at mcToonInformation_Design()
    at BPBGlobalFunctions$/getCasaMovieClipFromBulkLoader()[D:\Wayne\WizardBrewStudios\BackPackB uddys_Dev\BackPackBuddys_CS5_SFSX2\src\classes\BPBGlobalFunctions.as:167]
    at com.bpb.ui::ToonInformationUI$/loadToonInformationUI()
    at com.bpb::BackPackBuddys/onToonInformationLoadRequest()
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at com.bpb.avatar::ExampleAvatar/onToonClick()
    Cannot display source code at this location.
    Another thing noticed is that the object that flash is having an issue making adjustments to is visible via the Variables window and has the tabindex property.

  • ReferenceError: Error #1065: Variable TCMText is not defined.

    All,
    I am working on aniMAC running 10.7.2 with Flash CS6
    I built a Flash file that has been running excellent, until now. Now I am getting the following error that I can not figure out and no one seems to have the answer. Can some one (maybe even Adobe) please reply with a reason and a solution as to why it is happening and what I can do to fix it?
    ReferenceError: Error #1065: Variable TCMText is not defined.
    Some people thought it might be a simple changing of text properties (from TLX text to Classic text) but this does not fix the issue. I have also changed my memory settings, but this does not work either.
    Many thanks,
    HD

    click file>publish settings>swf>actionscript settings (the wrench icon)>library path>and change the default linkage combobox to "merged into code".  retest.

  • XML element "userComments" of variable "UserComments" is not defined error while deploying AccountDistribution composite to soa server

    Hi,
    We did deploying AccountDistribution composite to soa server hosted in our test environment but We could not succeed as the following error was thrown on compilation itself in Jdeveloper.
    <snip>
         Error(124): XML element "{http://xmlns.oracle.com/InvoiceSynchronization/AccountDistribution/AccountDistribution}userComments" of variable "UserComments" is not defined
    <snip>
    We have had 4 variables defined with element attribute in our AccountDistribution bpel
    <variable name="UserComments" element="client:userComments"/>
    and for every variable we are coming up with this error on composite deployment.
    We have tried multiple workarounds like deleting SCA-INF of AccountDistribution that is auto generated by Jdeveloper etc but but no luck, we are still coming up with same error.
    We back traced for the element's definition i.e userComments definition and we could find the definition in xsd stored in MDS as per configuration.
    Please provide your advise on how to proceed further on this issue.
    Thanks,
    Satheesh

    Hi Nicolas,
    adf-config.xml is for all the composites present in the project, but we are getting this error in only 1 composite, our other composites are working fine without any error.
    We tried creating a new variable with type element and getting same error.
    Thanks
    Satheesh

  • PL/SQL speed issues when using a variable

    I have a very strange issue that is causing problems.
    I am running Golden connecting to a 11g database.
    I created a procedure to insert records into a table based on a query. The source query includes variables that I have populated prior to the insert statement. The problem is that if I use the variable for one very specific where statement, the statement goes from running in less than 1 second, to running in 15 minutes. It gets even more strange though. Not only does a 2nd variable not cause any problems, the exact same variable in the same statement works fine.
    This procedure takes 15 minutes to run.
    declare
        v_start_period date;
        v_end_period date;
    begin
        select add_months(trunc(sysdate,'mm'), -1), trunc(sysdate,'mm')
        into v_start_period, v_end_period
        from dual;
        insert into RESULTS_TABLE
                (first_audit_date, last_audit_date,
                data_column1, data_column2, data_column3)
            select
                a.first_audit_date, a.last_audit_date,
                b.data_column1, b.data_column2, b.data_column3
            from
                SOURCE_TABLE_1 b,
                (select marker_id, min(action_time) as first_audit_date, max(action_time) as last_audit_date
                    from SOURCE_TABLE_2
                    where action_time >= v_start_period and action_time < v_end_period
                    group by marker_id) a
            where b.marker_id = a.marker_id
                and exists (select 1 from SOURCE_TABLE_2
                    where marker_id = b.marker_id
                    and action_time >= v_start_period and action_time < v_end_period
                    and action_type = 'XYZ');
        commit;
    end;This procedure runs in less than 1 second, yet returns the exact same results.
    declare
        v_start_period date;
        v_end_period date;
    begin
        select add_months(trunc(sysdate,'mm'), -1), trunc(sysdate,'mm')
        into v_start_period, v_end_period
        from dual;
        insert into RESULTS_TABLE
                (first_audit_date, last_audit_date,
                data_column1, data_column2, data_column3)
            select
                a.first_audit_date, a.last_audit_date,
                b.data_column1, b.data_column2, b.data_column3
            from
                SOURCE_TABLE_1 b,
                (select marker_id, min(action_time) as first_audit_date, max(action_time) as last_audit_date
                    from SOURCE_TABLE_2
                    where action_time >= v_start_period and action_time < trunc(sysdate,'mm')
                    group by marker_id) a
            where b.marker_id = a.marker_id
                and exists (select 1 from SOURCE_TABLE_2
                    where marker_id = b.marker_id
                    and action_time >= v_start_period and action_time < v_end_period
                    and action_type = 'XYZ');
        commit;
    end;The only difference between the two is where I replace the first v_end_period variable with trunc(sysdate,'mm').
    I've been googling for possible solutions and keep running into something called "parameter sniffing". It appears to be a SQL Server issue though, as I cannot find solutions for Oracle. I tried nesting the insert statement inside it's own procedure with new variables populated by the old variables, but nothing changed.
    Edited by: user_7000017 on Jan 8, 2013 9:45 AM
    Edited by: user_7000017 on Jan 8, 2013 9:52 AM Put the code in code tags.

    You are not describing procedures. You are listing anonymous PL/SQL blocks.
    As for the code - this approach to assigning PL/SQL variables are highly questionable. As the functions are native PL/SQL functions too, there is no need to parse and execute a SQL cursor, do context switching, in order to assign values to PL/SQL variables.
    This is wrong:
    select
        add_months(trunc(sysdate,'mm'), -1), trunc(sysdate,'mm')
        into v_start_period, v_end_period
    from dual;This is correct:
    v_start_period := add_months(trunc(sysdate,'mm'), -1);
    v_end_period := trunc(sysdate,'mm');Just as you would not use +"select 1 into plVariable from dual;+", instead of a standard variable assignment statement like +"plVariable := 1;"+.
    As for the performance/execution difference. Does not make sense. I suggest simplifying the code in order to isolate the problem. For example, take that in-line SQL (aliased as a in the main SQL) and create a testcase where it uses the function, versus a PL/SQL bind variable with the same data type and value as that returned by the function. Examine and compare the execution plans.
    Increase complexity (if no error) and repeat. Until the error is isolated.
    The 1st step in any troubleshooting, is IDENTIFYING the problem. Without knowing what the problem is, how can one fix it?

  • Formula Variable issue

    Hi,
    Can someone help me with the following issue as my client wants it quick.
    I have created a formula variable called "Enter number for formula" for number and used this formula variable  in a calculated key figure. When I run the query, it will ask me to enter a number in the formula variable and this number will be used in the calculated key figure to get the results for the calculated key figure in the report.
    Now the point here is that customer has to enter either 5 or 6 or 7 only in this formula variable and should not allow other numbers in the formula variable and more over we should have a selection option with only these 3 values and when customer pressses F4, he should get an option of selecting any one from these 3 values.
    Is this requirement feasible? If So can any one help me with an example.
    Advance Thanks for your help.
    Kishore

    Hi Aby,
    I have a quick question. My first priority is that, is selection option can be enabled for formula variable i,e when ever customer executes a query and presses F4 he should get 5 or 6 or 7 and has to select any one out of three.
    I can give the formula variable description "Enter either 5 or 6 or 7" but this can be worked out only if I have less values but if I have to select some numbers from 1 to 100 then definitely I need a selection option,
    and is the reason we are looking for selection option with the required values.
    Can you please help me with this.
    Thanks,
    Kishore

  • System PATH environment variable issue when user log off and log in or switch from admin to non-admin account

    Hi,
    Problem Description:
    After installing my new product version, when user does log-off and log in again into admin account
    or switch from admin account to non-admin account, PATH environment variable shows incorrect path of my product (previous product version’s path) using command prompt.
    It seems windows refresh issue during session changes (log off and log in / switch from Admin to
    Non-admin account).
    Why PATH environment variable is not refresh immediately after log off and log in again or Switch
    from admin to non-admin mode?. 
    Please see my thread for more details http://social.msdn.microsoft.com/Forums/vstudio/en-US/445ab42c-bdff-405a-8d53-558e1b6c7d34/path-environment-variable-issue-when-user-logoff-and-login-or-switch-from-admin-to-nonadmin?forum=windowsgeneraldevelopmentissues
    Also submitted bug for this in connect.microsoft.com portal.In that it has lots of information
    like problem statement, Reproduction steps and Expected Results.
    Bug ID: 871782
    Could you please any body help me for this?. your support will be appreciated.
    Thanks,
    Marichamy

    Why PATH environment variable is not refresh immediately after log off and log in again or Switch
    from admin to non-admin mode?. 
    I wouldn't have any expectation of what you are doing to work the way you expect.  E.g. why is the %ABC% being replaced at all?  There is some help about this ambiguous scenario in the cmd help...
    /V:ON Enable delayed environment variable expansion using ! as the
    delimiter. For example, /V:ON would allow !var! to expand the
    variable var at execution time. The var syntax expands variables
    at input time, which is quite a different thing when inside of a FOR
    loop.
    /V:OFF Disable delayed environment expansion.
    So, what's the setting for the /V:  switch that your users would be using?  Perhaps you should be using the ! instead of the % for your ABC variable?
    Oh.  There's more below where I found that...
    Delayed environment variable expansion is NOT enabled by default. You
    can enable or disable delayed environment variable expansion for a
    particular invocation of CMD.EXE with the /V:ON or /V:OFF switch. You
    can enable or disable delayed expansion for all invocations of CMD.EXE on a
    machine and/or user logon session by setting either or both of the
    following REG_DWORD values in the registry using REGEDIT.EXE:
    HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\DelayedExpansion
    and/or
    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\DelayedExpansion
    to either 0x1 or 0x0. The user specific setting takes precedence over
    the machine setting. The command line switches take precedence over the
    registry settings.
    In a batch file the SETLOCAL ENABLEDELAYEDEXPANSION or DISABLEDELAYEDEXPANSION
    arguments takes precedence over the /V:ON or /V:OFF switch. See SETLOCAL /?
    for details.
    If delayed environment variable expansion is enabled, then the exclamation
    character can be used to substitute the value of an environment variable
    at execution time.
     So, I guess the essence of your "bug" will boil down to whether you
    need the feature to get the result you want and the
    truth of that first sentence but it certainly looks like a "can of worms" to me.   ; )
    HTH
    Robert Aldwinckle

Maybe you are looking for

  • Header part of Report sectio not exporting well to Excel in IR studio 9.3.1

    Hi All, I'm using Hyperion System 9 Interactive Reporting Studio version 9.3.1.0.0.248. System 9 Server is also same version. I have a requirement to export the Report section in Excel format and email to the user retaining the format, header, footer

  • System Monitoring - add SAP PI 711 system

    All, I'm facing problems when I want to add the ABAP stack of my SAP PI 7.11 system... I use Monitoring Setup Guide (CEN SAP NetWeaver 7.0 EhP 1, SPS 08) to do my setup --> Entering Monitored ABAP Systems with Release SAP NetWeaver 7.1 in ST03G. Usin

  • Taking my UK 5800 to australia

    Hi, I bought a pre paid 5800 with O2 in the UK but have now moved to australia.  All O2 phones are supposedly unlocked, but I cannot use an Australian sim card in my phone, it says that the sim card is invalid.  I have tried my parents pre paid optus

  • Powering Apple Wireless Keyboard

    I know this is a keyboard issue, but there's no keyboard Discussion area, and I'm using it with a MacBook Pro... thanks in advance for any help. Using a new Apple Wireless Keyboard (the latest tiny aluminium one), it seems unclear how to use somethin

  • Kstat_lookup() failing: "Not enough space"

    Hi, I have a peculiar problem. I'm looking up CPU statistics using kstat(), and I'm getting a failure in kstat_lookup() on some machines. Here is the relevant code: kstat_ctl_t* pKstatCtl; kstat_t* pCpuStats; if ((pKstatCtl = kstat_open()) == NULL) /