Global Types Not Released

Hello,
I am using a GUI built in LabVIEW to start TestStand application which is used to run TestStand sequences. I have been getting Property Object leak message when I shutdown the GUI. I noticed that all unreleased objects actually are the Type Definitions from StationGlobals.ini.
I came across some posts on the forum and I did verify all closed references for TS.IEngine and Sequences in the LabVIEW code. Invoke node for UnloadTypePaletteFiles and UnloadAllModules is also used in the code.
Any comments/suggestions on resolving the object leak message is appreciated.
Thanks!

Most likely a reference to the StationGlobals file or the TypeUsageList of the file is being leaked somewhere either in your UI code or your code modules. If you run your sequences in the sequence editor do you still see the leak? If so then the leak is likely in a code module rather than the UI.
Hope this helps,
-Doug

Similar Messages

  • Billing Document Not releasing to Accounting because of Condition Type

    Hi,
    We have used Sales Condition Type ZSCM(Which is a statistical condition type) in Billing Documents and they are already released to Accounting.Today we have created one more Billing Document with same Condition type ZSCM.But this billing document is not getting released to Accounting?
    What could be the reason? Why it was released to Accounting before with the same condition type ZSCM and why it is not getting released to Accounting this time.
    I am breaking my head to find the possible reasons...kindly help me out to find the problem.
    1.Billing document 90005889 - has value 64.48462- and It has only 2 Items and it was released to accounting
    2.Billing document 90005729 - has value 217.87960- and It has only 21 Items and it was not released to accounting and asking to activate +/- sing in KE4I transaction for the ZSCM condition type.
    Why billing document 90005889 is  released for accounting and why 90005729 was not released to accounting?
    Thanks
    Supriya

    Hi,
    There can be following possible reasons fo the samed :
    1. If the specific GL account is not getting any assignment to CO object.
    2. Also you need to check assignment with VKOA that whichever GL is assigned as per business process of Sales (the account which is going to be credited) and all relevant settings in VKOA.
    3. Pls check all substitutions and validations if any connected with that condition type and GL. Becuase sometimes it may happen that because of calling some other application (for ex. Set or substitution as generally transportation of this element happen with entire hierarchy if you add your substition in the node.) at he time of posting of billing document. This has already happen with our business scenario.
    4. Also check if this sales revenue GL is assinged to any set and if that set is called through any substitution ot validation.
    Pls check all these possibilities and revert.
    Thanks & Regards,
    Taral Patel

  • Why not release multi window app and snote type

    If you are not release multi window app like samsung note 10.1, in future you will be closed your apple products. This is not my opinion it is the public opinion

    When will release

  • Could not release my own Key Figure from DP to SNP

    Hi SAP Experts,
    As requirement, I have to run forecast for three Key Figures in Demand Planning (DP): Z_FK1, Z_KFK2, Z_FK3. Unit of measure of these Keyfigure are VND (currency Viet Nam Dong).
    I added these Key Figures to DP Planning Area with name Z_DPPlan01.
    I created a new Planning Area in SNP with name: Z_9ASNP02 by coppying from the standard 9ASNP02. Then I added the above Key Figures (Z_FK1, Z_KFK2, Z_FK3) into Z_9ASNP02 planning area.
    After I runing forecast in DP, I tried to release value of three Key Figures into SNP with tcode: /n/sapapo/mc90. Although system informs that u201CRelease successfully executedu201D, nothing released from Z_DPPlan01 to Z_9ASNP02 when I check in SNP Planning book.
    Question is:
    How to configure Key Figures in SNP and DP (Sematic, Key Figure Function, Category, Category Groupu2026)  so that we can release all three above Key Figures from DP to SNP?
    Thanks very much for your help!
    Duyennx

    Dear Pawan,
    2 . The business requirements are:
    Our customer is a bank that has many branches. They want to forecast for each branches:
    - The Total money (all denominations) will be issued in next quater (Z_KF1). This base on historical data (Z_HIS1)
    - The total money (all denominations)will be received in next quater (Z_KF2). This base on historical data (Z_HIS2)
    Base on these forecast KFs, we need to calculate the Average of Total money will be received and Issued in next quarter (Z_KF3 = (Z_KF1+ZKF2)/90.
    90 is the number of days in a Quarter.
    We need to release the three KFs from DP to SNP for further calculation and reporting. As said previously, I added three time series KFs Z_KF1, Z_KF2, Z_KF3 to SNP Planning Area (Z_9ASNP02)
    If could not release, we can coppy. But the problem is that: in DP, beside standard characteristics 9AMATNR and 9ALOCNO, we also added more custom characteristics like Z_TYPE (to generate CVCs and to drill down money by type (cotton, polymer, coin)). So when I run the Tcode /n/sapapo/tscopy, despite of the fact that in u201CCharacteristic Assignmentu201D I only assigned 9AMATNR and 9ALOCNO from source to target, system show message like:
       3 combinations not contained in target master planning object structure
    Message no. /SAPAPO/MSDP_REL108
    Diagnosis
    Characteristic combinations exist in the source planning area's master planning object structure that are not contained within the master planning object structure of the target planning area.
    System Response
    The source data of these characteristic combinations is not written to to the target planning area.
    So, How to copy with my case?
    4.Please Explain more about:
    u201CCreate a third custom category group containing your custom category, and add this under 9AMALO. Give only your category group name & Semantic should be 000u201D
    4.1.I can creat a custom category group under menu path:
    SAP Reference IMG u2192 Advanced Planning and Optimization u2192 Supply Chain Planning u2192 Supply Network Planning
    u2192 Basic Settings u2192 Maintain Category Groups.
    But where can I create my custome category? Is this menu path:
    SAP Reference IMG u2192 Advanced Planning and Optimization u2192 Global Available-to-promise (Global ATP) u2192 General Settings u2192 Maintain Category
    In this path, I can see to folder:
    -u201CSAP categoriesu201D: We could not create new category in this folder
    - and  u201Cnon-SAP Categoriesu201D: I can press button u201CNew Entriesu201D and key in Data like:
    oCategory: TT
    oCategory text: TT
    oCategory Description: TT
    oSort String: 99
    oCategory type: Requirements (I also tried with Forecast, Stock, Receipt)
    And then, press u201CSaveu201D button. But system always create message:
    u201CEnter values in work area for non-key fields
    Message no. SV174
    Diagnosis
    An entry has been made for a non-key field in the view or table, which does not satisfy a selection condition stored in the Dictionary or made in the maintenance transaction initial screen.
    System Response
    The values entered cannot be accepted.
    Procedure
    Ensure that your entry is correct. This data record will not be displayed if you use the same selection conditions again.u201D
    I donu2019t know what wrong here. How to create my custom Category? Here is u201Cnon-SAP Categoriesu201D, Is there any problem if we create category with this type?
    4.2 How to add custom Category Group under 9AMALO? Which T-code we use?
    5. By the way, Please clearly explain for me:
    5.1. What are differences between u201CTime series live cacheu201D and u201COrder live cacheu201D?
    5.2. What are differences between releasing KFs from DP to SNP and copying KFs from DP to SNP?
    Thanks very much for your help!
    Edited by: xuanduyen on Dec 31, 2011 4:38 AM

  • File Adapter creating huge connections and not releasing.

    Hi,
    We see high no. of current connections in file adapter from weblogic console against eis/HAFileAdapter under deployments -> fileadapter -> monitoring -> Outbound Connection Pools and are concerned about the same. It seems like fileadapter is not releasing the connection and hence no. of connections are piling up over a days and depending upon the transactions. coz after a restart the values comes down from 36000 to 10 ( which is default initial connection).
    But when i see at the datasource level i don't see that much number of active connections. Need to know why this is happening and is this behavior is expected?
    We are using SOA 11g PS2
    Below is the deployment plan for fileadpater in use:
    <?xml version='1.0' encoding='UTF-8'?>
    <deployment-plan xmlns="http://xmlns.oracle.com/weblogic/deployment-plan" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/deployment-plan http://xmlns.oracle.com/weblogic/deployment-plan/1.0/deployment-plan.xsd" global-variables="false">
    <application-name>connectors</application-name>
    <variable-definition>
    <variable>
    <name>ConfigProperty_controlDir_Value_12732617703910</name>
    <value>/var/opt/soa_nfs/data/SOA_PRD_DOMAIN/config/FileAdapter</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundLockTypeForWrite_Value_12737938820080</name>
    <value>oracle</value>
    </variable>
    <variable>
    <name>ConnectionInstance_eis/HAFileAdapter1_JNDIName_13010279387490</name>
    <value>eis/HAFileAdapter1</value>
    </variable>
    <variable>
    <name>ConfigProperty_controlDir_Value_13010283495591</name>
    <value>/var/opt/soa_nfs/data/SOA_PRD_DOMAIN/config/FileAdapter</value>
    </variable>
    <variable>
    <name>ConfigProperty_inboundDataSource_Value_13010283655032</name>
    <value>jdbc/SOADataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundDataSource_Value_13010283782973</name>
    <value>jdbc/SOADataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundDataSourceLocal_Value_13010283877514</name>
    <value>jdbc/SOALocalTxDataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundLockTypeForWrite_Value_13010283941445</name>
    <value>oracle</value>
    </variable>
    <variable>
    <name>ConfigProperty_inboundDataSource_Value_13081683627140</name>
    <value>jdbc/SOADataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundDataSource_Value_13081683875571</name>
    <value>jdbc/SOADataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundDataSourceLocal_Value_13081684137432</name>
    <value>jdbc/SOALocalTxDataSource</value>
    </variable>
    <variable>
    <name>ConnectionInstance_eis/HAFileAdapter_Wedb_JNDIName_13369118887880</name>
    <value>eis/HAFileAdapter_Wedb</value>
    </variable>
    <variable>
    <name>ConfigProperty_controlDir_Value_13369119117411</name>
    <value>/var/opt/soa_nfs/data/SOA_PRD_DOMAIN/config/FileAdapter</value>
    </variable>
    <variable>
    <name>ConfigProperty_inboundDataSource_Value_13369119237302</name>
    <value>jdbc/SOADataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundDataSource_Value_13369119486683</name>
    <value>jdbc/SOADataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundDataSourceLocal_Value_13369119703484</name>
    <value>jdbc/SOALocalTxDataSource</value>
    </variable>
    <variable>
    <name>ConfigProperty_outboundLockTypeForWrite_Value_13369119820485</name>
    <value>oracle</value>
    </variable>
    </variable-definition>
    <module-override>
    <module-name>FileAdapter.rar</module-name>
    <module-type>rar</module-type>
    <module-descriptor external="false">
    <root-element>weblogic-connector</root-element>
    <uri>META-INF/weblogic-ra.xml</uri>
    <variable-assignment>
    <name>ConfigProperty_controlDir_Value_12732617703910</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter"]/connection-properties/properties/property/[name="controlDir"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundLockTypeForWrite_Value_12737938820080</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter"]/connection-properties/properties/property/[name="outboundLockTypeForWrite"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConnectionInstance_eis/HAFileAdapter1_JNDIName_13010279387490</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter1"]/jndi-name</xpath>
    <origin>planbased</origin>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_controlDir_Value_13010283495591</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter1"]/connection-properties/properties/property/[name="controlDir"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_inboundDataSource_Value_13010283655032</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter1"]/connection-properties/properties/property/[name="inboundDataSource"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundDataSource_Value_13010283782973</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter1"]/connection-properties/properties/property/[name="outboundDataSource"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundDataSourceLocal_Value_13010283877514</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter1"]/connection-properties/properties/property/[name="outboundDataSourceLocal"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundLockTypeForWrite_Value_13010283941445</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter1"]/connection-properties/properties/property/[name="outboundLockTypeForWrite"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_inboundDataSource_Value_13081683627140</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter"]/connection-properties/properties/property/[name="inboundDataSource"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundDataSource_Value_13081683875571</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter"]/connection-properties/properties/property/[name="outboundDataSource"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundDataSourceLocal_Value_13081684137432</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter"]/connection-properties/properties/property/[name="outboundDataSourceLocal"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConnectionInstance_eis/HAFileAdapter_Wedb_JNDIName_13369118887880</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter_Wedb"]/jndi-name</xpath>
    <origin>planbased</origin>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_controlDir_Value_13369119117411</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter_Wedb"]/connection-properties/properties/property/[name="controlDir"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_inboundDataSource_Value_13369119237302</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter_Wedb"]/connection-properties/properties/property/[name="inboundDataSource"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundDataSource_Value_13369119486683</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter_Wedb"]/connection-properties/properties/property/[name="outboundDataSource"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundDataSourceLocal_Value_13369119703484</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter_Wedb"]/connection-properties/properties/property/[name="outboundDataSourceLocal"]/value</xpath>
    </variable-assignment>
    <variable-assignment>
    <name>ConfigProperty_outboundLockTypeForWrite_Value_13369119820485</name>
    <xpath>/weblogic-connector/outbound-resource-adapter/connection-definition-group/[connection-factory-interface="javax.resource.cci.ConnectionFactory"]/connection-instance/[jndi-name="eis/HAFileAdapter_Wedb"]/connection-properties/properties/property/[name="outboundLockTypeForWrite"]/value</xpath>
    </variable-assignment>
    </module-descriptor>
    <module-descriptor external="false">
    <root-element>connector</root-element>
    <uri>META-INF/ra.xml</uri>
    </module-descriptor>
    <module-descriptor external="true">
    <root-element>wldf-resource</root-element>
    <uri>META-INF/weblogic-diagnostics.xml</uri>
    </module-descriptor>
    </module-override>
    <config-root>/opt/soauser/products/soa11.1/Oracle_SOA1/soa/connectors/plan</config-root>
    </deployment-plan>
    -Rohit

    Hi Arik,
    To answer your questions :
    You are using HAFileAdapter in your processes JNDI defenitions? --Yes
    Check in your HAFileAdapter Connection Pool if Shrinking Enabled is set to true. --Its set to true
    I would recomend also to change the properties Test Connections On Reserve to true, and Test Frequency Seconds(900 is the default). --These properties are also in place
    -Rohit

  • Creating a new "Class type" in release procedure.

    Hi guys,
    how can I create a new <b>"Class type"</b> in release procedure?

    Hi,
    But I do not know why anyone would create a new batch type for release strategies, it is totally unnecessary and provides no additional options. The class type indicates which objects can be classified and there is already one for release strategies.
    You can create a new class or add characteristics to the existing class used in the release strategy anyway.
    Ther is also NO WAY that two classes can be used in the release strategy and this new class type would not change this either???
    Steve B

  • OIM 11g using too much memory and not releasing it when shutting down

    Hello,
    we have a problem with OIM 11g using too much memory (about 5gb) and it's not releasing it at shutdown (4gb still used).
    We are using a VM with RedHat Linux 5.6. Originally we had 4gb RAM + 2gb swap file. We installed Admin Server, OAM, OIM and SOA on that machine but quickly realised we couldn't run all 4 programs at once in 6gb. AdminServer could run with 2 other products, but it was a tight fit in memory.
    So we increased the RAM to 8gb (still 2gb swap file). But then our problem occured : I start the Admin Server (2.7gb total memory used), then OAM (4.6gb total memory used) and then OIM. After it started the server is now using 9.6gb of memory (~300mb of free memory) ! The problem gets even better : after I shut down everything (OIM, OAM, admin server) the "top" command show that there is still 4gb of memory used even tho nothing else is running on the server ! There is absolutely no other process (other than root stuff) running and no other users connected to the machine. After a reboot, it shows 400mb of memory used. I tried restarting the programs and it did the same thing.
    Our intuition is that there might be a memory leak or some bug in OIM that might use up almost all the free memory and it's not releasing it upon shutdown. It might have been there before we increased the memory but have not noticed it since memory was already tight.
    Anyone encountered the same problem ? Any idea ? Any suggestion to narrow down the problem ?
    Thank you

    You can adjust the memory settings for WLS by editing the setSOADomainEnv.sh file that can be found in your /middleware/user_projects/domains/<domain>/bin/ folder. There is an argument called PORT_MEM_ARGS which is used to set your Java memory arguments. This way you can decrease/increase the amount of memory used by each managed server.
    I usually type "ps -ef | grep oracle" to see what processes are running by the oracle user. This way the output doesn't get cluttered with root processes.
    Sunny Tsang

  • XML,CLOB  AND MEMORY : CONSUMED BUT NOT RELEASED !!!

    Hi,
    I'm working with XMLGEN Package and XSLT Processor to produce XML Document on Oracle 8.1.7.3 server, I use 9i XML and Java packages.
    I'm facing the following BIG MEMORY problem :
    Environment : I must generate an XML parsed with an XSL document of 80Mo (nearly 22 000 rows),
    as XMLGEN is on DOM parsing method, I extract my XML by 500 Rows and I loop until 22 000 rows. I use DBMS_JOB with jobs who read and execute export each minute.
    The algorithme is :
    keeprow=22000
    while keeprow>0
    Create 3 clob (DBMS_LOB Package) : one for XSL Sheet, one for XML and one for result
    GetXML (XMLGEN Package)
    Transform in XSL (XSL Processor)
    Write to disk (UTL_FILE Package)
    Free the 3 Clob ((DBMS_LOB Package))
    keeprow =keeprow-500
    loop
    The problem : The process start at 250Mo ot total memory and END at 1000 Mo of used memory and NEVER RELEASE 1 ko of memory.
    So often I get a JavaOutOfMemoryError (I've allocated 1Go Ram to my JAVA process).
    Any help will be very very appreciated !
    My derived problem is 22 000 rows is not enough I've some export of 200 000 rows to do (And I cannot allocate 10 Go of RAM !!!)
    Following My PL/SQL Code.
    Regards
    Fred
         PROCEDURE DO_EXPORT_XML(
                   P_JOB_ID JOB_PARAMETRE.JOB_ID%TYPE,
                   P_JOB_ID_ORDRE JOB_PARAMETRE.JOB_ID_ORDRE%TYPE,
                   P_CLE_UP UPLOADREQ_TEMP.ID%TYPE,
                   P_LOAD_OR_DELOAD VARCHAR2)
              IS
              L_FILE_NAME JOB_PARAMETRE.JOB_FILE_NAME_DEST%TYPE;
              L_REP_NAME JOB_PARAMETRE.JOB_REP_NAME_DEST%TYPE;
              L_FILE_STYLESHEET JOB_PARAMETRE.JOB_STYLESHEET%TYPE;
              L_VERSION_PDM JOB_PARAMETRE.JOB_VPDM%TYPE;
              P_SELECT varchar2(4000):='';
              P_CURSOR varchar2(4000):='';
         l_filehandler_out UTL_FILE.FILE_TYPE;
              --Variable pour le traitement par lot de 500
              L_NBROW_TODO_ATONCE number := 500;
              L_NBROW_MIN number := 1;
              L_NBROW_MAX number := -1;
              L_NBROWKEEPTODO number := -1;
              xslString CLOB := null;
              res number default -1;
              xmlString CLOB := null;
              li_ret number := 0;
              li_faitle number := 0;
              amount integer:= 255;
              li_loop integer := 0;
              charString varchar2(255);
              ls_deload varchar2(255) default '';
              ls_SQL varchar2(4000) default '';
              ls_temp_file varchar2(255) default '';
              text_file_dir varchar2(32) := 'e:\temporarydir';
              l_par xmlparser.parser;
         l_xml xmldom.domdocument;
         l_pro xslprocessor.processor;
         l_xsl xslprocessor.stylesheet;
              docfragnode xmldom.DOMNode;
              docfrag xmldom.DOMDocumentFragment;
              l_parsedclob clob := null;
              l_amount binary_integer := 32767;
              l_ligne varchar2(32767);
              l_offset number default 1;
              l_pos number default null;
              l_pos2 number default null;
              l_lobsize number default null;
              l_memsize number default 1073741824; --1024 Mo
              l_mempipo number default 0;
              type rc is ref cursor;
              l_cursor rc;
              cursor TEMPLATE is select UNSPSC,1 as NB from UPLOADREQ_TEMP where 1=2;
              c1rec TEMPLATE%rowtype;          
              BEGIN
              l_mempipo:=setmaxmemorysize(l_memsize);
              dbms_lob.createtemporary(l_parsedclob, true, dbms_lob.session);
              dbms_lob.createtemporary(xmlstring, true, dbms_lob.session);
              --return the good select
              GET_SELECT_TO_EXPORT_XML(P_JOB_ID , P_JOB_ID_ORDRE , P_CLE_UP , P_SELECT,P_CURSOR, P_LOAD_OR_DELOAD);
                        SELECT JOB_FILE_NAME_DEST,JOB_REP_NAME_DEST,JOB_STYLESHEET
                        INTO L_FILE_NAME,L_REP_NAME,L_FILE_STYLESHEET
                        FROM JOB_PARAMETRE
                        WHERE JOB_ID =P_JOB_ID AND JOB_ID_ORDRE=P_JOB_ID_ORDRE;
                        l_filehandler_out := UTL_FILE.FOPEN(text_file_dir, L_FILE_NAME, 'w',l_amount);
                        --Return XSL Sheet in a clob : cause of memory consumed  but not released
                   xslString := METACAT.load_a_file( 1,L_FILE_STYLESHEET);     
                        open l_cursor for P_CURSOR;
    LOOP
                   fetch l_cursor into c1rec;
                   exit when l_cursor%notfound;
                             L_NBROW_MIN := 1;
                             L_NBROW_MAX := 0;
                             L_NBROWKEEPTODO:=c1rec.NB;
                             LOOP
                             begin
                                  if(L_NBROWKEEPTODO > L_NBROW_TODO_ATONCE) THEN
                                       begin
                                       L_NBROW_MAX:= L_NBROW_TODO_ATONCE + L_NBROW_MAX;
                                       L_NBROWKEEPTODO:= L_NBROWKEEPTODO - L_NBROW_TODO_ATONCE;
                                       end;
                                  else
                                       begin
                                       L_NBROW_MAX:= L_NBROW_MAX + L_NBROWKEEPTODO;
                                       L_NBROWKEEPTODO:=0;
                                       end;
                                  end if;
                                  --on ouvre le fichier de risultats
                                  ls_SQL:= P_SELECT || ' AND ( ROWNUM BETWEEN ' || L_NBROW_MIN || ' AND ' || L_NBROW_MAX || ' ) and UNSPSC=''' || c1rec.UNSPSC || '''';
                                  ls_temp_file := c1rec.UNSPSC || '_' || L_FILE_NAME;
                                  L_NBROW_MIN:=L_NBROW_TODO_ATONCE + L_NBROW_MIN;
                                  --CAT_AUTOLOAD.JOB_ADD_TRACE (P_JOB_ID,'UPLOAD REQUISITE : Export donnies REQUETE ' || to_char(li_loop), ls_SQL,'',0,0);
                                  xmlgen.resetOptions;
                                  xmlgen.setErrorTag('ERROR_RESULT');
                                  xmlgen.setRowIdAttrName('NAH');
                                  xmlgen.setRowIdColumn('NAH');
                                  xmlgen.setEncodingTag('ISO-8859-1');
                                  xmlgen.useNullAttributeIndicator(false);
                                  if(xmlString is not null) then
                                       dbms_lob.open(xmlString,dbms_lob.lob_readwrite);
                                       l_lobsize:= dbms_lob.Getlength(xmlString);
                                       if(l_lobsize>0) then
                                       dbms_lob.erase(xmlString,l_lobsize,1);
                                       end if;
                                       dbms_lob.close(xmlString);
                                  dbms_lob.freetemporary(xmlString);
                                       dbms_lob.createtemporary(xmlstring, true, dbms_lob.session);
                                  end if;
    --Return XML in a clob : cause of memory consumed  but not released
                                  xmlString := xmlgen.getXML(ls_SQL,0);
                                  l_par := xmlparser.newparser;
                                  xmlparser.parseclob(l_par, xslString);
                                  l_xsl := xslprocessor.newstylesheet(xmlparser.getdocument(l_par),null);
                                  xmlparser.parseclob(l_par, xmlString);
                                  l_xml := xmlparser.getdocument(l_par);
                                  l_pro := xslprocessor.newprocessor;
                                       xslprocessor.showWarnings(l_pro, true);
                                       xslprocessor.setErrorLog(l_pro, text_file_dir || substr(ls_temp_file,0,length(ls_temp_file)-4) || '_logerreur.XML');
                                       if(l_parsedclob is not null) then
                                                 dbms_lob.open(l_parsedclob,dbms_lob.lob_readwrite);
                                                 l_lobsize:= dbms_lob.Getlength(l_parsedclob);
                                                 if(l_lobsize>0) then
                                                 dbms_lob.erase(l_parsedclob,l_lobsize,1);
                                                 end if;
                                                 dbms_lob.close(l_parsedclob);
                                            dbms_lob.freetemporary(l_parsedclob);
                                                 dbms_lob.createtemporary(l_parsedclob, true, dbms_lob.session);
                                       end if;
                        --Return XML Processed with XSL in a clob : cause of memory consumed  but not released
                                  xslprocessor.processxsl(l_pro,l_xsl,l_xml,l_parsedclob);
                                       --release NOTHING
                                  xmlparser.freeparser(l_par);
                                  xslprocessor.freeprocessor(l_pro);
                                                      l_ligne:='';
                                                      l_offset :=1;
                                                      l_pos := null;
                                                      l_pos2 := null;
                                                      if(li_loop=0) then
                                                           begin
                                                                --on ouvre le fichier et on sauve l'entete + les donnies dedans.
                                                                     l_pos:=dbms_lob.instr(l_parsedclob,'</DATA>');
                                                      if ( nvl(l_pos,0) > 0 ) then
                                                                          loop
                                                                          if(l_pos-1>l_amount + l_offset ) then
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_amount,l_offset);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    l_offset:=l_offset+l_amount;
                                                                               else
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_pos-1 -l_offset ,l_offset);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    exit;
                                                                               end if;
                                                                          end loop;
                                                                     else
                                                                          EXIT;
                                                                     end if;
                                                           end;
                                                      else
                                                           --on met les donnies donc on ne repete pas le debut
                                                           begin
                                                                     l_pos:=dbms_lob.instr(l_parsedclob,'<ITEM');
                                                      if ( nvl(l_pos,0) > 0 ) then
                                                                     l_pos2:=dbms_lob.instr(l_parsedclob,'</DATA>');
                                                      if ( nvl(l_pos2,0) > 0 ) then
                                                                          loop
                                                                          if(l_pos + l_amount <= l_pos2 -1 ) then
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_amount,l_pos);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    l_pos:=l_pos +l_amount;
                                                                               else
                                                                                    l_ligne:=dbms_lob.SUBSTR(l_parsedclob,l_pos2 -1 -l_pos,l_pos);
                                                                                    UTL_FILE.PUT(l_filehandler_out,l_ligne);
                                                                                    UTL_FILE.fflush(l_filehandler_out);
                                                                                    exit;
                                                                               end if;
                                                                          end loop;
                                                                          else
                                                                          exit;                                                                      
                                                                          end if;
                                                                     end if;
                                                           end;
                                                      end if;
                                                 li_loop:=li_loop + 1 ;
                                                 --UTL_FILE.FCLOSE(l_filehandler_in);
                                                 JAVA_GC();
                                                 EXIT WHEN L_NBROWKEEPTODO=0;
                                                 Exception
                                                 when others then
                                                      begin
                                                      -- IF(utl_file.is_open(l_filehandler_in)) THEN
                                                      --               utl_file.fclose( l_filehandler_in);
                                                      -- END IF;
                                                      IF(utl_file.is_open(l_filehandler_out)) THEN
                                                                     utl_file.fclose( l_filehandler_out);
                                                      END IF;
                                                      RAISE_APPLICATION_ERROR(-20001,'File with errors');
                                                      end;
                             END;
                             END LOOP;
    END LOOP;
    CLOSE l_cursor;
                        if ( xmlString is not null ) then
                                  dbms_lob.open(xmlString,dbms_lob.lob_readwrite);
                                  l_lobsize:= dbms_lob.Getlength(xmlString);
                                  if(l_lobsize>0) then
                                  dbms_lob.erase(xmlString,l_lobsize,1);
                                  end if;
                                  dbms_lob.close(xmlString);
                                  dbms_lob.freeTemporary( xmlString);
                        end if;
                        if(l_parsedclob is not null) then
                                  dbms_lob.open(l_parsedclob,dbms_lob.lob_readwrite);
                                  l_lobsize:= dbms_lob.Getlength(l_parsedclob);
                                  if(l_lobsize>0) then
                                       dbms_lob.erase(l_parsedclob,l_lobsize,1);
                                  end if;
                                  dbms_lob.close(l_parsedclob);
                                  dbms_lob.freetemporary(l_parsedclob);
                        end if;
                        UTL_FILE.NEW_LINE(l_filehandler_out);
                        l_ligne:='</DATA></CATALOG>';
                        UTL_FILE.PUT(l_filehandler_out,l_ligne);
                        UTL_FILE.FCLOSE(l_filehandler_out);                    
                   EXCEPTION
                   when others then
                             begin
                             IF(utl_file.is_open(l_filehandler_out)) THEN
                                       utl_file.fclose( l_filehandler_out);
                                  END IF;
                             end;     
              END;
    ******************************

    Thank you for the info - I had no idea I was puing myself in danger by cutting it so close.  Since your post I have moved my iphoto library to an external drive and now have 165 GB of space on my HD.  Following this I have 2 questions.
    1.  Since my available HD space was reduced by the size of the photo download it seems logical that the download is somewhere on my HD still.  Is there a place where these photos might be hiding on my HD even though they are not available on the iphoto library?
    2.  I was able to recover the .jpg files which are fine.  I also recovered the .mov files but they have been compromised.  I am hoping I can find the originals still on the HD somewhere.  If not, do you have any suggestions for recovery methods or programs?  I have not used the SD card since the incident so I should be able to attempt another recovery to salvage the .mov files if there is an alternative method/program available.
    Thanks again!

  • Invoice Document not released to Accounting -Period was closed

    Hi,
    SD Invoices are not released to Accounting.Those documents are from previous period and also also those periods were already closed.
    Now what should i do? if i want to release the invoice documents which are created in previous periods.Kindly advice me.
    Thanks
    Supriya

    Hi Supriya,
    Please open previous period for posting. Please follow the given below path:-
    SPRO  Financial Accounting  Financial Accounting Global Settings  Document  Posting Periods  Open and Closed Posting Periods
    Here you need to enter Posting Period Variant name assigned to company code and other detail like account number.
    To know the Posting Period Variant follow this path:-
    SPRO  Financial Accounting  Financial Accounting Global Settings  Document  Posting Periods  Assign Variants to Company Code
    Or else you can take help of some FI guy.
    Regards,
    Anand

  • I bought a team license for two computers, the purchase was recorded on the credit card and the amount recorded in the making, but was unable to validate the association staff . I received an email stating that Adobe could not release the payment and that

    I bought a team license for two computers, the purchase was recorded on the credit card and the amount recorded in the making, but was unable to validate the association staff .
    I received an email stating that Adobe could not release the payment and that I should validate the method of payment , tried to insert another card number but the system does not accept the security VAT reporting error message. How do I validate my license with association staff and confirm the payment card?

    Hi Daniel,
    For any sort of payment related matter, kindly contact our support team via:  http://helpx.adobe.com/in/contact.html?step=CCSN_adobe-id-signing-in_stillNeedHelp
    If you are unable to use chat option kindly try below mentioned steps.
    Try different browser.
    Delete cookies and cache
    If you are still not able to chat, Kindly reply with the below mentioned information.
    OS version:
    Browser Version:
    You can also try: http://helpx.adobe.com/x-productkb/global/phone-support-orders.html 
    Thanks,
    Atul Saini

  • Billing documents should not be created when it is not released to accounti

    Hi SD gurus,
    In some situation, billing documents are generated but it is not released to accounting which results in mismatch between FI value and SD value. We go to VFX3 and see the list of billing documents and take corrective action.
    Our requirement is that the billing document should not be generated when system is not releasing this billing document to accounting.
    Please suggest a solution for this.
    Regards,
    Senthil.

    Thanks giri.
    For the following reasons, the billing documents are not released to accounting.
    1. If the user wrongly chosen the billing type for the delivery.
    2. After creating condition type, it has to be assigned in COPA. If we forgot to do it, billing doc will not released.
    Our requirement is that if the billing document is not able create accounting document, the billing document itself should not be generated.
    Hope this will be suffice to understand my issue and suggest a suitable solution.
    Points will be rewarded.
    Regards,
    Kumar.

  • Clob temporary table space is not released

    In our java web application, it uses datasource to call oralce stored procedure and get back data in Clob data type. The oracle version is 8.1.7.4. After the database call, the database connection is closed. But I found that the tablespace for Clob data is not released. Right now it becomes a critical issue of our production database. Anybody has any clue? Really appreciate.

    Team,
    We have a table of size 550gigs in size and we truncated the table , truncated sucessfully but space is not released in os level, what action we can take to release the space and this table has only one row and contains the binary data.
    Thanks
    PGR
    Hello,
    Yes space wont be released immediately .If large extents are in picture which I assume is your case it goes into deferred drop a background process which will execute after some time( time may vary).See below link for details.
    As per BOL if extents are more than 128 it goes in deferred drop.
    http://msdn.microsoft.com/en-us/library/ms177495.aspx
    You should wait for some time .keep checking the free space
    Below discussion will surely help you in understanding.See Jonathan's reply
    http://social.msdn.microsoft.com/Forums/en-US/4aa2537e-246b-4bfe-818d-3482531d9149/sql-server-2005-massive-400gb-table-dropped-space-not-released
    Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers

  • BBP_ANALYZE_PO_APPLIC is not released

    Hi,
    We are implementing SRM5.0 with ECC6.
    When we create PO manually in SRM then it does not goto R/3. Here PO status remains in Order condition but there is not document transfer from SRM to ECC as well as when we tried to push through FM, it gives following errors;
    1.BBP_ANALYZE_PO_APPLIC is not released
    2. PO XXXXXXX : No instance of object type purhcaser order has been created, External Referance.
    We have already checked all settings for ECPO as well as backend document type.
    We can create PO by normal cycle like SHC--->PO its goes properly in ECC
    When we create Manual PO and click on Order as direct material then also SRM PO goes to ECC properly.
    Only we are facing problems to transfer SRM PO which created manually to ECC. (Note - This process was also working fine before few days)
    Any idea?
    Thanks,

    Hi
    Please see some discusions on this same issue.
    PO created with status : Transfer Failed (E.Sys.)
    Problem with BAPI_PO_CREATE1
    /thread/3276932 [original link is broken]
    regards
    Muhtu
    Edited by: Muthuraman Govindasamy on Sep 1, 2008 6:10 PM

  • FI/CO interface: Object type not clear

    Hi guyes
    When we try to release the billing document to accounting we are getting the below message. Kindly help me to find the problem
    FI/CO interface: Object type not clear Message No. RW010
    regards
    Hari

    Hi
    Please find below
    FI/CO interface: Object type not clear
    Message no. RW010
    Diagnosis
    The FI/CO interface was called with an object type which is not clear: VBRK and .
    System response
    The document cannot be posted.
    Procedure
    There is a system error. Contact the SAP Hotline service.

  • Billing Document Not Released

    Dear All,
    After Saving the document it is not released and system gives error is as;
    You have not defined a CO account assignment for an account that is relevant to cost accounting.
    System response
    Account 411101 is defined as a cost element.
    This means that you must always specify a CO account assignment.
    Waiting for response.
    Sachhin

    Hello Sachhin,
    Postings to a profit center are only statistical and does not fully
    satisfy the 'Cost Accounting Assignment' required by the system.
    This is probably why the system continues to prompt you for a (valid)
    CO object. If you are using CO-PA, the profitability segment will
    satisfy the cost accounting assignment. If you assign an internal order
    of project, etc. it will also satisfy the cost accounting assignment.
    However, if your revenue accounts are set up as cost elements, you will
    receive this error message when trying to release the billing
    document to accounting.  You will need to establish a real CO object.
    If you do not want to post this revenue to any CO object, and only
    want to post to a profit center in EC-PCA, then you should not create
    the GL account as a cost element. If you do not declare this as a
    cost element, then it posts to FI and EC-PCA without the error KI235.
    Also I would recommend that you check the account assignment to make
    sure it has been set up properly in customizing.  Please review
    transactions 'OKB9' or 'OKC9'.
    Here are some notes for your review:
    83702      INFO: Acct assignmt logic sales order proc. - REM
    41103      INFO: CO account assignment logic
    17939      KI235 Account requires acct.assign. rel. to cost ac
    704119     Error KI235 in processing of a billing document
    105024     Automatic a/c assignment (OKB9) does not work
    106968     FAQ: Account Assignment Logic
    590855     VF02: Error message KI235
    Please also check whether you have assigned a cash account determination procedure to billing type in VOFA, if so, system will try to post to cash account.
    But the cash sales accounts are not relevant for CO, then error is issued.
    Regards,
    Alex

Maybe you are looking for

  • Scans are too big Can I re-size a scan?

    I scan a lot of contracts and I just bought my photosmart 7525 today.  I scanned a contract but it would not email to my account.  i'm thinking that it was too big for my email account.  The size was only 9.25 mb but it still seemed like a lot becaus

  • Failed Mavericks Install / Time Machine

    My iMac is stuck in a loop after failed Mavericks install.  The message told me to back up data, erase and install again.  Naturally, I hadn't run Time Machine in a month and had some important files to try and save (stupid, I know).  Fortunately, I

  • DB startup failed

    Hi All, I am getting the following error when starting the server: IBM AIX RISC System/6000 Error: 13: Permission Denied R3trans: connect check finished with error code 12 ora 27121 DB startup failed What is to be done? Plz help me with this. Regards

  • Calc time vs. defragmentation

    I have a database with an average cluster ratio of .44. If I export and reload my data, it will go to 1.0, but as soon as I calc it goes back to .44.Under my current data settings, this calc takes a mere 5.7 seconds to run and retrevial time is fine.

  • Advertisement in SAP MM

    Dear All,           How to capture Advertisement like Media in system.If any one knows please explain the process. Thanks, Alam