Create Room issue

Hello all,
I'm facing a problem when creating a Room through Room API, we create a Room, set all parameter, folderpath, name, template, etc. and everything goes fine but when we access the recently created room we note that the collaboration room keeps the default path for folders not we have passed as parameter through the API. If we create the room using Room creation wizard everything works fine, do you have any idea or if we're doing something wrong?.
Any help apreciated,
Ramien.-

Hello Vijay,
Thank you very much for your reply, look we have followed the instructions on this link:
http://help.sap.com/saphelp_nw04s/helpdata/en/7d/c69c42d706c66ae10000000a155106/content.htm
Is there any other available example explaining room creation?... or if you know a workaround to see if the template is receiving the right parameters.
This is what we have done:
Reviewing the step by step solution following the document above:
1. An application calls the Rooms API createRoom() method and passes all relevant data for the new room as a parameter.
> I think is ok, because the room is created.
2. The Collaboration Room backend system calls the User Management API to:
○       Create a user group containing all users of the new room
○       Create a user group for each room role containing the users assigned to the role in question
> group generated, we think ok too.
3. To ensure compatibility with earlier versions of the Collaboration Room framework, the Repository Framework API is called to:
○       Create a public and a private folder for each selected content
store (in the template)
○       Copy content from the content template folders to the new private
folders
○       Create a Public Area folder containing links to all new public
folders
○       Create a Structure folder containing links to all new private
folders and another link to the Public Area folder
○       Set appropriate ACL permissions for all these new folders in the
structure
> Create folder structure, ok.
4. The Repository Framework API is called to:
○       Create a new folder resource in a special repository that
represents the room itself
○       Set the name, description, and so on for the room as properties of
the new room resource
○       Create a link from the room resource to the room Structure folder
○       Set ACL permissions for the room resource
> Access ok.
5. The Portal Connector API is called to:
○       Copy the template workset (including pages and iViews) to a special
PCD folder
○       Map all room parameters (including the hidden parameters such as
room ID) to the iView parameters according to the mapping rules defined in the template
> Maybe the problem be here.
6. The Groupware API is called to send invitation e-mails to all users of the new room.
> notifications sent ok.
7. The Status Engine API is called to create a status event for the room creation.
> ok too.
8. At each extension point during the room creation process, the extension framework calls the extensions defined in the template to enable the connection of other backend systems and to add additional functions to the new room.
> don't know how to test this..
Thank you and I hope haven't confused you a lot.
Ramien.-

