Illustrator installation with error.

I'm trying to do the installation of the illustrator but giving this error 82829s5 already checked the procedures that are reported, but still could not install the program.      

@EvandroSteyer, This is a bootstrapper error and could be caused due to any of the following reasons:
A restart is pending (Windows)
Insufficient hard disk space
OS does not meet the minimum system requirements
Installer failed to initialize
You are already running another installer
Installation to case-sensitive file system (Mac OS)
A Windows Update installation is in progress
Please check the solutions mentioned in this document: http://helpx.adobe.com/creative-suite/kb/troubleshoot-error-messages-bootstrapper-cs5.html and post the outcome after you've completed following the solutions mentioned in the document.

Similar Messages

  • Classic Freezing & OSX Illustrator crash with error 37

    Recently forced into using Tiger as the newest G5's will no longer run 10.3.9.
    We use 2 classic applications, but these are freezing the whole machine at random intervals - causing the power button to be held to restart the machine (Tiger completely unresponsive)
    Illustrator 10.0.3 (OSX) also crashes, with error code -37 whenever classic is running (this is also at random intervals, but does not freeze the machine completely). It works fine when classic is not running.
    Anyone know what is going on or have any suggestions to attempt to correct this? Any help appreciated.
    Cheers,
    Mark

    Henrik,
    Did you reinstall after updating to Yosemite? That is normally recommended.
    Apart from that, many have serious difficulties running CS4 with Yosemite at all.
    Has the combination been running successfully, before the issue?
    If so, you may have a look at the list; the most likely relevant parts of 5) are items 1) and 11).
    The following is a general list of things you may try when the issue is not in a specific file, and when it is not caused by issues with opening a file from external media. You may have tried/done some of them already; 1) and 2) are the easy ones for temporary strangenesses, and 3) and 4) are specifically aimed at possibly corrupt preferences); 5) is a list in itself, and 6) is the last resort.
    If possible/applicable, you should save current artwork first, of course.
    1) Close down Illy and open again;
    2) Restart the computer (you may do that up to at least 5 times);
    3) Close down Illy and press Ctrl+Alt+Shift/Cmd+Option+Shift during startup (easy but irreversible);
    4) Move the folder (follow the link with that name) with Illy closed (more tedious but also more thorough and reversible), for CS3 - CC you may find the folder here:
    https://helpx.adobe.com/illustrator/kb/preference-file-location-illustrator.html
    5) Look through and try out the relevant among the Other options (follow the link with that name, Item 7) is a list of usual suspects among other applications that may disturb and confuse Illy, Item 15) applies to CC, CS6, and maybe CS5);
    Even more seriously, you may:
    6) Uninstall (ticking the box to delete the preferences), run the Cleaner Tool (if you have CS3/CS4/CS5/CS6/CC), and reinstall.
    http://www.adobe.com/support/contact/cscleanertool.html

  • VMM 2012 SP1 Console Fail Installation With Error 1603

    Dear Sir,
    I am trying to install VMM 2012 SP1 console on my management Windows 8 Enterprise machine, but it's failing:
    [Installing C:\Users\XXXXX\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\AdminConsole.msi failed with Windows Installer error 1603.
    See C:\ProgramData\VMMLogs\AdminConsole.log for more information. After resolving the problem, retry setup.]
    I am admin with full permission, and the machine is joined to the domain.
    Please find below VMMlogs for more information:
    Property(S): CountComponentClients = DAFEE2F2-CF16-47f5-94A7-725D0795BCB9
    Property(S): RegisterCmdlets = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installUtil.exe" /LogFile= /LogToConsole=false "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Microsoft.SystemCenter.VirtualMachineManager.dll"
    Property(S): RollbackCmdlets = "C:\Windows\Microsoft.NET\Framework64\v4.0.30319\installUtil.exe" /u /LogFile= /LogToConsole=false "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Microsoft.SystemCenter.VirtualMachineManager.dll"
    Property(S): TRANSLATE_SID = S-1-5-11
    Property(S): TRANSLATE_SID_PROPERTYNAME = AUTHENTICATEDUSERS
    Property(S): AUTHENTICATEDUSERS = Authenticated Users
    Property(S): DeleteAddInsOldFolder = "C:\Windows\SysWOW64\cmd.exe" /C rmdir "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\AddInPipeline\AddIns.old" /S /Q
    Property(S): RenameAddInsFolder = "C:\Windows\SysWOW64\cmd.exe" /Q /C ren "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\AddInPipeline\AddIns" "AddIns.old"
    Property(S): ProgramFiles64Folder = C:\Program Files\
    Property(S): TARGETDIR = F:\
    Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\
    Property(S): SourceDir = C:\Users\supercharo\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\
    Property(S): HelpDir = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\help\
    Property(S): psModulesDir = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\psModules\
    Property(S): INDIGOPORT = 8100
    Property(S): Manufacturer = Microsoft Corporation
    Property(S): ProductCode = {CDFB453F-5FA4-4884-B282-F46BDFC06051}
    Property(S): ProductLanguage = 1033
    Property(S): ProductName = Microsoft System Center Virtual Machine Manager Administrator Console (x64)
    Property(S): ProductVersion = 3.1.6011.0
    Property(S): INSTALLLEVEL = 100
    Property(S): ARPSYSTEMCOMPONENT = 1
    Property(S): ALLUSERS = 1
    Property(S): BOOTSTRAPPED = 0
    Property(S): REREGBINDIR = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\wwwroot\bin\
    Property(S): SecureCustomProperties = ANYVERSION
    Property(S): Trace.3812768D_658A_4BB6_9A68_F288BE3E9CF5 = C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\
    Property(S): RegisterEventManifest = "wevtutil.exe" im "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man"
    Property(S): RollbackRegisterEventManifest = "wevtutil.exe" um "C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man"
    Property(S): ExecXmlFile = 2€0€C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man€7€1€/*/*/*/*[@messageFileName]€messageFileName€C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\Microsoft.VirtualManager.EtwResources.dll€2€0€C:\Program
    Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\VmmEtwEvents.Man€7€1€/*/*/*/*[@resourceFileName]€resourceFileName€C:\Program Files\Microsoft System Center 2012\Virtual Machine Manager\bin\Trace\Microsoft.VirtualManager.EtwResources.dll
    Property(S): MsiLogFileLocation = C:\ProgramData\VMMLogs\AdminConsole.log
    Property(S): PackageCode = {A96E8FEC-A027-4FF8-A395-1ECC0C460677}
    Property(S): ProductState = -1
    Property(S): PackagecodeChanging = 1
    Property(S): INSTALLINGLANGUAGE = 1033
    Property(S): REBOOT = ReallySuppress
    Property(S): CURRENTDIRECTORY = C:\Users\supercharo\AppData\Local\Temp\VMB790.tmp\Setup
    Property(S): CLIENTUILEVEL = 3
    Property(S): MSICLIENTUSESEXTERNALUI = 1
    Property(S): CLIENTPROCESSID = 968
    Property(S): VersionDatabase = 301
    Property(S): VersionMsi = 5.00
    Property(S): VersionNT = 602
    Property(S): VersionNT64 = 602
    Property(S): WindowsBuild = 9200
    Property(S): ServicePackLevel = 0
    Property(S): ServicePackLevelMinor = 0
    Property(S): MsiNTProductType = 1
    Property(S): WindowsFolder = C:\Windows\
    Property(S): WindowsVolume = C:\
    Property(S): System64Folder = C:\Windows\system32\
    Property(S): SystemFolder = C:\Windows\SysWOW64\
    Property(S): RemoteAdminTS = 1
    Property(S): TempFolder = C:\Users\SUPERC~1\AppData\Local\Temp\
    Property(S): ProgramFilesFolder = C:\Program Files (x86)\
    Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files\
    Property(S): CommonFiles64Folder = C:\Program Files\Common Files\
    Property(S): AppDataFolder = C:\Users\supercharo\AppData\Roaming\
    Property(S): FavoritesFolder = C:\Users\supercharo\Favorites\
    Property(S): NetHoodFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\Network Shortcuts\
    Property(S): PersonalFolder = C:\Users\supercharo\Documents\
    Property(S): PrintHoodFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\Printer Shortcuts\
    Property(S): RecentFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\Recent\
    Property(S): SendToFolder = C:\Users\supercharo\AppData\Roaming\Microsoft\Windows\SendTo\
    Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates\
    Property(S): CommonAppDataFolder = C:\ProgramData\
    Property(S): LocalAppDataFolder = C:\Users\supercharo\AppData\Local\
    Property(S): MyPicturesFolder = C:\Users\supercharo\Pictures\
    Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools\
    Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup\
    Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\
    Property(S): DesktopFolder = C:\Users\Public\Desktop\
    Property(S): FontsFolder = C:\Windows\Fonts\
    Property(S): GPTSupport = 1
    Property(S): OLEAdvtSupport = 1
    Property(S): ShellAdvtSupport = 1
    Property(S): MsiAMD64 = 6
    Property(S): Msix64 = 6
    Property(S): Intel = 6
    Property(S): PhysicalMemory = 32695
    Property(S): VirtualMemory = 58675
    Property(S): AdminUser = 1
    Property(S): MsiTrueAdminUser = 1
    Property(S): LogonUser = supercharo
    Property(S): UserSID = S-1-5-21-3202008507-3906799607-3053210984-500
    Property(S): UserLanguageID = 1033
    Property(S): ComputerName = CHARO-Z1
    Property(S): SystemLanguageID = 1033
    Property(S): ScreenX = 1024
    Property(S): ScreenY = 768
    Property(S): CaptionHeight = 23
    Property(S): BorderTop = 1
    Property(S): BorderSide = 1
    Property(S): TextHeight = 16
    Property(S): TextInternalLeading = 3
    Property(S): ColorBits = 32
    Property(S): TTCSupport = 1
    Property(S): Time = 23:20:44
    Property(S): Date = 2/17/2013
    Property(S): MsiNetAssemblySupport = 4.0.30319.17929
    Property(S): MsiWin32AssemblySupport = 6.2.9200.16384
    Property(S): RedirectedDllSupport = 2
    Property(S): MsiRunningElevated = 1
    Property(S): Privileged = 1
    Property(S): USERNAME = CHARO
    Property(S): DATABASE = C:\Windows\Installer\113cc0a.msi
    Property(S): OriginalDatabase = C:\Users\supercharo\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\AdminConsole.msi
    Property(S): UILevel = 2
    Property(S): ACTION = INSTALL
    Property(S): ComponentCount = 0
    Property(S): ROOTDRIVE = F:\
    Property(S): CostingComplete = 1
    Property(S): OutOfDiskSpace = 0
    Property(S): OutOfNoRbDiskSpace = 0
    Property(S): PrimaryVolumeSpaceAvailable = 0
    Property(S): PrimaryVolumeSpaceRequired = 0
    Property(S): PrimaryVolumeSpaceRemaining = 0
    Property(S): SOURCEDIR = C:\Users\supercharo\Desktop\VMM 2012 SP1\amd64\setup\msi\Client\
    Property(S): SourcedirProduct = {CDFB453F-5FA4-4884-B282-F46BDFC06051}
    Property(S): ProductToBeRegistered = 1
    MSI (s) (DC:2C) [23:20:44:051]: Note: 1: 1708 
    MSI (s) (DC:2C) [23:20:44:051]: Product: Microsoft System Center Virtual Machine Manager Administrator Console (x64) -- Installation failed.
    MSI (s) (DC:2C) [23:20:44:052]: Windows Installer installed the product. Product Name: Microsoft System Center Virtual Machine Manager Administrator Console (x64). Product Version: 3.1.6011.0. Product Language: 1033. Manufacturer: Microsoft Corporation. Installation
    success or error status: 1603.
    MSI (s) (DC:2C) [23:20:44:067]: Deferring clean up of packages/files, if any exist
    MSI (s) (DC:2C) [23:20:44:068]: MainEngineThread is returning 1603
    MSI (s) (DC:A4) [23:20:44:072]: RESTART MANAGER: Session closed.
    MSI (s) (DC:A4) [23:20:44:072]: No System Restore sequence number for this installation.
    === Logging stopped: 02/17/2013  23:20:44 ===
    MSI (s) (DC:A4) [23:20:44:076]: User policy value 'DisableRollback' is 0
    MSI (s) (DC:A4) [23:20:44:076]: Machine policy value 'DisableRollback' is 0
    MSI (s) (DC:A4) [23:20:44:076]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (DC:A4) [23:20:44:076]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (DC:A4) [23:20:44:077]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 
    MSI (s) (DC:A4) [23:20:44:078]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (s) (DC:A4) [23:20:44:084]: Destroying RemoteAPI object.
    MSI (s) (DC:A4) [23:20:44:084]: Custom Action Manager thread ending.
    MSI (c) (C8:18) [23:20:44:086]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (C8:18) [23:20:44:086]: MainEngineThread is returning 1603
    === Verbose logging stopped: 02/17/2013  23:20:44 ===
    Your help is highly appreciated.
    Thank you.
    Regards,

    Mine is solved.
    Was because I removed VMM 2012 R2 on the same host (again, because R2 doesn't do P2V conversions) but the uninstall failed to remove "Microsoft Web Deploy 3.5". When VMM 2012 SP1 installs uses Web Deploy 3.0 and was blocked by the newer version. uninstalled
    3.5 and then the console install worked.
    hopes this helps someone out there.
    Jae

  • Packaged App Document Library 0.91 installs with errors in Apex 3.0

    Hello All,
    I get these errors when I try to install Document Library packaged application in Apex 3.0
    Script name          success          errors          total
    tab.sql               137          1          137
    doclib.pkb          0          1          1
    sync_index.sql          1          1          2
    When I try to run the app, I am prompted for user name and password. I enter the user name I’ve selected during the install process as parsing schema, and I get this error:
    ORA-04063: package body "DOADMIN.DOCLIB" has errors ORA-06508: PL/SQL: could not find program unit being called: "DOADMIN.DOCLIB"
    ERR-1082 Error in executing authorization scheme code.
    How can I find the object that caused errors during install? Is there any installation log?
    Thank you,
    Daniel

    I’ve attempted to install the document library app into completely new workspace, with new parsing user. I still get the same errors:
    Errors     
    tab.sql
    create index doclib_docs_idx2 on doclib_documents(contents) indextype is ctxsys.context
    ORA-29833: indextype does not exist
    doclib.pkb
    create or replace package body doclib as
    g_html_email_header constant varchar2(4000) := '<html lang="en-us" xmlns:htmldb="http://htmldb.oracle.com">
    <head>
    <style type="text/css">
    *{font-size:12px;font-family:Arial, Helvetica, Geneva, sans-serif;}
    body{background-color:#fff;margin:0;padding:0;font-family:Arial, Helvetica, Geneva, sans-serif;font-size:12px;}
    body *{font-size:12px;}
    img{border:0;margin:0;}
    hr{color:#bbb;height:1px;}
    br{clear:both;}
    p{font-size:12px;}
    a:link,a:visited{text-decoration:none;font-size:-1;color:#7f7f7f;}
    a:active,a:hover{text-decoration:underline;font-size:-1;color:#ff6600;}
    </style>
    <title></title>
    <body>';
    g_html_email_footer constant varchar2(30) := '</body></html>';
    function get_member_id (
    p_user_name in varchar2
    ) return number
    is
    l_user_id number;
    begin
    for c1 in (select user_id
    from doclib_members
    where upper(p_user_name) = user_name ) loop
    l_user_id := c1.user_id;
    end loop;
    return l_user_id;
    end get_member_id;
    function get_member_email (
    p_user_name in varchar2
    ) return varchar2
    is
    l_email varchar2(255);
    begin
    for c1 in (select email_address
    from doclib_members
    where upper(p_user_name) = user_name ) loop
    l_email := c1.email_address;
    end loop;
    return l_email;
    end get_member_email;
    function get_acl_id (
    p_user_name in varchar2
    ) return number
    is
    l_acl_id number := 0;
    begin
    for c1 in (select role_id
    from doclib_members
    where upper(p_user_name) = user_name ) loop
    l_acl_id := c1.role_id;
    end loop;
    return l_acl_id;
    return 3;
    end get_acl_id;
    function get_local_name (
    p_filename in varchar2
    ) return varchar2
    is
    begin
    return substr(p_filename,instr(p_filename,'/')+1);
    end get_local_name;
    function doc_is_checkedout_by (
    p_doc_id in varchar2
    ) return varchar2
    is
    begin
    for c1 in (select checkedout_by
    from doclib_documents
    where doc_id = p_doc_id ) loop
    return c1.checkedout_by;
    end loop;
    return null;
    end doc_is_checkedout_by;
    function get_doc_name (
    p_doc_id in varchar2
    ) return varchar2
    is
    begin
    for c1 in (select name
    from doclib_documents
    where doc_id = p_doc_id ) loop
    return c1.name;
    end loop;
    return null;
    end get_doc_name;
    function doc_already_exists (
    p_name in varchar2
    ) return boolean
    is
    begin
    for c1 in (select null
    from doclib_documents
    where name = p_name ) loop
    return true;
    end loop;
    return false;
    end doc_already_exists;
    function alert_todo_already_exists (
    p_user_id in number
    ) return boolean
    is
    l_found boolean := false;
    begin
    for c1 in (select null
    from doclib_alerts a, doclib_alerts_todo b
    where a.alert_id = b.alert_id
    and a.doctask_id = 0
    and a.user_id = p_user_id ) loop
    l_found := true;
    exit;
    end loop;
    return l_found;
    end alert_todo_already_exists;
    function parse_search_string(
    p_search_str in varchar2 ) return varchar2
    is
    l_temp_value varchar2(1000);
    l_temp_value2 varchar2(1000);
    l_return_value varchar2(1000) := NULL;
    l_start_token number := 1;
    l_in_token boolean := FALSE;
    l_quotes number;
    l_phrases dbms_sql.varchar2s;
    n number;
    begin
    if nvl(length(p_search_str),0) = 0 then
    return NULL;
    end if;
    l_quotes := length(p_search_str) - length(replace(p_search_str,'"', ''));
    if ( l_quotes > 0 and mod(l_quotes,2) = 0 ) then
    l_temp_value2 := lower(p_search_str);
    for i in 1 .. l_quotes/2 loop
    n := instr( l_temp_value2, '"' );
    l_temp_value := l_temp_value || substr( l_temp_value2, 1, n-1 );
    l_temp_value2 := substr( l_temp_value2, n+1 );
    n := instr( l_temp_value2, '"' );
    l_phrases(i) := substr( l_temp_value2, 1, n-1 );
    l_temp_value2 := substr( l_temp_value2, n+1 );
    end loop;
    l_temp_value := l_temp_value || l_temp_value2;
    else
    l_temp_value := lower(p_search_str);
    end if;
    l_temp_value := trim(replace( l_temp_value, ':', ' '));
    l_temp_value := trim(replace( l_temp_value, ';', ' '));
    l_temp_value := trim(replace( l_temp_value, '"', ' '));
    l_temp_value := trim(replace( l_temp_value, ':'',', ' '));
    l_temp_value := trim(replace( l_temp_value, '(', ' '));
    l_temp_value := trim(replace( l_temp_value, ')', ' '));
    l_temp_value := trim(replace( l_temp_value, '!', ' '));
    l_temp_value := trim(replace( l_temp_value, '&', ' '));
    l_temp_value := trim(replace( l_temp_value, '+', ' '));
    l_temp_value := trim(replace( l_temp_value, '-', ' '));
    l_temp_value := trim(replace( l_temp_value, ',', ' '));
    l_temp_value := trim(replace( l_temp_value, '\', ' '));
    l_temp_value := trim(replace( l_temp_value, ' and ', ' ' ));
    l_temp_value := trim(replace( l_temp_value, ' or ', ' ' ));
    if length(l_temp_value) > 0 then
    l_in_token := TRUE;
    end if;
    for i in 1..nvl(length(l_temp_value),0) loop
    if substr(l_temp_value,i,1) = ' ' then
    if l_in_token = TRUE then
    l_return_value := l_return_value || '{' || substr(l_temp_value,l_start_token, i-l_start_token) || '}' || ' and ';
    l_in_token := FALSE;
    end if;
    elsif l_in_token = FALSE then
    l_in_token := TRUE;
    l_start_token := i;
    end if;
    end loop;
    if l_in_token = TRUE then
    l_return_value := l_return_value || '{' || substr(l_temp_value,l_start_token) || '} and ';
    end if;
    for i in 1 .. nvl(l_phrases.count,0) loop
    l_return_value := l_return_value || ' {' || l_phrases(i) || '} and ';
    end loop;
    return trim( substr( l_return_value, 1, length(l_return_value)-4 ) );
    end parse_search_string;
    function doc_has_revisions (
    p_doc_id in varchar2
    ) return number
    is
    l_revisions number := 0;
    begin
    for c1 in (select count(*) cnt
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = p_doc_id ) loop
    l_revisions := c1.cnt;
    end loop;
    return l_revisions;
    end doc_has_revisions;
    function get_checkout_list (
    p_user_name in varchar2
    ) return varchar2
    is
    l_chkout_lst varchar2(32000);
    begin
    for c1 in (select '<li>'||name||'</li>' name
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = 0
    and checkedout_by = p_user_name ) loop
    l_chkout_lst := l_chkout_lst || c1.name;
    end loop;
    if l_chkout_lst is null then
    l_chkout_lst := 'None.';
    else
    l_chkout_lst := '<ul>'||l_chkout_lst||'</ul>';
    end if;
    return l_chkout_lst;
    end get_checkout_list;
    procedure return_xml (
    p_doc_id in number,
    p_action in varchar2,
    p_message in varchar2,
    p_chkout_lst in varchar2,
    p_result in varchar2,
    p_user_name in varchar2
    is
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.p('<div class="return" id="'||p_doc_id||'" action="'||p_action||'" result="'||p_result||'">');
    htp.p('<div class="message" id="primary">'||p_message||'</div>');
    htp.p('<div class="message" id="chkoutlst">'||p_chkout_lst||'</div>');
    htp.p('<div id="checkoutby">'||p_user_name||'</div>');
    htp.p('<div id="modifiedby">'||p_user_name||'</div>');
    htp.p('</div>');
    end;
    procedure add_document (
    p_doc_id in varchar2 default null,
    p_name in varchar2 default null,
    p_filename in varchar2,
    p_user_name in varchar2,
    p_description in varchar2,
    p_attr1 in varchar2,
    p_attr2 in varchar2,
    p_attr3 in varchar2
    is
    l_content blob;
    l_mime_type varchar2(48);
    l_name varchar2(255);
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add documents.');
    end if;
    if p_name is null then
    l_name := get_local_name(p_filename);
    for c1 in (select doc_id, name
    from doclib_documents
    where revision_of = 0
    and name = l_name ) loop
    --document already exists, so update it
    update_document(c1.doc_id, c1.name, p_filename, p_user_name, p_description, p_attr1, p_attr2, p_attr3);
    goto end_add;
    end loop;
    else
    l_name := p_name;
    end if;
    for c1 in (select mime_type, blob_content
    from apex_application_files
    where name = p_filename ) loop
    l_content := c1.blob_content;
    l_mime_type := c1.mime_type;
    end loop;
    insert
    into doclib_documents (doc_id, name, description, mime_type, contents, attr1, attr2, attr3)
    values (p_doc_id, l_name, p_description, l_mime_type, l_content, p_attr1, p_attr2, p_attr3);
    delete
    from apex_application_files
    where name = p_filename;
    if p_name is null then
    do_alerts('D',0,null);
    end if;
    commit;
    <<end_add>>
    null;
    exception when others then
    raise_application_error(-20001, 'Exception encountered adding document: '||sqlerrm);
    end add_document;
    procedure add_member (
    p_user_name in varchar2,
    p_member in varchar2,
    p_email in varchar2,
    p_acl_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to add members.');
    end if;
    insert
    into doclib_members (user_name, email_address, role_id)
    values (p_member, p_email, p_acl_id);
    commit;
    exception when dup_val_on_index then
    raise_application_error(-20001,'The user is already a member of this workspace.');
    when others then
    raise_application_error(-20001,'Exception encountered adding member: '||sqlerrm);
    end add_member;
    procedure add_task (
    p_user_name in varchar2,
    p_assigned_to in varchar2,
    p_name in varchar2,
    p_description in varchar2,
    p_start_date in varchar2,
    p_end_date in varchar2,
    p_priority in varchar2,
    p_status in varchar2,
    p_pct_complete in varchar2,
    p_doc_id in varchar2
    is
    l_start_date date;
    l_due_date date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add tasks.');
    end if;
    l_start_date := to_date(p_start_date,'DD-MM-YYYY HH24:MI');
    l_due_date := to_date(p_end_date, 'DD-MM-YYYY HH24:MI');
    insert
    into doclib_tasks (assigned_to, name, description, start_date, due_date, priority_id, status_id, pct_complete, doc_id)
    values (p_assigned_to, p_name, p_description, l_start_date, l_due_date, p_priority, p_status, p_pct_complete, p_doc_id);
    do_alerts('T',0,null);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered adding task: '||sqlerrm);
    end add_task;
    procedure add_link (
    p_user_name in varchar2,
    p_name in varchar2,
    p_url in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add links.');
    end if;
    insert
    into doclib_links (name, url)
    values (p_name, p_url);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered adding link: '||sqlerrm);
    end add_link;
    procedure add_announcement (
    p_user_name in varchar2,
    p_title in varchar2,
    p_description in varchar2,
    p_expire_date in varchar2
    is
    l_expire_date date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to add announcements.');
    end if;
    l_expire_date := to_date(p_expire_date,'DD-MM-YYYY HH24:MI');
    insert
    into doclib_announcements (title, description, expire_date)
    values (p_title, p_description, l_expire_date);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered adding announcement: '||sqlerrm);
    end add_announcement;
    procedure add_alert (
    p_user_name in varchar2,
    p_alert_type in varchar2,
    p_alert_interval in varchar2,
    p_doctask_id in varchar2
    is
    l_user_id number;
    begin
    l_user_id := get_member_id(p_user_name);
    insert
    into doclib_alerts (user_id, alert_type, alert_interval, doctask_id)
    values (l_user_id, p_alert_type, p_alert_interval, p_doctask_id);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception adding alert: '||sqlerrm);
    end add_alert;
    procedure delete_alert (
    p_alert_id in varchar2
    is
    begin
    delete
    from doclib_alerts
    where alert_id = p_alert_id;
    commit;
    end delete_alert;
    procedure do_alerts (
    p_alert_type in varchar2,
    p_doctask_id in number,
    p_newdoc_id in number default null
    is
    l_subject varchar2(2000);
    l_url varchar2(4000);
    l_body clob;
    l_body_html clob;
    begin
    l_body := ' ';
    if p_alert_type = 'D' then
    --Do document alerts on specific document
    if p_doctask_id != 0 then
    for c1 in (select c.email_address, c.user_id, b.name, a.alert_interval, a.alert_id
    from doclib_alerts a, doclib_documents b, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = b.doc_id
    and a.user_id = c.user_id
    and a.doctask_id = p_doctask_id ) loop
    l_subject := 'Document '||c1.name||' has been updated.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':2:::::P2_DOC_ID:'||p_newdoc_id;
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    update doclib_alerts
    set doctask_id = p_newdoc_id
    where alert_type = 'D'
    and doctask_id = p_doctask_id;
    end if;
    --Do document alerts on generic documents
    for c1 in (select c.email_address, c.user_id, a.alert_id, a.alert_interval
    from doclib_alerts a, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = 0
    and a.user_id = c.user_id ) loop
    l_subject := 'A document has been added or updated in the document workspace.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':1';
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    else
    if p_doctask_id != 0 then
    --Do task alerts on specific tasks
    for c1 in (select c.email_address, c.user_id, b.name, a.alert_interval, a.alert_id
    from doclib_alerts a, doclib_tasks b, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = b.task_id
    and a.user_id = c.user_id
    and a.doctask_id = p_doctask_id ) loop
    l_subject := 'Task '||c1.name||' has been updated.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':75:::::P75_TASK_ID:'||p_doctask_id;
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    end if;
    --Do task alerts on generic tasks
    for c1 in (select c.email_address, c.user_id, a.alert_id, a.alert_interval
    from doclib_alerts a, doclib_members c
    where a.alert_type = p_alert_type
    and a.doctask_id = 0
    and a.user_id = c.user_id ) loop
    l_subject := 'A task has been added or updated in the document workspace.';
    l_url := v('BASE_URL')||'/f?p='||v('APP_ID')||':1';
    l_body_html := g_html_email_header||'<p />'||l_subject||'<p />Click to view.'||
    g_html_email_footer;
    if c1.alert_interval = 'I' then
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    else --it is a daily alert, insert into todos
    if not alert_todo_already_exists(c1.user_id) then --make sure non-specific daily alert isn't already recorded
    insert
    into doclib_alerts_todo (alert_id, alert_url)
    values (c1.alert_id, l_url);
    end if;
    end if;
    end loop;
    end if;
    end do_alerts;
    procedure do_alert_todos
    is
    l_subject varchar2(2000);
    l_body clob;
    l_body_html clob;
    begin
    wwv_flow_api.set_security_group_id;
    l_body := ' ';
    l_subject := 'Documents or tasks have been updated.';
    for c1 in (select distinct(c.email_address), b.user_id
    from doclib_members c, doclib_alerts b, doclib_alerts_todo a
    where a.alert_id = b.alert_id
    and b.user_id = c.user_id ) loop
    l_body_html := g_html_email_header||'<p />The following documents or tasks have been added or updated.';
    for c2 in (select b.alert_url
    from doclib_alerts a, doclib_alerts_todo b
    where a.alert_id = b.alert_id
    and a.user_id = c1.user_id ) loop
    l_body_html := l_body_html || '<p />'||c2.alert_url||'';
    end loop;
    l_body_html := l_body_html ||g_html_email_footer;
    apex_mail.send(
    p_to => c1.email_address,
    p_from => c1.email_address,
    p_body => l_body,
    p_body_html => l_body_html,
    p_subj => l_subject );
    end loop;
    delete from doclib_alerts_todo;
    commit;
    end do_alert_todos;
    procedure update_document (
    p_doc_id in varchar2,
    p_name in varchar2,
    p_filename in varchar2,
    p_user_name in varchar2,
    p_description in varchar2,
    p_attr1 in varchar2,
    p_attr2 in varchar2,
    p_attr3 in varchar2
    is
    l_doc_id number;
    l_checked_out_by varchar2(255);
    l_mime_type varchar2(48);
    l_cnt number;
    l_num_over number;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update documents.');
    end if;
    l_checked_out_by := doc_is_checkedout_by(p_doc_id);
    --this can be optimistic locking mechanism
    if l_checked_out_by is not null and upper(l_checked_out_by) != upper(p_user_name) then
    raise_application_error(-20001,'This document is locked by '||l_checked_out_by);
    end if;
    for c1 in (select mime_type
    from apex_application_files
    where name = p_filename ) loop
    l_mime_type := c1.mime_type;
    end loop;
    for c1 in (select mime_type
    from doclib_documents
    where doc_id = p_doc_id ) loop
    if l_mime_type != c1.mime_type then
    delete
    from apex_application_files
    where name = p_filename;
    raise_application_error(-20001,'The document type to be checked in does not match the document type of the original document.');
    end if;
    end loop;
    if l_checked_out_by is not null then
    checkin(p_doc_id, p_user_name);
    end if;
    l_doc_id := doclib_nextval;
    add_document(l_doc_id, p_name, p_filename, p_user_name, p_description, p_attr1, p_attr2, p_attr3);
    update doclib_documents
    set revision_of = l_doc_id
    where doc_id = p_doc_id;
    l_cnt := 1;
    for c1 in (select count(*) cnt
    from doclib_documents
    where revision_of != 0
    and deleted_as_of = to_date('22-04-2004','DD-MM-YYYY') -- don't count logically deleted docs
    and name = p_name ) loop
    l_cnt := l_cnt + c1.cnt;
    end loop;
    --check whether we have hit max revisions as defined in workspace setting
    if v('DOC_WORKSPACE_VERSIONS') != '0' and l_cnt > to_number(v('DOC_WORKSPACE_VERSIONS')) then
    l_num_over := l_cnt - to_number(v('DOC_WORKSPACE_VERSIONS'));
    for c2 in (select doc_id
    from (select doc_id
    from doclib_documents
    where name = p_name
    order by version_no)
    where rownum <= l_num_over ) loop
    delete
    from doclib_documents
    where doc_id = c2.doc_id;
    end loop;
    end if;
    update doclib_documents
    set revision_of = l_doc_id
    where (revision_of != 0 or deleted_as_of != to_date('22-04-2004','DD-MM-YYYY'))
    and name = p_name;
    --preserve lock
    if l_checked_out_by is not null then
    update doclib_documents
    set checkedout_by = l_checked_out_by
    where doc_id = l_doc_id;
    end if;
    --do alerts
    do_alerts('D',p_doc_id, l_doc_id);
    --update tasks
    update doclib_tasks
    set doc_id = l_doc_id
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating document: '||sqlerrm);
    end update_document;
    procedure update_doc_attributes (
    p_doc_id in varchar2,
    p_user_name in varchar2,
    p_description in varchar2,
    p_attr1 in varchar2,
    p_attr2 in varchar2,
    p_attr3 in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update document attributes.');
    end if;
    update doclib_documents
    set description = p_description,
    attr1 = p_attr1,
    attr2 = p_attr2,
    attr3 = p_attr3
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating document attributes: '||sqlerrm);
    end update_doc_attributes;
    procedure checkout (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    l_chkout_lst varchar2(32000);
    begin
    if get_acl_id(p_user_name) < 2 then
    --raise_application_error(-20001,'You are not authorized to checkout documents.');
    return_xml(p_doc_id,'CHECKOUT','You are not authorized to lock documents.',null,'FAILED',p_user_name);
    return;
    end if;
    --This can be the optimistic locking scheme
    if doc_is_checkedout_by(p_doc_id) is not null then
    --raise_application_error(-20001,'This document is already checked out.');
    return_xml(p_doc_id,'CHECKOUT','This document is already locked.',null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set checkedout_by = p_user_name
    where doc_id = p_doc_id;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'CHECKOUT','Document successfully locked.',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Expection encountered checking out document: '||sqlerrm);
    return_xml(p_doc_id,'CHECKOUT','Expection encountered checking out document: '||sqlerrm,null,'FAILED',p_user_name);
    end checkout;
    procedure checkin (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    begin
    if doc_is_checkedout_by(p_doc_id) is null then
    raise_application_error(-20001,'This document is not locked.');
    end if;
    update doclib_documents
    set checkedout_by = null
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered checking in document: '||sqlerrm);
    end checkin;
    procedure uncheckout (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    begin
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    if l_checkedout_by is null then
    --raise_application_error(-20001,'This document is not checked out.');
    return_xml(p_doc_id,'UNCHECKOUT','This document is not locked.',null,'FAILED',p_user_name);
    return;
    end if;
    --This can be optimistic locking scheme
    if upper(l_checkedout_by) != upper(p_user_name) and get_acl_id(p_user_name) < 3 then
    --raise_application_error(-20001,'You are not authorized to uncheckout this document.');
    return_xml(p_doc_id,'UNCHECKOUT','You are not authorized to unlock this document.',null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set checkedout_by = null
    where doc_id = p_doc_id;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'UNCHECKOUT','Unlock was successfull',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Exception encountered unchecking out document: '||sqlerrm);
    return_xml(p_doc_id,'UNCHECKOUT','Exception encountered unlocking document: '||sqlerrm,null,'FAILED',p_user_name);
    end uncheckout;
    procedure update_member (
    p_user_name in varchar2,
    p_member_id in varchar2,
    p_email in varchar2,
    p_acl_id in varchar2,
    p_retrieved in varchar2
    is
    l_retrieved date;
    begin
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to update members.');
    end if;
    --optimistic locking
    for c1 in (select null
    from doclib_members
    where user_id = p_member_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'The member has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_members
    set email_address = p_email,
    role_id = p_acl_id
    where user_id = p_member_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating member: '||sqlerrm);
    end update_member;
    procedure update_member_email (
    p_user_name in varchar2,
    p_email in varchar2,
    p_retrieved in varchar2
    is
    l_user_id number;
    l_retrieved date;
    begin
    l_user_id := get_member_id(p_user_name);
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    --optimistic locking
    for c1 in (select null
    from doclib_members
    where user_id = l_user_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'Remarkably, your email address changed since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_members
    set email_address = p_email
    where user_id = l_user_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating email: '||sqlerrm);
    end update_member_email;
    procedure update_task (
    p_task_id in varchar2,
    p_title in varchar2,
    p_user_name in varchar2,
    p_assigned in varchar2,
    p_priority in varchar2,
    p_status in varchar2,
    p_pct_complete in varchar2,
    p_description in varchar2,
    p_start_date in varchar2,
    p_due_date in varchar2,
    p_doc_id in varchar2,
    p_retrieved in varchar2
    is
    l_start_date date;
    l_due_date date;
    l_retrieved date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update tasks.');
    end if;
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    l_start_date := to_date(p_start_date,'DD-MM-YYYY HH24:MI');
    l_due_date := to_date(p_due_date, 'DD-MM-YYYY HH24:MI');
    --optimistic locking
    for c1 in (select null
    from doclib_tasks
    where task_id = p_task_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'This task has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_tasks
    set assigned_to = p_assigned,
    priority_id = p_priority,
    status_id = p_status,
    pct_complete = p_pct_complete,
    name = p_title,
    description = p_description,
    start_date = l_start_date,
    due_date = l_due_date,
    doc_id = p_doc_id
    where task_id = p_task_id;
    do_alerts('T',p_task_id,null);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating task: '||sqlerrm);
    end update_task;
    procedure update_link (
    p_link_id in varchar2,
    p_user_name in varchar2,
    p_name in varchar2,
    p_url in varchar2,
    p_retrieved in varchar2
    is
    l_retrieved date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update links.');
    end if;
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    --optimistic locking
    for c1 in (select null
    from doclib_links
    where link_id = p_link_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'This link has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_links
    set name = p_name,
    url = p_url
    where link_id = p_link_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating link: '||sqlerrm);
    end update_link;
    procedure update_announcement (
    p_an_id in varchar2,
    p_user_name in varchar2,
    p_title in varchar2,
    p_description in varchar2,
    p_expire_date in varchar2,
    p_retrieved in varchar2
    is
    l_expire_date date;
    l_retrieved date;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to update announcements.');
    end if;
    l_retrieved := to_date(p_retrieved,'DD-MM-YYYY HH24:MI:SS');
    l_expire_date := to_date(p_expire_date,'DD-MM-YYYY HH24:MI');
    --optimistic locking
    for c1 in (select null
    from doclib_announcements
    where an_id = p_an_id
    and updated_on > l_retrieved ) loop
    raise_application_error(-20001,'This task has been updated since you retrieved the data. Refresh and try again.');
    end loop;
    update doclib_announcements
    set title = p_title,
    description = p_description,
    expire_date = l_expire_date
    where an_id = p_an_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered updating announcement: '||sqlerrm);
    end update_announcement;
    procedure delete_document (
    p_doc_id in varchar2,
    p_user_name in varchar2,
    p_delete_all in varchar2 default null
    is
    l_date date := sysdate;
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    begin
    if get_acl_id(p_user_name) < 2 then
    --raise_application_error(-20001,'You are not authorized to delete documents.');
    return_xml(p_doc_id,'DELETE','You are not authorized to delete documents.',null,'FAILED',p_user_name);
    return;
    end if;
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    --raise_application_error(-20001,'This document is currently checked out by '||l_checkedout_by);
    return_xml(p_doc_id,'DELETE','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
    return;
    end if;
    if p_delete_all = 'Y' then
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = p_doc_id
    or revision_of = p_doc_id;
    else
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = p_doc_id;
    end if;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'DELETE','Document successfully deleted.',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
    return_xml(p_doc_id,'DELETE','Exception encountered deleting document: '||sqlerrm,null,'FAILED',p_user_name);
    end delete_document;
    procedure really_delete_document (
    p_user_name in varchar2,
    p_doc_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to really delete documents.');
    end if;
    delete
    from doclib_documents
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
    end really_delete_document;
    procedure delete_member (
    p_user_name in varchar2,
    p_user_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to delete members.');
    end if;
    delete
    from doclib_members
    where user_id = p_user_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting member: '||sqlerrm);
    end delete_member;
    procedure delete_task (
    p_user_name in varchar2,
    p_task_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to delete tasks.');
    end if;
    delete
    from doclib_tasks
    where task_id = p_task_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting task: '||sqlerrm);
    end delete_task;
    procedure delete_announcement (
    p_user_name in varchar2,
    p_an_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to delete announcements.');
    end if;
    delete
    from doclib_announcements
    where an_id = p_an_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting announcement: '||sqlerrm);
    end delete_announcement;
    procedure delete_link (
    p_user_name in varchar2,
    p_link_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to delete links.');
    end if;
    delete
    from doclib_links
    where link_id = p_link_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered deleting link: '||sqlerrm);
    end delete_link;
    procedure make_doc_current (
    p_user_name in varchar2,
    p_name in varchar2,
    p_doc_id in varchar2
    is
    l_name varchar2(255);
    l_checkedout_by varchar2(255);
    l_curr_doc_id number;
    begin
    if get_acl_id(p_user_name) < 2 then
    raise_application_error(-20001,'You are not authorized to make this document current.');
    end if;
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    raise_application_error(-20001,'This document is currently locked by '||l_checkedout_by);
    end if;
    for c1 in (select doc_id
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = 0
    and name = p_name ) loop
    l_curr_doc_id := c1.doc_id;
    exit; -- this should only get one row, but just in case
    end loop;
    l_checkedout_by := doc_is_checkedout_by(l_curr_doc_id);
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    raise_application_error(-20001,'This document is currently locked by '||l_checkedout_by);
    end if;
    update doclib_documents
    set revision_of = p_doc_id,
    checkedout_by = null --Revisions can't be locked
    where name = p_name
    and doc_id != p_doc_id;
    update doclib_documents
    set revision_of = 0,
    checkedout_by = l_checkedout_by --In case original document was locked by p_user_name
    where doc_id = p_doc_id;
    --do alerts
    do_alerts('D',l_curr_doc_id, p_doc_id);
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered making document current: '||sqlerrm);
    end make_doc_current;
    procedure undelete_document (
    p_user_name in varchar2,
    p_doc_id in varchar2
    is
    begin
    if get_acl_id(p_user_name) < 3 then
    raise_application_error(-20001,'You are not authorized to undelete a document.');
    end if;
    update doclib_documents
    set deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    where doc_id = p_doc_id;
    commit;
    exception when others then
    raise_application_error(-20001,'Exception encountered undeleting document: '||sqlerrm);
    end undelete_document;
    procedure send_invitation (
    p_user_name in varchar2,
    p_url in varchar2,
    p_email in varchar2,
    p_acl_id in varchar2,
    p_subject in varchar2,
    p_body in varchar2
    is
    l_body clob;
    l_role_name varchar2(30);
    l_from varchar2(255);
    begin
    for c1 in (select name
    from doclib_roles
    where role_id = p_acl_id ) loop
    l_role_name := c1.name;
    end loop;
    for c1 in (select email_address
    from doclib_members
    where user_name = p_user_name ) loop
    l_from := c1.email_address;
    end loop;
    l_body := g_html_email_header||chr(13)||'<p />'||p_body||chr(13);
    l_body := l_body ||chr(13)||'<p />'||p_user_name||' has granted you access to '||p_url||'.';
    l_body := l_body ||chr(13)||' Click the link to view the site. You have been granted access to the workspace with ';
    l_body := l_body ||chr(13)||'the role of: '||l_role_name||'.'||g_html_email_footer;
    apex_mail.send(
    p_to => p_email,
    p_from => l_from,
    p_body => to_clob(' '),
    p_body_html => l_body,
    p_subj => p_subject );
    end send_invitation;
    procedure delete_document_multi (
    p_doc_ids in varchar2,
    p_user_name in varchar2
    is
    l_date date := sysdate;
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    l_vc_arr2 apex_application_global.vc_arr2;
    l_doc_id number;
    l_curr_doc_id number;
    begin
    if get_acl_id(p_user_name) < 2 then
    --raise_application_error(-20001,'You are not authorized to delete documents.');
    return_xml(p_doc_ids,'DELETE_MULTI','You are not authorized to delete documents.',null,'FAILED',p_user_name);
    return;
    end if;
    l_vc_arr2 := apex_util.string_to_table(p_doc_ids,',');
    for c1 in (select revision_of
    from doclib_documents
    where doc_id = l_vc_arr2(1) ) loop
    l_curr_doc_id := c1.revision_of;
    end loop;
    for z in 1..l_vc_arr2.count loop
    l_checkedout_by := doc_is_checkedout_by(l_vc_arr2(z));
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    --raise_application_error(-20001,'This document is currently checked out by '||l_checkedout_by);
    return_xml(l_vc_arr2(z),'DELETE_MULTI','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = l_vc_arr2(z);
    end loop;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(l_curr_doc_id,'DELETE_MULTI','Documents successfully deleted',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    --raise_application_error(-20001,'Exception encountered deleting document: '||sqlerrm);
    return_xml(p_doc_ids,'DELETE_MULTI','Exception encountered deleting documents '||sqlerrm,null,'FAILED',p_user_name);
    end delete_document_multi;
    procedure rollback_document (
    p_doc_id in varchar2,
    p_user_name in varchar2
    is
    l_date date := sysdate;
    l_checkedout_by varchar2(255);
    l_chkout_lst varchar2(32000);
    begin
    if get_acl_id(p_user_name) < 2 then
    return_xml(p_doc_id,'ROLLBACK','You are not authorized to rollback documents.',null,'FAILED',p_user_name);
    return;
    end if;
    l_checkedout_by := doc_is_checkedout_by(p_doc_id);
    --can be used as optimistic locking
    if l_checkedout_by is not null and upper(l_checkedout_by) != upper(p_user_name) then
    return_xml(p_doc_id,'ROLLBACK','This document is currently locked by '||l_checkedout_by,null,'FAILED',p_user_name);
    return;
    end if;
    update doclib_documents
    set deleted_as_of = l_date
    where doc_id = p_doc_id;
    for c1 in (select doc_id, name
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = p_doc_id
    and version_no = (select max(version_no)
    from doclib_documents
    where deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    and revision_of = p_doc_id) ) loop
    doclib.make_doc_current(
    p_user_name => p_user_name,
    p_name => c1.name,
    p_doc_id => c1.doc_id );
    apex_util.set_session_state('DOC_ID',c1.doc_id);
    end loop;
    commit;
    l_chkout_lst := get_checkout_list(p_user_name);
    return_xml(p_doc_id,'ROLLBACK','Document successfully rolled back',l_chkout_lst,'SUCCESS',p_user_name);
    exception when others then
    return_xml(p_doc_id,'ROLLBACK','Exception encountered rolling back document: '||sqlerrm,null,'FAILED',p_user_name);
    end rollback_document;
    /* Begin CBackstrom procedures and functions */
    PROCEDURE return_all_docs(p_doc_type IN VARCHAR2) IS
    l_checkedout_by VARCHAR2(4000);
    l_attr1 VARCHAR2(4000);
    l_attr2 VARCHAR2(4000);
    l_attr3 VARCHAR2(4000);
    BEGIN
    l_checkedout_by := v('P9_MEMBERS');
    l_attr1 := v('P9_ATTR1');
    l_attr2 := v('P9_ATTR2');
    l_attr3 := v('P9_ATTR3');
    IF(p_doc_type = 'XML') THEN
    owa_util.mime_header('text/xml', FALSE);
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    END IF;
    htp.p('<div id="filelist">');
    --htp.p('<div style="width:150px;"></div>');
    IF v('P9_DESC') IS NOT NULL THEN
    FOR c1 IN
    (SELECT score(1) sc,
    name,
    doc_id,
    checkedout_by,
    '<img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', '' || v('APP_IMAGES') || 'icodt.GIF', 'application/vnd.ms-excel', '' || v('APP_IMAGES') || 'ICXLS.GIF', 'application/msword', '' || v('APP_IMAGES') || 'ICDOC.GIF', 'application/pdf', '' || v('APP_IMAGES') || 'icpdf.GIF', 'application/vnd.ms-powerpoint', '' || v('APP_IMAGES') || 'ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', '' || v('APP_IMAGES') || 'iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', '' || v('APP_IMAGES') || 'icodp.GIF', 'text/plain', '' || v('APP_IMAGES') || 'ICTXT.GIF', 'application/x-zip-compressed', '' || v('APP_IMAGES') || 'ICZIP.GIF', '' || v('APP_IMAGES') || 'ICGEN.GIF') || '" width="16" height="16" border="0" />' img
    FROM doclib_documents
    WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
    AND revision_of = 0
    AND(checkedout_by = l_checkedout_by OR l_checkedout_by = '0')
    AND(attr1 = l_attr1 OR l_attr1 = '0')
    AND(attr2 = l_attr2 OR l_attr2 = '0')
    AND(attr3 = l_attr3 OR l_attr3 = '0')
    AND contains(contents, doclib.parse_search_string(v('P9_DESC')), 1) > 0
    ORDER BY sc DESC)
    LOOP
    IF c1.checkedout_by IS NULL THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '">' || c1.img || '  (' || c1.sc || ') '|| c1.name || '</a>');
    ELSIF c1.checkedout_by = apex_application.g_user THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedoutme">' || c1.img || '  (' || c1.sc || ') ' || c1.name || '(' || c1.sc || ')</a>');
    ELSE
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedout">' || c1.img || '  (' || c1.sc || ') '|| c1.name || '(' || c1.sc || ')</a>');
    END IF;
    END LOOP;
    ELSE
    FOR c1 IN
    (SELECT name,
    doc_id,
    checkedout_by,
    '<img src="' ||decode(mime_type,'application/vnd.oasis.opendocument.text', ''|| v('APP_IMAGES')||
    'icodt.GIF','application/vnd.ms-excel',''||v('APP_IMAGES')||'ICXLS.GIF','application/msword',''||
    v('APP_IMAGES')||'ICDOC.GIF','application/pdf',''||v('APP_IMAGES')||'icpdf.GIF','application/vnd.ms-powerpoint',''||
    v('APP_IMAGES')||'ICPPT.GIF','application/vnd.oasis.opendocument.spreadsheet',''||v('APP_IMAGES')||
    'iccalc.GIF','application/vnd.oasis.opendocument.presentation',''||v('APP_IMAGES')||'icodp.GIF','text/plain',''||
    v('APP_IMAGES')||'ICTXT.GIF','application/x-zip-compressed',''||v('APP_IMAGES')||'ICZIP.GIF',''||v('APP_IMAGES')||
    'ICGEN.GIF')||'" width="16" height="16" border="0" />' img
    FROM doclib_documents
    WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
    AND revision_of = 0
    AND(checkedout_by = l_checkedout_by OR l_checkedout_by = '0')
    AND(attr1 = l_attr1 OR l_attr1 = '0')
    AND(attr2 = l_attr2 OR l_attr2 = '0')
    AND(attr3 = l_attr3 OR l_attr3 = '0')
    order by name, updated_on desc)
    LOOP
    IF c1.checkedout_by IS NULL THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '">' || c1.img || '  ' || c1.name || '</a>');
    ELSIF c1.checkedout_by = apex_application.g_user THEN
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedoutme">' || c1.img || '  ' || c1.name || '</a>');
    ELSE
    htp.p('<a href="javascript:void(0) onclick="GetDoc(this,''' || c1.doc_id || ''')" id="' || c1.doc_id || '" class="checkedout">' || c1.img || '  ' || c1.name || '</a>');
    END if;
    END LOOP;
    END IF;
    htp.p('</div>');
    END;
    PROCEDURE doc_versions(p_doc_id IN VARCHAR2) IS
    l_checkedout_by VARCHAR2(4000);
    l_doc_name VARCHAR2(4000);
    BEGIN
    htp.p('<table id="doc_versions" cellpadding="0" border="0" cellspacing="0">');
    htp.p('<tr>');
    htp.p('<th><input type="checkbox" onclick="html_CheckAll(''doc_versions'',this.checked)" /></th>');
    htp.p('<th>Version</th>');
    htp.p('<th>Created</th>');
    htp.p('<th>Created By</th>');
    htp.p('</tr>');
    FOR c2 IN
    (SELECT doc_id,
    decode(revision_of,0,' ',apex_item.checkbox(1,doc_id)) a,
    name,
    version_no,
    created_on,
    created_by
    FROM doclib_documents
    WHERE deleted_as_of = to_date('22-04-2004', 'DD-MM-YYYY')
    AND(doc_id = p_doc_id OR revision_of = p_doc_id)
    ORDER BY version_no DESC)
    LOOP
    htp.p('<tr>');
    htp.p('<td>' || c2.a || '</td>');
    htp.p('<td><a id="filehref" href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || c2.doc_id || '&p_cat=DOCS&p_id=' || c2.doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || '">' || c2.version_no || '</a></td>');
    htp.p('<td>' || to_char(c2.created_on, 'MM/DD/YYYY HH:MI AM') || '</td>');
    htp.p('<td>' || c2.created_by || '</td>');
    htp.p('</tr>');
    END LOOP;
    htp.p('</table>');
    END;
    FUNCTION doc_is_updated_by(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    FOR c1 IN
    (SELECT updated_by
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.updated_by;
    END LOOP;
    RETURN NULL;
    END doc_is_updated_by;
    FUNCTION doc_updated_date(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    FOR c1 IN
    (SELECT to_char(updated_on, 'MM/DD/YYYY HH:MI AM') updated_on
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.updated_on;
    END LOOP;
    RETURN NULL;
    END doc_updated_date;
    FUNCTION doc_created_date(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS
    BEGIN
    FOR c1 IN
    (SELECT to_char(created_on, 'MM/DD/YYYY HH:MI AM') created
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.created;
    END LOOP;
    RETURN NULL;
    END doc_created_date;
    FUNCTION doc_linked_image(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS l_image_link VARCHAR2(4000);
    l_image_prefix VARCHAR2(4000);
    BEGIN
    l_image_link := '<a id="filehref" href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || '">';
    l_image_prefix := v('APP_IMAGES');
    FOR c1 IN
    (SELECT mime_type,
    l_image_link || '<img src="' || decode(mime_type, 'application/vnd.oasis.opendocument.text', l_image_prefix || 'icodt.GIF', 'application/vnd.ms-excel', l_image_prefix || 'ICXLS.GIF', 'application/msword', l_image_prefix || 'ICDOC.GIF', 'application/pdf', l_image_prefix || 'icpdf.GIF', 'application/vnd.ms-powerpoint', l_image_prefix || 'ICPPT.GIF', 'application/vnd.oasis.opendocument.spreadsheet', l_image_prefix || 'iccalc.GIF', 'application/vnd.oasis.opendocument.presentation', l_image_prefix || 'icodp.GIF', 'text/plain', l_image_prefix || 'ICTXT.GIF', 'application/x-zip-compressed', l_image_prefix || 'ICZIP.GIF', l_image_prefix || 'ICGEN.GIF') || '" width="16" height="16" border="0" /></a>' image
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.image;
    END LOOP;
    RETURN NULL;
    END doc_linked_image;
    FUNCTION doc_file_type(p_doc_id IN VARCHAR2) RETURN VARCHAR2 IS l_file_type VARCHAR2(4000);
    BEGIN
    FOR c1 IN
    (SELECT mime_type
    FROM doclib_documents
    WHERE doc_id = p_doc_id)
    LOOP
    RETURN c1.mime_type;
    END LOOP;
    RETURN NULL;
    END doc_file_type;
    PROCEDURE doc_attribute_tab(p_doc_id IN VARCHAR2, p_user_name IN VARCHAR2) IS
    BEGIN
    for c1 in (select attr1, attr2, attr3, description
    from doclib_documents
    where doc_id = p_doc_id ) loop
    htp.p('<table id="doc_attribute" cellpadding="0" cellspacing="0" border="0">');
    htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL1')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(1,c1.attr1,'ATTR1',null,'NO',null,null,'ATTR1')||'</td></tr>');
    htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL2')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(2,c1.attr2,'ATTR2',null,'NO',null,null,'ATTR2')||'</td></tr>');
    htp.p('<tr><th>'||v('DOC_WORKSPACE_LBL3')||'</th><td>'||APEX_ITEM.SELECT_LIST_FROM_LOV(3,c1.attr3,'ATTR3',null,'NO',null,null,'ATTR3')||'</td></tr>');
    htp.p('<tr><td colspan="2"><b>Description</b>
    <textarea id="desc">' || c1.description || '</textarea></td></tr>');
    htp.p('<tr><td colspan="2"><input type="button" onclick="doc_attribute_update()" value="Update Attributes" /></td></tr>');
    htp.p('</table>');
    end loop;
    END;
    PROCEDURE doc_detail(p_doc_id IN VARCHAR2, p_user_name IN VARCHAR2) IS
    l_checkedout_by VARCHAR2(4000);
    l_updated_by VARCHAR2(4000);
    l_created_date VARCHAR2(4000);
    l_updated_date VARCHAR2(4000);
    l_mime_type VARCHAR2(4000);
    l_doc_name VARCHAR2(4000);
    l_acl_id VARCHAR2(4000);
    BEGIN
    l_checkedout_by := doclib.doc_is_checkedout_by(p_doc_id);
    l_doc_name := doclib.get_doc_name(p_doc_id);
    l_acl_id := doclib.get_acl_id(p_user_name);
    l_updated_by := doc_is_updated_by(p_doc_id);
    l_mime_type := doc_file_type(p_doc_id);
    l_updated_date := doc_updated_date(p_doc_id);
    l_created_date := doc_created_date(p_doc_id);
    apex_util.set_session_state('DOC_ID', p_doc_id);
    apex_util.set_session_state('DOC_NAME', l_doc_name);
    htp.p('<div id="doc_detail">');
    htp.p('<div id="doc_header">');
    htp.p('<div id="doc_name"><a href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || v('APP_USER') || '&p_workspace=' || apex_custom_auth.get_security_group_id || ">' || l_doc_name || '</a></div>');
    htp.p('<table><tr><td valign="top">');
    htp.p('<table>');
    htp.p('<tr><th>View :</th><td>' || doc_linked_image(p_doc_id) || '</td></tr>');
    htp.p('<tr><th>Locked By :</th><td id="checkedoutby">' || l_checkedout_by || '</td></tr>');
    htp.p('<tr><th>Modified By :</th><td id="modifiedby">' || l_updated_by || '</td></tr>');
    htp.p('</table>');
    htp.p('</td><td width="100">
    <td><td valign="top">');
    htp.p('<table>');
    htp.p('<tr><th>Updated Date :</th><td id="updateddate">' || l_updated_date || '</td></tr>');
    htp.p('<tr><th>Created Date :</th><td id="createddate">' || l_created_date || '</td></tr>');
    htp.p('<tr><th>Send Link :</th><td id="sendlink"><a href="mailto:' || doclib.get_member_email(p_user_name) || '?subject=' || l_doc_name || '&body=' || v('BASE_URL') || '/f?p=' || v('APP_ID') || ':2:::::P2_DOC_ID:' || p_doc_id || ">Click Here</a></td></tr>');
    htp.p('</table>');
    htp.p('</td></tr></table>');
    htp.p('</div>');
    htp.p('<div id="doc_actions">Actions : ');
    IF l_acl_id > 1 THEN
    IF l_checkedout_by IS NULL THEN
    htp.p('<a href="javascript:doc_Action(this,''' || p_doc_id || ''',''CHECKOUT'') id="checkout_button">Lock</a>');
    ELSIF l_checkedout_by = p_user_name OR l_acl_id > 2 THEN
    htp.p('<a href="javascript:doc_Action(this,''' || p_doc_id || ''',''UNCHECKOUT'') id="checkout_button">Unlock</a>');
    END IF;
    IF l_checkedout_by IS NULL OR l_checkedout_by = p_user_name THEN
    htp.p('Add Version');
    htp.p('Delete');
    END IF;
    -- htp.p('<a href="f?p=&APP_ID.:5:&SESSION.::::P5_NAME,P5_DOC_ID:' || l_doc_name || ',' || p_doc_id || ' id="versions_button">Versions</a>');
    END IF;
    htp.p('<a href="apex_util.count_click?p_url=' || v('OWNER') || '.get_doc?p=' || p_doc_id || '&p_cat=DOCS&p_id=' || p_doc_id || '&p_user=' || p_user_name || '&p_workspace=' || apex_custom_auth.get_security_group_id || ">View</a>');
    htp.p('<a href="f?p=' || v('APP_ID') || ':95:' || v('SESSION') || '::::P95_ALERT_TYPE,P95_ALERT_INTERVAL,P95_DOC_ID:D,,' || v('DOC_ID') || ">Alert Me</a>');
    htp.p('</div>');
    htp.p('<div id="action_message"></div>');
    htp.p('<div id="doc_tabs">');
    htp.p('<div id="doc_tabsbuttons">Versions<a id="tab3" href="javascript:void(0)" onclick="doc_Comments_Tab(''tab3'')">Comments</a>');
    if doclib.GET_ACL_ID(v('APP_USER')) > 1 then
    htp.p('Attributes');
    end if;
    htp.p('</div>');
    htp.p('<div id="doc_tabsbody">');
    htp.p('<div id="tab1_content">');
    doc_versions(p_doc_id);
    IF (l_checkedout_by IS NULL OR l_checkedout_by = p_user_name) and get_acl_id(v('APP_USER')) > 1 THEN
    htp.p('<hr /><input type="button" value="Delete All Versions" onclick="doc_Action(this,''' || p_doc_id || ''',''DELETE'')" />');
    if doc_has_revisions(p_doc_id) > 0 then
    htp.p('<input type="button" value="Delete Checked Versions" onclick="doc_Action(this,''' || p_doc_id || ''',''DELETE_CHECKED'')" />');
    htp.p('<input type="button" value="Delete Current Version (Rollback Version)" onclick="doc_Action(this,''' || p_doc_id || ''',''ROLLBACK'')" />');
    end if;
    END IF;
    htp.p('</div>');
    htp.p('<div id="tab2_content" style="display:none;">');
    doc_attribute_tab(p_doc_id, p_user_name);
    htp.p('</div>');
    htp.p('<div id="tab3_content" style="display:none;"><div id="doc_comments">
    </div></div>');
    htp.p('</div>');
    htp.p('</div>');
    htp.p('</div>');
    END;
    PROCEDURE doc_comments(p_doc_id IN VARCHAR2) IS
    BEGIN
    htp.p('<div>');
    htp.p('<table id="doc_versions" cellpadding="0" border="0" cellspacing="0">');
    htp.p('<tr><th>Member</th><th>Date</th><th>Comment</th></tr>');
    FOR c2 IN
    (SELECT description,
    created_by,
    created_on
    FROM doclib_documents
    WHERE(doc_id = p_doc_id OR revision_of = p_doc_id)
    AND(description IS NOT NULL OR description != '')
    AND deleted_as_of = to_date('22-04-2004','DD-MM-YYYY')
    ORDER BY created_on DESC)
    LOOP
    htp.p('<tr>' || '<td>' || c2.created_by || '</td><td>' || to_char(c2.created_on, 'MM/DD/YYYY HH:MI AM') || '</td><td>' || c2.description || '</td></tr>');
    END LOOP;
    htp.p('</table>');
    htp.p('</div>');
    END;
    /* End CBackstrom procedures and functions */
    end doclib;
    Error at line 1230: PL/SQL: SQL Statement ignored
    sync_index.sql
    declare
    l_job_id binary_integer;
    begin
    for c1 in (select job
    from user_jobs
    where what = 'ctx_ddl.sync_index(''doclib_docs_idx2'', ''2M'');' ) loop
    dbms_job.remove(c1.job);
    end loop;
    dbms_job.submit(
    job => l_job_id,
    what => 'ctx_ddl.sync_index(''doclib_docs_idx2'', ''2M'');',
    next_date => sysdate + 15/1440,
    interval => 'sysdate + 15/1440');
    end;
    ORA-06550: line 1, column 93:
    PLS-00201: identifier 'CTX_DDL.SYNC_INDEX' must be declared
    ORA-06550: line 1, column 93:
    PL/SQL: Statement ignored
    I would appreciate any suggestions.
    Thank you for your time.
    DanielD

  • CUEAC Installation gets Error 1720

    Hi,
    i tired to install the CUEAS 8.6.1.9 Trial on a Microsoft Server, but i allways get the error 1720 during installation.
    Here my installation steps:
    microsoft windows 2003 (32bit) on server and VM Vsphere 4.x
    + language german
    + all microsoft updates
    + IIS
    + asp.net
    + ms sql server express 2005
    + microsoft installer 4.5
    + dotnet 3.5 SP1
    - Remote access conection manager service
    - user account control
    => ends during installation with error 1720
    microsoft windows 2008 (32bit) on VM Vsphere 4.x
    + language german + microsoft en-us language pack
    + microsoft SP2
    + IIS
    + asp.net
    + dotnet framework
    + vnc
    - Remote access conection manager service
    - user account control
    => installation installs dotnet framework 3.5 SP1 and microsoft installer 4.5, but ends with error 1720
    any ideas? i downloaded the cueac 8.6.1.9 in the last two days two times..

    Hi,
    thank you for your help and mentioned link.
    I managed to install the cueac 8.0.0.5 on our VMware Vsphere 4.x with the cisco vm template. The VMware is not installed on a cisco device, that is true, but i could not install cueac 8.6.1.9 on a Windows Server 2003 on a physical machine either.
    On Windows 2003 Server the SQL 2008 Express was not installed properly by cueac 8.6.1.9, i had a view under installed software, their was only one point "sql 2008 tools and help.." (or something like that). After that i tried to install cueac 8.0.0.5, but the sql database wizzard could not connect; error "unable to connect to server". So i tried to install SQL 2008 Express manually, but their was an error during the checklist. i believ the msi had a problem with sql installation on both systems, because it could install one or more times other necessary applications.

  • Adobe illustrator installation errors.

    I've been trying to install Illustrator CS5 trial for about a week now and this always comes up. I've been reading the other disscussions about this problem but none of them have helped. If anyone can help me that would be greatly appreciated.
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 38 error(s), 49 warning(s)
    WARNING: Display requirements not met for {9B97EC91-B3FD-4BFF-88FC-5345A26AC2E7}
    WARNING: Display requirements not met for {D3A8C87E-ED6A-41DB-8B21-C29EDA65B154}
    WARNING: Warning: {2F6B67F4-A2BB-45D7-A80C-25FF646CC1C5} Adobe Player for Embedding will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {02731921-5711-4E7A-A898-D6BCF0F2A1CD} Adobe CSXS Infrastructure CS5 will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {E995AC53-954A-48D2-A861-613B8D42A9BE} Adobe ExtendScript Toolkit CS5 will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {E4E188D2-27D5-4E4C-92CE-87F9D24AD2F6} Adobe Extension Manager CS5 will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {6E505C8F-2896-11DF-9B64-0013724DD917} DeviceCentral will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {1D809D80-28A4-11DF-A816-0024E8692489} DeviceCentral_DeviceCentral3LP-en_US will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {2F6B67F4-A2BB-45D7-A80C-25FF646CC1C5} Adobe Player for Embedding will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Warning: {02731921-5711-4E7A-A898-D6BCF0F2A1CD} Adobe CSXS Infrastructure CS5 will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {E995AC53-954A-48D2-A861-613B8D42A9BE} Adobe ExtendScript Toolkit CS5 will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {E4E188D2-27D5-4E4C-92CE-87F9D24AD2F6} Adobe Extension Manager CS5 will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Warning: {6E505C8F-2896-11DF-9B64-0013724DD917} DeviceCentral will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Warning: {1D809D80-28A4-11DF-A816-0024E8692489} DeviceCentral_DeviceCentral3LP-en_US will not be repaired, due to updated patch of STI and one of the top level payload is being installed.
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    WARNING: Payload cannot be installed due to dependent operation failure
    ERROR: MsiConfigureProductEx failed with error: 1612 - The installation source for this product is not available. Verify that the source exists and that you can access it.
    MSI Error message:
    ERROR: The following payload errors were found during install:
    ERROR:  - Microsoft_VC90_ATL_x86: Install failed
    ERROR:  - Adobe Media Player: Install failed
    ERROR:  - SiteCatalyst NetAverages: Install failed
    ERROR:  - Microsoft_VC90_CRT_x86: Install failed
    ERROR:  - Adobe Bridge CS5: Install failed
    ERROR:  - Adobe XMP Panels CS5: Install failed
    ERROR:  - Photoshop Camera Raw: Install failed
    ERROR:  - AdobeColorCommonSetCMYK: Install failed
    ERROR:  - AdobeHelp: Install failed
    ERROR:  - Camera Profiles Installer: Install failed
    ERROR:  - AdobeColorJA CS5: Install failed
    ERROR:  - Adobe ReviewPanel CS5: Install failed
    ERROR:  - Adobe BrowserLab CS Live: Install failed
    ERROR:  - Microsoft_VC90_MFC_x86: Install failed
    ERROR:  - CSXS Story Extension: Install failed
    ERROR:  - Suite Shared Configuration CS5: Install failed
    ERROR:  - Adobe Linguistics CS5: Install failed
    ERROR:  - PDF Settings CS5: Install failed
    ERROR:  - AdobeColorEU CS5: Install failed
    ERROR:  - AdobeTypeSupport CS5: Install failed
    ERROR:  - AdobeColorCommonSetRGB: Install failed
    ERROR:  - Adobe CSXS Extensions CS5: Install failed
    ERROR:  - AdobeOutputModule: Install failed
    ERROR:  - Adobe Illustrator CS5: Failed due to Language Pack installation failure
    ERROR:  - Adobe WinSoft Linguistics Plugin CS5: Install failed
    ERROR:  - AdobePDFL CS5: Install failed
    ERROR:  - HIL Help Search: Install failed
    ERROR:  - AdobeCMaps CS5: Install failed
    ERROR:  - Required Common Fonts Installation: Install failed
    ERROR:  - Microsoft_VC80_MFC_x86: Install failed
    ERROR:  - AdobeColorNA CS5: Install failed
    ERROR:  - Adobe Illustrator CS5_AdobeIllustrator15en_USLanguagePack: Install failed
    ERROR:  - Microsoft_VC80_MFCLOC_x86: Install failed
    ERROR:  - Recommended Common Fonts Installation: Install failed
    ERROR:  - AdobeJRE: Install failed
    ERROR:  - Adobe AIR: Install failed

    Installer seems to be failing to install 'Microsoft_VC90_ATL_x86.msi'. So in the installer lookup for this file at following path and double click to install it explicitly -
    'payloads\Microsoft_VC90_ATL_x86\Microsoft_VC90_ATL_x86.msi'
    If it prompts for the path point to itself (i.e. Microsoft_VC90_ATL_x86.msi). It would get installed successfully.
    Now re-run the full installer.

  • Installation of Photoshop update 13.1.2 for creative cloud fails with error code U44M1P7 I need help

    I need help installing update 13.1.2 for Photoshop creative cloud, installation fails with error code: U44M1P7. Could someone please help?

    Sorry to bother you.
    I could find the answer after searching previous posts about this language problem.
    Had to change my language in AAM profile and then download PS CS6 again ( english version ).
    Then open the actual Photoshop and in preferences > interface you can besides the Dutch also option for English.
    restart application and Voila.
    Greetz, Jeroen

  • SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory

    SharePoint Designer 2013 after installation getting error with runtime i.e. error writing to file Microsoft.SharePoint.Client.Runtime.Local.Resources.dll Verify that you have access to that directory
    after retry..again SharePoint Designer requires the following component require to install Microsoft.NET framework version 4 i have downloaded and try to installed but fail not work please answer what to do?
    Thanks and Regards, Rangnath Mali

    Hi Rangnath,
    For running SharePoint Designer 2013, you need to install Microsoft .NET 4.0 Framework or higher.
    Please uninstall the Microsoft .NET 4.0 Framework, and install it again. After that, reboot your machine.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error in installation with NW04S

    Hi,
    error : CJS-30196. SAPBC JSF Communication role is not assigned to the user SAPJSF.
    i am getting the fallowing error in installation with NW04S. while trying to assign the above role to the user.any body help me with the solution.
    Thanks & Regards
        kiran.B

    Hi,
    Assign the Role  <b>SAP_BC_JSF_COMMUNICATION_RO</b> to the profile of SAPJSF user in production client and restart the installation.
    Regards,
    Siddhesh

  • Failed to Install The New Preview Build. Installation Failure: Windows failed to install the following update with error 0x80246007: FBL_AWESOME1501 9926 Professional.

    Hello,
    I'm having issues upgrading my Windows 10 Technical Preview installation build 9879 to a newer build that's become available late January 23rd.
    I am installing the new upgrade in a Hyper-V virtual machine and get the following error:
    Failed to install the new preview build, please try again later. 0x80246007
    What could be the problem?
    Previously I've had messages that Windows cannot be upgraded on a computer with less than 2 Gbyte of RAM. That's a Hyper-V VM with dynamic memory and I was highly surprised to see this error; never had this before. Had to set 2048 Mbytes as a minimum memory
    for this VM. Now that I have this 80246007 error code.
    When looking up System log, the following error messages are listed multiple times:
    Installation Failure: Windows failed to install the following update with error 0x80246007: FBL_AWESOME1501 9926 Professional.
    The errors are returned for the Event ID 20 by WindowsUpdateClient
    in task category Windows Update Agent..
    I reviewed the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability
    registry key as suggested in Windows
    Insider stuck on build 9841 - "No new preview build was found", and here is what it shows:
    [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsSelfHost\Applicability]
    "BranchName"="fbl_awesome1501"
    "ThresholdRiskLevel"="low"
    "ThresholdOptedin"=dword:00000001
    Note, when attempting to install the downloaded update from a native boot, installation starts with no errors.
    However, since setup is not supported for a natively booted VHD files, it does not proceed further showing a message that installation on virtual drives is not supported.  
    Looks like Setup is having problems installing in a Hyper-V virtual machine.
    Possibly, some ESD files got corrupted during downloading? Is it possible to remove them and re-download missing files? (I, however, noticed that Windows seems to re-download upgrade files after you restart 9879 and attempt to check for a new build.
    Any clue why installing under VM causes 9926 to fail?
    Thank you in advance.
    Well this is the world we live in And these are the hands we're given...

    Hi,
    According to the error message, this problem seems like update package installation failed during system upgrade.
    You can try to remove ESD file which locate at boot of C drive and upgrade the system again for test.
    On the other hand, make sure the system 9879 installed all Windows pushed updates before system upgrade.
    Roger Lu
    TechNet Community Support

  • After itunes installation an error message is shown, (itunes could not connect to the iphone, because it is locked with a passcode, you must enter your passcode on your iphone before it can be used with itunes)

    after itunes installation an error message is shown, (itunes could not connect to the iphone, because it is locked with a passcode, you must enter your passcode on your iphone before it can be used with itunes)

    Hi ..
    Follow the instructions here >  iOS: Forgotten passcode or device disabled after entering wrong passcode

  • Premiere elements 12, new installation, serial no. accepted, installation completed and new started, but does not run. I get following msg-box: "LoadLibrary failed with error 126: Das angegebene Modul wurde nicht gefunden."

    premiere elements 12, new installation, serial no. accepted, installation completed and new started, but does not run. I get following msg-box: "LoadLibrary failed with error 126: Das angegebene Modul wurde nicht gefunden."   Installation in German Language on WIN7 professional 64bit, Samsung SSD. What can I do to run that program?

    Jurgen Freund
    Premiere Elements 12 on Window 7 64 bit. What video card/graphics card does your computer use - AMD Radeon?
    I have found this YouTube video on the subject of Error 126 with details for resolving the problem.
    How to fix the ERROR 126 when you open OpenGL programs - YouTube
    The link was contributed in an old 2013 thread here by the ID danneomarre (see post 6 of the following thread)
    LoadLibrary failed with error 126: cant find the required
    Please let us know if that worked for you.
    Thank you.
    ATR
    Add On...When all is OK and working, please update 12 to 12.1 Update using an opened project's Help Menu/Update.

  • 8.1.6 install fails with Error 1321 Installer has insufficient privileges -

    Adobe Reader “Check for Updates” identifies “Adobe Reader 8.1.6 (CPSID_49167)” as “Available”.
    Installation fails with “Error 1321.The Installer has insufficient privileges to modify the file C:\Program Files\Adobe\Reader 8.0\Reader\plug_ins\Search.api.”
    Reboot tries to complete install adding unwanted desktop icon, but CPSID_49167 still shows as “Available” and MSI29706>LOG(s) show above error.
    XP SP3 Home, IE7, Adobe Reader 8.1.5

    Thanx kashifMohd,
    Downloaded the fix, vetted it, and before creating a new Administrator account used the following recipe with success:
    1. Ran downloaded fix with usual Admin Account and got the “Error 1321 for Search.api.” as before, but now there is a pop-up asking "Retry" or "Cancel" that did not appear when using "Get Updates" function from running Adobe Reader. Replied "Cancel".
    2. Rebooted, and disabled Kaspersky Anti-Virus.
    3. Again ran downloaded fix with usual Admin Account and got Error 1321 for different file: "C:\Program Files\Adobe\Reader 8.0\Reader\plug_ins3d\3difr.x3d" with pop-up asking "Retry" or "Cancel".
    4. Clicked "Retry" this time and installation completed successfully.
    Thanx again.

  • Installation Failure: Windows failed to install the following update with error 0x800F0922

    Hi folks,
    I have a HP Elitebook Folio 9470p.  It came with Windows 8, and I installed it on my corporate domain.  I was trying to do some Windows updates so  I could upgrade it to Windows 8.1, but it fails installing the updates, whether or not I try
    to install them one at a time or all of them.  It has about 18 updates it needs from security updates to a .net framework update.  I run Symantec EP, and disabled it, checked for driver updates for things like display and networking and they are
    all up to date.
    I'm at a loss as to what to do.  It gives this error in the event log for each file, Event ID 20.
    Installation Failure: Windows failed to install the following update with error 0x800F0922: Security Update for Windows 8 for x64-based Systems (KB2862152).
    This is the example for KB2862152, but it gives the same error for every one.  I've tried to auto fix for Windows update issues and it fixed a couple of the issues, but not all of them, and provides no other help.
    I also deleted folders and files from the SoftwareDistribution folder as well, to no avail.  Any ideas what I can do to get whatever updates it needs, so I can fully patch it, and upgrade it to Win 8.1?
    Thanks for any help!

    Hi MM. Mr Kywildcat and Vegan Fan,
    GOOD NEW ! At this time, my issue is solved. The only black side is "how ?" : I hope that we will get a response some day ; however, and for in information  pnly - hoping this could help someone - I resume some actions which allowed this the happy end
    1) about installing 8.1 : I wanted to be sure that gain/pain ratio was positive, and that upgrading from a (potentially) damaged system would'nt produce something looking like a new Win 8.1, but difficult to maintain and keeping some negative potentialities.
    2) I was influenced by the fact that this
    0x800F0922  error acted as "a serial killerror", whose root cause could be a unique update error at reboot time concerning several (>20) packages, so I decided to test some manual upgrades.
    3)   Manual update (i.e. manual download and maunching of .msu packages) of the 2 following packages
    (whose update previously failed on a Windows Update) was successful : .NET Framework version 3.5 for  x64 (KB2898866) and Camera Codec Pack Windows 8 for x64 (KB2899190)
    4) So I decided to try Windows Update on a selection of packages, first : those concerning .Net Framework 3.5 and 4.5 (that is: KB2898866, 2901120, 2898865) --> Successful !
    5) finally, I selected almost all other packages, with some exceptions wich I (think to) have no need for : KB2871690, 2904659, 2843630. To be complete, here is the list of pakages updated one time at all :
    KB 2892074, 2893294, 2893984, 2909210, 2912390, 2916036, 2889784,2903938, 2911101, 2913152, 2917499
    --> always succesful.
    I am not a specialist, but I uess that this 0x800F0922 error hides another problem which is globally "H-RESULTED"
    to all updates pending in one update operation with reboot. This could be assumed from this CBS.log exterped from my last wrong attempts, where root cause seems not to be
    0x800f0922, but 0x80004003 :
    2014-02-15 21:29:13, Info                  CBS    Could not get active session for current session file logging [HRESULT = 0x80004003 - E_POINTER]
    2014-02-15 21:29:13, Info                  CBS    Not able to add pending.xml.bad to Windows Error Report. [HRESULT = 0x80070002 - ERROR_FILE_NOT_FOUND]
    2014-02-15 21:29:18, Error  CBS    Startup: Failed to process advanced operation queue, startupPhase: 0.  A rollback transaction will be created. [HRESULT = 0x800f0922 - CBS_E_INSTALLERS_FAILED]
    Anyway, thanks to you who spent some of your time to describe issues and search/ suggest solutions ; I will upgrade my system to 8.1 anyway, some of this day, when I am sure that my configuration does not hides some other problem. I thing that potential
    issue remains until maybe a new KB corrects it, wrong :-) ?
    And I hope that you - Mr Kywildcat - can upgrade your system on "current levels" trying similar attempts. 
    Phil   

  • Windows Server 2008 R2 Service Pack 1 installation failed with error code 0x800f0a12

    Hello,
    I'm facing problem to install windows server 2008 R2 SP1. I cannot install SP1. In this server have running Exchange 2010 server. to update Win2008 R2 SP1 facing the following error:
    1. Service Pack installation failed with error code 0x800f0a12.
    2. Installation Failure: Windows failed to install the following update with error 0x80070643: Windows Server 2008 R2 Service Pack 1 for x64-based Systems (KB976932).
    Please suggest

    Please run the system update readiness tool.
    http://windows.microsoft.com/en-us/windows7/What-is-the-System-Update-Readiness-Tool?SignedIn=1
    Then post the complete contents of;
    %SYSTEMROOT%\Logs\CBS\CheckSUR.log
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

Maybe you are looking for

  • How do i connect my macbook into a tv

    I have the connecting cables to connect my macbook into the tv, but the only this that appears on the tv is the sign in screen.

  • Start-up problems with no video

    I have an HP Pavillion DV9000 and it is constantly powering on and off before an image even appears. I cannot get a screen to even appear with the F11 key interupt. I;m wandering if I have a video card issue or a boot up problem.  I have no recovery

  • Illustrator CS6 - Organisation problems with printing from PDF

    Hi everybody I working with the Illustroartor for some times now and I get better every time, but now its appears that's I have a organization problem with my Illustrator CS6 and maybe somebody can help me here. My problem: I create for example a log

  • Settings are not working

    Whenever I push "settings" icon, it just shows twitter log in screen. What should I do?

  • Invalid XML character in castor XML

    I am using castor API for converting an object into XML. When I marshal the object, following exception occur: java.io.IOException: The character '' is an invalid XML character      at org.apache.xml.serialize.BaseMarkupSerializer.characters(Unknown