Similar Messages

  • Portal runtime error while creating rooms

    Hi,
    I installed collaboration and content management on my portal instance
    and started basic configuration. Now while creating rooms , i get the
    portal runtime error. I have enclosed the screen shot of the error.
    I have enclosed the steps that can be followed to reproduce the error.
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView :
    pcd:portal_content/administrator/super_admin/super_admin_role/com.sap.portal.content_administration/com.sap.portal.content_admin_ws/com.sap.netweaver.coll.colcontent/com.sap.netweaver.coll.RoomCreation/com.sap.netweaver.coll.RoomCreationWizard
    Component Name : com.sap.netweaver.coll.appl.ui.room.RoomCreationWizard
    The exception was logged. Inform your system administrator..
    Exception id: 10:23_07/02/07_0037_818308650
    See the details for the exception ID in the log file

    Hi Detlev,
    Thanks a lot. I have enclosed the information from default trace.
    << item 0 : >>#1.5#00306E0AA058008600000060000044AC000428E704E99CFE#1170872586724#com.sap.portal.portal#sap.com/irj#com.sap.portal.portal#SAPOSS#13800##srv006_W81_818308650#SAPOSS#11f658b0b6d811db93c800306e0aa058#Thread[PRT-Async 3,5,PRT-Async]##0#0#Error#1#/System/Server#Java###Exception ID:10:23_07/02/07_0037_818308650
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in service call of Portal Component
    Component : pcd:portal_content/administrator/super_admin/super_admin_role/com.sap.portal.content_administration/com.sap.portal.content_admin_ws/com.sap.netweaver.coll.colcontent/com.sap.netweaver.coll.RoomCreation/com.sap.netweaver.coll.RoomCreationWizard
    Component class : com.sap.ip.collaboration.roomui.api.rcwizard.RcWizardComponent
    User : SAPOSS
    at com.sapportals.portal.prt.core.PortalRequestManager.handlePortalComponentException(PortalRequestManager.java:969)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:343)
    at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable$1$DoDispatchRequest.run(AsyncIncludeRunnable.java:377)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sapportals.portal.prt.core.async.AsyncIncludeRunnable.run(AsyncIncludeRunnable.java:390)
    at com.sapportals.portal.prt.core.async.ThreadContextRunnable.run(ThreadContextRunnable.java:164)
    at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:729)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: com.sapportals.wdf.WdfError
    at com.sapportals.wdf.WdfCompositeController.buildComposition(WdfCompositeController.java:678)
    at com.sapportals.htmlb.AbstractCompositeComponent.preRender(AbstractCompositeComponent.java:33)
    at com.sapportals.htmlb.Container.preRender(Container.java:118)
    at com.sapportals.htmlb.Container.preRender(Container.java:118)
    at com.sapportals.htmlb.Container.preRender(Container.java:118)
    at com.sapportals.portal.htmlb.PrtContext.render(PrtContext.java:413)
    at com.sapportals.htmlb.page.DynPage.doOutput(DynPage.java:237)
    at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:129)
    at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
    at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
    at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
    ... 7 more
    Manoj

  • Error while creating media issue in msd using jpmg0

    Dear all,
    kindly help me to solve the following issue. when i am creating media issue using tcode jpmg0, in the  process lo,g system shows the following error message.
    "Required parameters missing when calling up module " ACCOUNTING_KEYS_READ_FOR_BWKEY". It is very helpfull to me, give a reply by anybody as early as possible. kindly help me.

    Hi,
    Request you to check media product and media issue master data setup.
    Items for which neither financial accounting nor price calculation is permitted,you might this error.
    Best Regards,
    Chandra

  • BAPI For Create Goods Issue for Sales order with picked quantity

    Hi friends,
            Is there any BAPI available to create Goods issue For sales order with picked quantity...............?
    we hv used BAPI_OUTB_DELIVERY_CREATE_SLS
    with sales order .......its creating delivery order but not doing goods issue with piked quantity........

    pls,reply its argent

  • EJB CMP remove create cache issue? DuplicateKeyException

    EJB CMP remove create cache issue? DuplicateKeyException
    Hi I have an EJB 2.1 application using CMP. Most things work fine. But if I in a transaction tries to remove a bean and create a new one with the same primary key I get a DuplicateKeyException:
    2007-11-16 09:25:31,963 ERROR [RMICallHandler-6] AdminGroupData_ConcreteSubClass147 - Error adding AccessRules:
    javax.ejb.DuplicateKeyException: Exception [EJB - 10007]: Exception creating bean of type [AccessRulesData]. Bean already exists.
    at oracle.toplink.internal.ejb.cmp.EJBExceptionFactory.duplicateKeyException(EJBExceptionFactory.java:195)
    I suspect that the remove call only removes from the cache (until commit), but that the create call checks the database or something?
    My code is simple like the following:
    AdminPreferencesDataLocal apdata1 = adminpreferenceshome.findByPrimaryKey(certificatefingerprint);
    adminpreferenceshome.remove(certificatefingerprint);
    adminpreferenceshome.create(certificatefingerprint,newadminpreference);
    Is there some configuration I can set in toplink-ejb-jar.xml to fix this?
    I use OC4j 10.1.3.3
    Cheers,
    Tomas

    The bean.remove() was executed but the sql DELETE was executed to the database as the result, oc4j manages all sql statements and they are optimized to commit to the database in batch at once when the transaction commit. Oc4j ejb container is smart and preventing you from creating the same entity cached in the transaction because the sql delete was not really committed to the database when the create is called.
    My guess is that the reason it works with IBM WAS was because it issued sql for each remove/create call right away instead of doing them in batch as oc4j, or your WAS remove then create were called in separate transactions.

  • I am using PS CC can I delete older versions of PS without creating any issues?

    Would love to clear up some disk space. I am using PS CC and have PS CS5 & CS6 installed. Can I delete both of them without creating any issues?
    Thanks,
    Abel

    Theoretically, yes. Though I recommend you do an "Uninstall" rather than a delete.  I say "theoretically" because I once had a very nasty problem trying to uninstall a CS3 BETA release that resulted in an inability to properly install any subsequent releases. This was on Windows Vista.
    This is old, but should apply:  FAQ: How do I uninstall the Photoshop CS6 beta?

  • Creating room on full hard drive

    Creating room on full hard drive: suggestions for best item to remove.

    Restart in Safe Mode:
    http://support.apple.com/kb/HT1564?viewlocale=en_US
    Empty the trash.
    - Delete all files in the Downloads folder.
      Empty the Trash.
    - Start iPhoto.  Empty its trash.
    - Delete "Recovered Messages", if any.
        Hold the option key down and click "Go" menu in the Finder menu bar.
        Select "Library" from the drop down menu.
        Library > Mail > V2 > Mailboxes
        Delete "Recovered Messages", if any.
    - Empty the Trash.
    - Restart.
    - Re-index your system disk:
      http://support.apple.com/kb/ht2409
    Backup:
    Run a Time Machine (or other) backup since you are about to delete and move files and you may need to recover from any inadvertent mistakes or decisions.
    Deleting and Offloading files:
    Use OmniDiskSweeper find large folders and files to delete or offload.  If you are running 10.8 or 10.9 download it from http://www.omnigroup.com/more.  If you are running 10.6.8 or 10.7 down it from  https://www.macupdate.com/app/mac/7402/omnidisksweeper.  Do not touch any system files.  Do not offload files onto a Time Machine disk.   Do not offload your entire user folder. Do not rely on restoring files from Time Machine; delete only those files you never want to see again.   Do delete or offload seldom use folders/files in your user folder.  Remember to empty the trash after trashing the files.
     > System Preferences > Time Machine > Options… > Remove the offload HD name from the exclusions list.  Now both your system disk and your external offload disk will be backed up onto your Time Machine disk.
    From: "More ways to save space if you have a spare partition or second hard drive."
    http://www.thexlab.com/faqs/freeingspace.html
    - Compress and archive old files.
    - Clean up system logs and temporary files.
    - Uninstall Mac OS 9.
    - Move your iTunes Music folder to another disk or partition.
    - Move your iPhoto Library folder to another disk or partition.
    (Includes instructions on moving subsets of the libraries.)
    Additional references on freeing disk space:
    http://pondini.org/OSX/DiskSpace.html
    http://www.macmaps.com/diskfull.html

  • How to create rooms in paid applications

    I have upgraded my lccs account.I am creating rooms programmatically. Earlier rooms were creating in the default application but now when the free quota is over and I want to create rooms in my paid application. How can I create rooms in paid applications.
    Thanks.

    hi satish.......
    Navigate to Collaboration ->Rooms->Room Creation ->in the Room creation wizard enter the mandatory fields as shown in the fig below and click on Next button
    If you want to add members to the room enter the userID of the users in the input field and click on Add button
    Click on Next button to check your settings and then Click on Finish button
    After clicking on Finish button check for the message “Room ATestroom has been created” with a link  Enter Room  . Check whether able to enter the room by clicking on the link Enter Room
    hope this is goin to help u....
    and plz dont forget to award points.....
    Dinesh

  • Creating Room Instance from Web Dynpro Development Component

    Hi Experts,
    I would like to instantiate a Room Instance based on a pre-created Room Template from within a Web Dynpro Development Component. I had a look at the <i>Collaboration Rooms API Cookbook</i>, which provides all the code examples I need, but which asks that I import the following classes:
    import com.sap.ip.collaboration.room.api.IRooms;
    import com.sapportals.portal.prt.runtime.PortalRuntime;
    Problem is I don't have and can't find those libraries. I am developing in a track on the DTR and all solutions that I have found to the problems thus far require me to import a local jar file. Surely I should rather import a Software Component with the required library into my project? Does anyone know what the name of this Software Component is or what the correct way is to do this?
    Also, a somewhat related problem. If I want to create a Room Instance from an Application Service, how would I go about doing this. Unlike with a Web Dynpro project, I can't setup the build path or Used DCs, so how will I gain access to that library?
    Thank you,
    JP

    Beevin, thanks for the reply.
    I am aware that adding the jars manually to the build path is a possibility, but isn't this a local only solution? What I mean is, lets say I do this and check the code into the DTR - surely the code won't compile on my co-workers' machines as the paths to the jar files are different for them? Unless you mean to somehow add the jar file from the server, in which case could you please elaborate on how to do this?
    This still doesn't solve the application service problem, does it? How can I access those library from the CAF DC?
    Thanks

  • PHP - create room for specific application

    Hi!
    I am creating room using PHP library and can not figure how to specify application for this room.
    Now I have a default appliaction and MyFirstApp paid application, how i can specify "MyFirstApp" for new room?

    Hi,
    So, when you create a room, you specify the roomName and the template/application name from which you want to create the room. So, to create a room with MyFirstApp application template, you should do something like
    accountManager.createRoom("roomName","MyFirstApp") ; // this is for java, convert in php
    If you don't specify anything in the second parameter, it will be created from default template, which is empty of any collectionnodes/nodes. Please go through Room Provisioning section in our Developer Guide for more details.
    Hope this helps
    Thanks
    Hironmay Basu

  • No "create room" in collaboration

    Hello all,
    I have following problem:
    I have the link for launching the collaboration in my portal. If i access to the collaboration I get the new window. But there is no "create rooms" in collaboration menu. Why? Is sth. not configured?
    I thank you very much for suggestions.
    With kind regards
    Susanne Baumann

    Susanne,
    Actually room creation is only done by a content administrator.
    Normal users are given access to the rooms created by the room owner by
    adding them as members.Then they can use the room for collaboration,
    but room creation right is one which they do not have.
    Hope its clear now
    Regards
    Vineeth

  • Collaboration - Creating rooms and displaying to a specific group

    Hi,
    I am new to enterprise portals. Can anybody guide me in this context?
    I want to create some collaboration rooms which would be specific to groups. Eg. The Students should be able to see rooms specific to their subject. The professionals should be able to view the collaboration specific to subjects that they have selected in their profile. Administrator should be the only user who can create rooms and manage it.
    I see about the roles in the book but i am a bit confused.
    How do i do that?

    Ramachandran Reddy,
    Just goign through the forums found the question unanswered. i have done the process what you have asked for.
    1)      If you want to create Collaboration Rooms and assigning member's to the room created you should have a role assigned to you i.e. eu_role.
    2)      To assign those roles go to User Management and assign to your User or can ask the System Administrator to do it.
    3)      After assigning the role you will see New WorkSet assigned to you in the Portal i.e. Home.
    4)      In the top Navigational area go to Content Administration. Click it
    5)      Go to Collaboration Content. Click it.
    6)      On the left side Detailed Navigational area you will find Room Creation link. Click it.
    7)      That will open a New view on right side panel where you provide the details to create a Collaboration Room like
                 a) Name : Collaboration Room Name
                 b) Description : Give some description about the room you are creating
                 c) Owner: Generally as you are logged in, so the Owner will be you, but if you want to change the user you can also do it.
                d) Categories: Select any one of the categories.
                e) Template: There are Meeting templates, Project Template & Team template, depending upon the requirement you select the required template.
                    You can also create your own template
    Process to Create Room Template: On left side navigational area you will find a link "Room Template Administration". Click it.
                  I. You will see a New Template tab, click it
                  II.      A view is displayed where you need to give the details for the creation of Room template. In the Workset option box choose the option where you want to create the template. Click next.
                 III.      Add the role and give the required page permissions. Click next.
                 IV.      Incase you want to extent the then you can also extent the template. Here you can select the user's who can use the template you have created.
                 f) Choose the Room Type, it can be a Public, Private and Restricted and also in the add the members.
                 g)      When you click the Select button a new window is opened, just enter the user's name and add them to the room created. Click next.
    8)      A New Collaboration room is created and members are added to them.
    9)      Now if you want to send some messages or documents to the member's then go to the Top level Navigational and there you will find Home tab. Click it
    10)  Goto the Work in the navigation panel select the room you have created.
    11)  Choose the member from the memberlist , now depending upon the requirement send email or instant message to the user.
    if you feel the process is useful please reward points.
    regards
    Anil Dichpally

  • Bug : CRM V3 - Create Customer - Issue

    Hi,
    We are using http://docs.businesscatalyst.com/dev-assets/reference#!/api-endpoints/crm-v3/customers.htm l!create-cust
    Issue :
    - when we are using the "workPhone" and run the code the it will show error
    - When remove that and run the code customer is created
    See the attachments, that code and error response (the customer is not created). Please let us know what the issue is.

    Hi Manoj,
    The call fails because every CRM entry has to have a unique username. If you change the username from "test-3" to something else the first call will go through, the CRM record will be created and subsequest calls will fial until you change the username to something else.
    Thanks,
    Mihai

  • Need help creating Room in KM

    I'm stuck while creating a room in KM. Although I have a cateory assigned, I get a error stating 'No category assigned'. Any ideas please?
    Thanks in advance.
    Vince

    FCE is a fixed resolution video editing application. It will only work in DV or HDV. 10fps is not a frame rate used by either of those. The material needs to be in a standard frame resolution and frame rate. The standard for DV is 720x480 at 29.97fps. If you capture at 10fps you're going to have to save the material using the DV NSTC codec, set the frame size to 720x480 and the frame rate to 29.97. You may have pixel aspect ratio issues requiring capture at 720x540, but I don't know enough about SnapzPro to know how that product handles frame resolution and frame rate conversion.

  • Creating Job Issue

    Hi Experts,
    I have created a page in Apex where I m using File browse item say :p13_filebrowse(where i m using CSV format files) and other items too. On click of Submit button I m calling package which dynamically creates the table successfully of browsed CSV FIle.
    Now My requirement is to create the dbms_scheduler Job for the existing package(AS Above) so that If I upload the very huge file it should run in backend using the DBMS Job.If I call package directly from the APex . it is happening successfully. But If i create the Job for that package then I m getting error for not identify the Apex file browsed items.
    In Package I m using wwv_flow_files from where i m extracting the file and creating the table.Through Job it is unable to recognise the Apex file browse item.For more information please go through the follwing code:-
    I m calling package from Apex which is succesfully executing in creaitng the table:-
    htmldb_sid_50.parse_file(:P13_FILEBROWSE,'P13_COLLECTION' ,'P13_HEADINGS','P13_COLUMNS','P13_DDL');
    htmldb_sid_50.parse_file(:P13_FILEBROWSE,'P13_COLLECTION' ,'P13_HEADINGS','P13_COLUMNS','P13_DDL','gdqdata.gdq_table1');
    Foollwing code of Package:-
    create or replace PACKAGE BODY htmldb_sid_50
    AS
    TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
    -- Private functions --{{{
    PROCEDURE delete_collection ( --{{{
    -- Delete the collection if it exists
    p_collection_name IN VARCHAR2
    IS
    BEGIN
    IF (htmldb_collection.collection_exists(p_collection_name))
    THEN
    htmldb_collection.delete_collection(p_collection_name);
    END IF;
    END delete_collection; --}}}
    PROCEDURE csv_to_array ( --{{{
    -- Utility to take a CSV string, parse it into a PL/SQL table
    -- Note that it takes care of some elements optionally enclosed
    -- by double-quotes.
    p_csv_string IN VARCHAR2,
    p_array OUT wwv_flow_global.vc_arr2,
    p_num IN VARCHAR2 DEFAULT null,
    p_separator IN VARCHAR2 := ','
    IS
    l_start_separator PLS_INTEGER := 0;
    l_stop_separator PLS_INTEGER := 0;
    l_length PLS_INTEGER := 0;
    l_idx BINARY_INTEGER := 0;
    l_new_idx BINARY_INTEGER := 0;
    l_quote_enclosed BOOLEAN := FALSE;
    l_offset PLS_INTEGER := 1;
    p_csv_string_test varchar2(4000);
    cell_value varchar2(400);
    BEGIN
    l_length := NVL(LENGTH(p_csv_string),0);
    IF (l_length <= 0)
    THEN
    RETURN;
    END IF;
    LOOP
    l_idx := l_idx + 1;
    l_quote_enclosed := FALSE;
    -- p_csv_string
    p_csv_string_test := replace(p_csv_string,'""','@@');
    --p_csv_string := p_csv_string_test;
    IF SUBSTR(p_csv_string_test, l_start_separator + 1, 1) = '"'
    THEN
    l_quote_enclosed := TRUE;
    l_offset := 2;
    l_stop_separator := INSTR(p_csv_string_test, '"', l_start_separator + l_offset, 1);
    ELSE
    l_offset := 1;
    l_stop_separator := INSTR(p_csv_string_test, p_separator, l_start_separator + l_offset, 1);
    END IF;
    IF l_stop_separator = 0
    THEN
    l_stop_separator := l_length + 1;
    END IF;
    if l_idx = 1 then
    p_array(l_idx) := p_num;
    l_idx := l_idx + 1;
    end if;
    if(l_idx < 50) then
    cell_value := (SUBSTR(p_csv_string_test, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
    cell_value := replace(cell_value, '@@', '"');
    p_array(l_idx) := cell_value;
    end if;
    EXIT WHEN l_stop_separator >= l_length;
    IF l_quote_enclosed
    THEN
    l_stop_separator := l_stop_separator + 1;
    END IF;
    l_start_separator := l_stop_separator;
    END LOOP;
    END csv_to_array; --}}}
    PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
    IS
    l_record_separator VARCHAR2(2) := chr(13)||chr(10);
    l_last INTEGER;
    l_current INTEGER;
    BEGIN
    -- Sigh, stupid DOS/Unix newline stuff. If HTMLDB has generated the file,
    -- it will be a Unix text file. If user has manually created the file, it
    -- will have DOS newlines.
    -- If the file has a DOS newline (cr+lf), use that
    -- If the file does not have a DOS newline, use a Unix newline (lf)
    IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
    THEN
    l_record_separator := chr(10);
    END IF;
    l_last := 1;
    LOOP
    l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
    EXIT WHEN (nvl(l_current,0) = 0);
    p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
    l_last := l_current+length(l_record_separator);
    END LOOP;
    END get_records; --}}}
    -- Utility functions --{{{
    PROCEDURE parse_textarea ( --{{{
    p_textarea IN VARCHAR2,
    p_collection_name IN VARCHAR2
    IS
    l_index INTEGER;
    l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(10)||chr(13)||' ,','@@@@');
    l_element VARCHAR2(100);
    BEGIN
    l_string := l_string||'@';
    htmldb_collection.create_or_truncate_collection(p_collection_name);
    LOOP
    l_index := instr(l_string,'@');
    EXIT WHEN NVL(l_index,0)=0;
    l_element := substr(l_string,1,l_index-1);
    IF (trim(l_element) IS NOT NULL)
    THEN
    htmldb_collection.add_member(p_collection_name,l_element);
    END IF;
    l_string := substr(l_string,l_index+1);
    END LOOP;
    END parse_textarea; --}}}
    PROCEDURE parse_file( --{{{
    p_file_name IN VARCHAR2,
    p_collection_name IN VARCHAR2,
    p_headings_item IN VARCHAR2,
    p_columns_item IN VARCHAR2,
    p_ddl_item IN VARCHAR2,
    p_table_name IN VARCHAR2 DEFAULT NULL
    IS
    l_blob blob;
    l_records varchar2_t;
    l_record wwv_flow_global.vc_arr2;
    l_datatypes wwv_flow_global.vc_arr2;
    l_headings VARCHAR2(4000);
    l_columns VARCHAR2(4000);
    l_seq_id NUMBER;
    l_num_columns INTEGER;
    l_ddl VARCHAR2(4000);
    l_keyword varchar2(300);
    l_records_count number;
    l_count number;
    l_filename varchar2(400);
    BEGIN
    --delete from test_mylog;
    -- insert into t_log(slog) values('p_file_name '||p_file_name||'p_collection_name '||p_collection_name||'p_headings_item '||p_headings_item||'p_columns_item '||p_columns_item||'p_ddl_item '||p_ddl_item||'p_table_name '||p_table_name);
    -- commit;
    insert into testing_job values(p_file_name,p_collection_name,p_headings_item,p_columns_item,p_ddl_item,p_table_name);commit;
    IF (p_table_name is not null)
    THEN
    BEGIN
    execute immediate 'drop table '||p_table_name;
    EXCEPTION
    WHEN OTHERS THEN null;
    END;
    l_ddl := 'create table '||p_table_name||' '||v(p_ddl_item);
    htmldb_util.set_session_state('P13_DEBUG',l_ddl);
    execute immediate l_ddl;
    l_ddl := 'insert into '||p_table_name||' '||
    'select '||v(p_columns_item)||' '||
    'from htmldb_collections '||
    'where seq_id > 1 and collection_name='''||p_collection_name||'''';
    htmldb_util.set_session_state('P13_DEBUG',v('P13_DEBUG')||'/'||l_ddl);
    execute immediate l_ddl;
    RETURN;
    END IF;
    BEGIN
    /*select blob_content into l_blob from wwv_flow_files
    where name=p_file_name;*/
    select the_blob into l_blob from t_batch_attachments
    where blob_filename=p_file_name;
    -- insert into testing_job values (l_blob);commit;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    raise_application_error(-20000,'File not found, id='||p_file_name);
    END;
    get_records(l_blob,l_records);
    IF (l_records.count < 2)
    THEN
    raise_application_error(-20000,'File must have at least 2 ROWS, id='||p_file_name);
    END IF;
    -- Initialize collection
    htmldb_collection.create_or_truncate_collection(p_collection_name);
    -- Get column headings and datatypes
    csv_to_array(l_records(1),l_record,'sid');
         --l_records_count:=l_record.count+1;
    --csv_to_array(l_records(l_records_count),l_datatypes);
         l_num_columns := l_record.count;
         if (l_num_columns > 100) then
    raise_application_error(-20000,'Max. of 100 columns allowed, id='||p_file_name);
    end if;
    -- Get column headings and names
    FOR i IN 1..l_record.count
    LOOP
    l_record(i) := trim(l_record(i));
    l_record(i) := replace(l_record(i),' ','_');
    l_record(i) := replace(l_record(i),'-','_');
    l_record(i) := replace(l_record(i),'(','_');
    l_record(i) := replace(l_record(i),')','_');
    l_record(i) := replace(l_record(i),':','_');
    l_record(i) := replace(l_record(i),';','_');
    l_record(i) := replace(l_record(i),'.','_');
    l_record(i) := replace(l_record(i),'"','_');
    l_headings := l_headings||':'||l_record(i);
    l_columns := l_columns||',c'||lpad(i,3,'0');
    END LOOP;
    l_headings := ltrim(l_headings,':');
    l_columns := ltrim(l_columns,',');
    htmldb_util.set_session_state(p_headings_item,l_headings);
    htmldb_util.set_session_state(p_columns_item,l_columns);
         -- Get datatypes
    FOR i IN 1..l_record.count
    LOOP
    l_datatypes(i):='varchar2(400)';
    l_ddl := l_ddl||','||l_record(i)||' '||l_datatypes(i);
    END LOOP;
    l_ddl := '('||ltrim(l_ddl,',')||')';
    htmldb_util.set_session_state(p_ddl_item,l_ddl);
    -- Save data into specified collection
    FOR i IN 1..l_records.count
    LOOP
    csv_to_array(l_records(i),l_record,i-1);
    l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
    FOR i IN 1..l_record.count
    LOOP
    htmldb_collection.update_member_attribute(
    p_collection_name=> p_collection_name,
    p_seq => l_seq_id,
    p_attr_number => i,
    p_attr_value => l_record(i)
    END LOOP;
    END LOOP;
    -- DELETE FROM wwv_flow_files WHERE name=p_file_name;
    END;
    BEGIN
    NULL;
    END;
    Now I m stuck in If I call the Package through following Job:-
    DBMS_SCHEDULER.create_job (
    job_name => 'New_Testing1',
    job_type => 'PLSQL_BLOCK',
    job_action => 'begin
    GDQ.htmldb_sid_50.parse_file ('''||:P13_FILEBROWSE||''',''P13_COLLECTION'',''P13_HEADINGS'',''P13_COLUMNS'',''P13_DDL'');
    htmldb_sid_50.parse_file('''||:P13_FILEBROWSE||''',''P13_COLLECTION'' ,''P13_HEADINGS'',''P13_COLUMNS'',''P13_DDL'',''gdqdata.gdq_table1'');
    end;
    start_date => NULL,
    repeat_interval => NULL,
    end_date => NULL,
    enabled => TRUE,
    comments => 'UPLOAD FILE INTO TABLE IN GDQ.'
    I believe there is security issue in APex related to wwv_flow_files which is creating the problem . Please can anybody assist me in this issue.
    Thanks in Advance
    Danalaxmi

    Please post the details of the application release, along with the complete error message and the steps you followed to reproduce the issue.
    Thanks,
    Hussein

Maybe you are looking for

  • How do I save and display all messages in non primary email address

    I have 2 email accounts on Thunderbird. The emails to the secondary account are not saved. I can open and read new messages but if I want to view them later, they are gone. My primary email retains all messages. Can I configure Thunderbird so I can r

  • Aperture 3 and recovered projects

    I'm running Aperture 3 with Mountain Lion on an iMac. I had trouble opening Aperture 3 and went through the Repair Library Database and Repair Permissions routine a number of times. I finally removed Aperture 3 and re-installed it. After upgrading to

  • Egypt SAP implementation leagl requirment

    HI Any one implemented in Egypt let me know below: 1. Tax structures wtih respect SD 2. As per information direct delivery as third party not possible? 3. Any special requirment in TAX structure from SD side. Thank you in Advance.

  • HT201257 AHT does not start on OS 10.8.2 - I see only  a grey screen, if I stop pressing D computer will boot.

    How can I start AHT without an additional install disk - OS X 10.8 was upgraded using App Store so I do not have an install disk on it, When I keep the D key presses after pressing the power button, I do see only the plain gray screen. Few seconds af

  • Web-TV : Connection number on FMS 4 ?

    Hello everybody, i'm here because i'm discovering FMS right now and i'm starting to ask myself question ^^. I'm thinking about create a Web-TV : I want to stream video with a playlist playing server/side, and sometimes live video with a camera. i wil