Autodiscover URL returning error

I have the AutoDiscover rule created in TMG and and it tests fine within the TMG console.
However, when I hit the external URL lyncdiscover.domain.com I get this back:
Unable to download / from lyncdiscover.domain.com
Unable to open the Internet site.  The requested site is either unavailable or cannot be found.
The rule is being hit if I filter the logging.  There just seems to be some problem with it downloading the autodiscovery info.
Anyone else run into this?

Here is my config that works.  I have split brain DNS, FE, Edge, and TMG with a third party firewall and TMG as the backend firewall.  I use an external web service name different than the internal pool.
Identity                        : WebServer:<pool>.<External-Domain.com>
FileStore                       : FileStore:<FESERVER>.<AD-DOMAIN.net>
UserServer                      : UserServer:<pool>.<External-Domain.com>
PrimaryHttpPort                 : 80
PrimaryHttpsPort                : 443
ExternalHttpPort                : 8080
ExternalHttpsPort               : 4443
PublishedPrimaryHttpPort        : 80
PublishedPrimaryHttpsPort       : 443
PublishedExternalHttpPort       : 80
PublishedExternalHttpsPort      : 443
ReachPrimaryPsomServerPort      : 8060
ReachExternalPsomServerPort     : 8061
AppSharingPortStart             : 49152
AppSharingPortCount             : 16383
McxSipPrimaryListeningPort      : 5086
McxSipExternalListeningPort     : 5087
LIServiceInternalUri            :
https://<pool>.<External-Domain.com>/locationinformation/liservice.svc
ABHandlerInternalUri            :
https://<pool>.<External-Domain.com>/abs/handler
ABHandlerExternalUri            :
https://lyncweb.<External-Domain.com>/abs/handler
DLExpansionInternalUri          :
https://<pool>.<External-Domain.com>/groupexpansion/service.svc
DLExpansionExternalUri          :
https://lyncweb.<External-Domain.com>/groupexpansion/service.svc
CAHandlerInternalUri            :
https://<pool>.<External-Domain.com>/CertProv/CertProvisioningService.svc
CAHandlerInternalAnonUri        :
http://<pool>.<External-Domain.com>/CertProv/CertProvisioningService.svc
CollabContentInternalUri        :
https://<pool>.<External-Domain.com>/CollabContent
CollabContentExternalUri        :
https://lyncweb.<External-Domain.com>/CollabContent
CAHandlerExternalUri            :
https://lyncweb.<External-Domain.com>/CertProv/CertProvisioningService.svc
DeviceUpdateDownloadInternalUri :
https://<pool>.<External-Domain.com>/RequestHandler/ucdevice.upx
DeviceUpdateDownloadExternalUri :
https://lyncweb.<External-Domain.com>/RequestHandlerExt/ucdevice.upx
DeviceUpdateStoreInternalUri    :
http://<pool>.<External-Domain.com>/RequestHandler/Files
DeviceUpdateStoreExternalUri    :
https://lyncweb.<External-Domain.com>/RequestHandlerExt/Files
RgsAgentServiceInternalUri      :
https://<pool>.<External-Domain.com>/RgsClients/AgentService.svc
RgsAgentServiceExternalUri      :
https://lyncweb.<External-Domain.com>/RgsClients/AgentService.svc
MeetExternalUri                 :
https://lyncweb.<External-Domain.com>/Meet
DialinExternalUri               :
https://lyncweb.<External-Domain.com>/Dialin
CscpInternalUri                 :
https://<pool>.<External-Domain.com>/Cscp
ReachExternalUri                :
https://lyncweb.<External-Domain.com>/Reach
ReachInternalUri                :
https://<pool>.<External-Domain.com>/Reach
WebTicketExternalUri            :
https://lyncweb.<External-Domain.com>/WebTicket/WebTicketService.svc
WebTicketInternalUri            :
https://<pool>.<External-Domain.com>/WebTicket/WebTicketService.svc
McxServiceExternalUri           :
https://lyncweb.<External-Domain.com>/Mcx/McxService.svc
McxServiceInternalUri           :
https://<pool>.<External-Domain.com>/Mcx/McxService.svc
AutodiscoverServiceExternalUri  :
https://lyncweb.<External-Domain.com>/Autodiscover/AutodiscoverService.svc/root
AutodiscoverServiceInternalUri  :
https://<pool>.<External-Domain.com>/Autodiscover/AutodiscoverService.svc/root
ExternalFqdn                    : lyncweb.<External-Domain.com>
InternalFqdn                    :
DependentServiceList            : {Registrar:<pool>.<External-Domain.com>, ConferencingServer:<pool>.<External-Domain.com>}
ServiceId                       : 1-WebServices-1
SiteId                          : Site:ABC
PoolFqdn                        : <pool>.<External-Domain.com>
Version                         : 5
Role                            : WebServer

Similar Messages

  • [SOLVED]"The requested URL returned error: 407" while using pacman

    pacman worked fine until now. When I try to upgrade with
    pacman -Syu
    it returns what is written below even though internet works fine without problems(I'm posting from the same system using firefox)
    How can I get pacman working again?
    :: Synchronizing package databases...
    error: failed retrieving file 'core.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    error: failed retrieving file 'core.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    error: failed retrieving file 'core.db' from [url=ftp://ftp.jaist.ac.jp]ftp.jaist.ac.jp[/url] : The requested URL returned error: 407
    error: failed retrieving file 'core.db' from [url=ftp://ftp.jaist.ac.jp]ftp.jaist.ac.jp[/url] : The requested URL returned error: 407
    error: failed retrieving file 'core.db' from mirror.yongbok.net : The requested URL returned error: 407
    error: failed retrieving file 'core.db' from mirror.yongbok.net : The requested URL returned error: 407
    error: failed to update core (download library error)
    error: failed retrieving file 'extra.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    error: failed retrieving file 'extra.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    error: failed retrieving file 'extra.db' from [url=ftp://ftp.jaist.ac.jp]ftp.jaist.ac.jp[/url] : The requested URL returned error: 407
    error: failed retrieving file 'extra.db' from [url=ftp://ftp.jaist.ac.jp]ftp.jaist.ac.jp[/url] : The requested URL returned error: 407
    error: failed retrieving file 'extra.db' from mirror.yongbok.net : The requested URL returned error: 407
    error: failed retrieving file 'extra.db' from mirror.yongbok.net : The requested URL returned error: 407
    error: failed to update extra (download library error)
    error: failed retrieving file 'community.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    error: failed retrieving file 'community.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    error: failed retrieving file 'community.db' from [url=ftp://ftp.jaist.ac.jp]ftp.jaist.ac.jp[/url] : The requested URL returned error: 407
    error: failed retrieving file 'community.db' from [url=ftp://ftp.jaist.ac.jp]ftp.jaist.ac.jp[/url] : The requested URL returned error: 407
    error: failed retrieving file 'community.db' from mirror.yongbok.net : The requested URL returned error: 407
    error: failed retrieving file 'community.db' from mirror.yongbok.net : The requested URL returned error: 407
    error: failed to update community (download library error)
    error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : The requested URL returned error: 407
    error: failed to update archlinuxfr (download library error)
    error: failed to synchronize any databases
    error: failed to init transaction (download library error)
    Last edited by ebshankar (2012-02-19 08:08:59)

    hokasch wrote:
    What did you update? Are you using a proxy?
    You can try pacman -Syy --debug which will show the actual url it tries to access. When posting console output, please use the code tags.
    I tried to upgrade the system.
    I don't use a proxy. My isp uses authentication from the browser, when the browser is authenticated with the username and password, the whole system will be connected to the internet as long as the authentication page is open.
    Here is the output of "pacman -Syy --debug":
    debug: parseconfig: options pass
    debug: config: attempting to read file /etc/pacman.conf
    debug: config: finish section '(null)'
    debug: config: new section 'options'
    debug: config: HoldPkg: pacman
    debug: config: HoldPkg: glibc
    debug: config: SyncFirst: pacman
    debug: config: arch: x86_64
    debug: config: SigLevel: Never
    debug: config: finish section 'options'
    debug: config: new section 'core'
    debug: config file /etc/pacman.conf, line 81: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'core'
    debug: config: new section 'extra'
    debug: config file /etc/pacman.conf, line 85: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'extra'
    debug: config: new section 'community'
    debug: config file /etc/pacman.conf, line 93: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'community'
    debug: config: new section 'archlinuxfr'
    debug: config: finish section 'archlinuxfr'
    debug: config: finished parsing /etc/pacman.conf
    debug: setup_libalpm called
    debug: option 'logfile' = /var/log/pacman.log
    debug: option 'gpgdir' = /etc/pacman.d/gnupg/
    debug: option 'cachedir' = /var/cache/pacman/pkg/
    debug: parseconfig: repo pass
    debug: config: attempting to read file /etc/pacman.conf
    debug: config: finish section '(null)'
    debug: config: new section 'options'
    debug: config: finish section 'options'
    debug: config: new section 'core'
    debug: config file /etc/pacman.conf, line 81: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'core'
    debug: registering sync database 'core'
    debug: database path for tree core set to /var/lib/pacman/sync/core.db
    debug: adding new server URL to database 'core': ftp://mirror.cse.iitk.ac.in/archlinux/core/os/x86_64
    debug: adding new server URL to database 'core': http://mirror.cse.iitk.ac.in/archlinux/core/os/x86_64
    debug: adding new server URL to database 'core': ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/x86_64
    debug: adding new server URL to database 'core': http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/x86_64
    debug: adding new server URL to database 'core': ftp://mirror.yongbok.net/archlinux/core/os/x86_64
    debug: adding new server URL to database 'core': http://mirror.yongbok.net/archlinux/core/os/x86_64
    debug: config: new section 'extra'
    debug: config file /etc/pacman.conf, line 85: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'extra'
    debug: registering sync database 'extra'
    debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
    debug: adding new server URL to database 'extra': ftp://mirror.cse.iitk.ac.in/archlinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://mirror.cse.iitk.ac.in/archlinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': ftp://mirror.yongbok.net/archlinux/extra/os/x86_64
    debug: adding new server URL to database 'extra': http://mirror.yongbok.net/archlinux/extra/os/x86_64
    debug: config: new section 'community'
    debug: config file /etc/pacman.conf, line 93: including /etc/pacman.d/mirrorlist
    debug: config: attempting to read file /etc/pacman.d/mirrorlist
    debug: config: finished parsing /etc/pacman.d/mirrorlist
    debug: config: finish section 'community'
    debug: registering sync database 'community'
    debug: database path for tree community set to /var/lib/pacman/sync/community.db
    debug: adding new server URL to database 'community': ftp://mirror.cse.iitk.ac.in/archlinux/community/os/x86_64
    debug: adding new server URL to database 'community': http://mirror.cse.iitk.ac.in/archlinux/community/os/x86_64
    debug: adding new server URL to database 'community': ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/community/os/x86_64
    debug: adding new server URL to database 'community': http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/community/os/x86_64
    debug: adding new server URL to database 'community': ftp://mirror.yongbok.net/archlinux/community/os/x86_64
    debug: adding new server URL to database 'community': http://mirror.yongbok.net/archlinux/community/os/x86_64
    debug: config: new section 'archlinuxfr'
    debug: config: finish section 'archlinuxfr'
    debug: registering sync database 'archlinuxfr'
    debug: database path for tree archlinuxfr set to /var/lib/pacman/sync/archlinuxfr.db
    debug: adding new server URL to database 'archlinuxfr': http://repo.archlinux.fr/x86_64
    debug: config: finished parsing /etc/pacman.conf
    :: Synchronizing package databases...
    debug: url: ftp://mirror.cse.iitk.ac.in/archlinux/core/os/x86_64/core.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'core.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    debug: url: http://mirror.cse.iitk.ac.in/archlinux/core/os/x86_64/core.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'core.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    debug: url: ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/x86_64/core.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'core.db' from ftp.jaist.ac.jp : The requested URL returned error: 407
    debug: url: http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/core/os/x86_64/core.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'core.db' from ftp.jaist.ac.jp : The requested URL returned error: 407
    debug: url: ftp://mirror.yongbok.net/archlinux/core/os/x86_64/core.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'core.db' from mirror.yongbok.net : The requested URL returned error: 407
    debug: url: http://mirror.yongbok.net/archlinux/core/os/x86_64/core.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/core.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'core.db' from mirror.yongbok.net : The requested URL returned error: 407
    debug: failed to sync db: download library error
    error: failed to update core (download library error)
    debug: url: ftp://mirror.cse.iitk.ac.in/archlinux/extra/os/x86_64/extra.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'extra.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    debug: url: http://mirror.cse.iitk.ac.in/archlinux/extra/os/x86_64/extra.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'extra.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    debug: url: ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/extra/os/x86_64/extra.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'extra.db' from ftp.jaist.ac.jp : The requested URL returned error: 407
    debug: url: http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/extra/os/x86_64/extra.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'extra.db' from ftp.jaist.ac.jp : The requested URL returned error: 407
    debug: url: ftp://mirror.yongbok.net/archlinux/extra/os/x86_64/extra.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'extra.db' from mirror.yongbok.net : The requested URL returned error: 407
    debug: url: http://mirror.yongbok.net/archlinux/extra/os/x86_64/extra.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/extra.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'extra.db' from mirror.yongbok.net : The requested URL returned error: 407
    debug: failed to sync db: download library error
    error: failed to update extra (download library error)
    debug: url: ftp://mirror.cse.iitk.ac.in/archlinux/community/os/x86_64/community.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'community.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    debug: url: http://mirror.cse.iitk.ac.in/archlinux/community/os/x86_64/community.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'community.db' from mirror.cse.iitk.ac.in : The requested URL returned error: 403
    debug: url: ftp://ftp.jaist.ac.jp/pub/Linux/ArchLinux/community/os/x86_64/community.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'community.db' from ftp.jaist.ac.jp : The requested URL returned error: 407
    debug: url: http://ftp.jaist.ac.jp/pub/Linux/ArchLinux/community/os/x86_64/community.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'community.db' from ftp.jaist.ac.jp : The requested URL returned error: 407
    debug: url: ftp://mirror.yongbok.net/archlinux/community/os/x86_64/community.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'community.db' from mirror.yongbok.net : The requested URL returned error: 407
    debug: url: http://mirror.yongbok.net/archlinux/community/os/x86_64/community.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/community.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'community.db' from mirror.yongbok.net : The requested URL returned error: 407
    debug: failed to sync db: download library error
    error: failed to update community (download library error)
    debug: url: http://repo.archlinux.fr/x86_64/archlinuxfr.db
    debug: maxsize: 26214400
    debug: opened tempfile for download: /var/lib/pacman/sync/archlinuxfr.db.part (wb)
    debug: curl returned error 22 from transfer
    error: failed retrieving file 'archlinuxfr.db' from repo.archlinux.fr : The requested URL returned error: 407
    debug: failed to sync db: download library error
    error: failed to update archlinuxfr (download library error)
    error: failed to synchronize any databases
    error: failed to init transaction (download library error)
    debug: unregistering database 'local'
    debug: unregistering database 'core'
    debug: unregistering database 'extra'
    debug: unregistering database 'community'
    debug: unregistering database 'archlinuxfr'
    Last edited by ebshankar (2012-02-18 14:18:30)

  • [SOLVED] The requested URL returned error: 403 Forbidden

    Hi guys
    (sory for my english
    I have a problem with packer -Syu
    the output:
    Proceed with installation? [Y/n] y
    Edit openbox-menu PKGBUILD with $EDITOR? [Y/n] n
    ==> Making package: openbox-menu 0.3.6.8-1 (Tue Feb 12 15:52:19 UTC 2013)
    ==> Checking runtime dependencies...
    ==> Checking buildtime dependencies...
    ==> Retrieving Sources...
      -> Downloading openbox-menu-0.3.6.8.tar.bz2...
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
      0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
    curl: (22) The requested URL returned error: 403 Forbidden
    ==> ERROR: Failure while downloading openbox-menu-0.3.6.8.tar.bz2
        Aborting...
    The build failed.
    for full detials:
    http://pastebin.com/Acq0uY78
    iam try another mirrors... but i get same problen
    i install tor (for use tsocks or torify) but its dont work in my country
    HELP ME PLZ
    thanks
    Last edited by tareef (2013-02-14 19:39:07)

    It's http://mimarchlinux.googlecode.com/file … .8.tar.bz2, just as the PKGBUILD says.
    Edit:
    If something is broken, you should ask on the AUR page for the maintainer to fix the PKGBUILD https://aur.archlinux.org/packages/openbox-menu/, but the PKGBUILD worked for me.
    tareef wrote:
    for full detials:
    http://pastebin.com/Acq0uY78
    iam try another mirrors... but i get same problen
    i install tor (for use tsocks or torify) but its dont work in my country
    openbox-menu is from the AUR and not from the repos, so changing mirrors won't do anything here. You might want to read on what AUR is and deal with the issues with the signatures first.
    Last edited by karol (2013-02-13 00:10:04)

  • Uln-yum-mirror [Errno 14] PYCURL ERROR 22 - The requested URL returned error: 416

    Server is running Oracle Linux 6.5 and can receive updates from ULN without issue, I could easily upgrade the local servers version of Bash.  The problem I am having is that the server is the local yum server however it is not downloading updates when I run /usr/bin/uln-yum-mirror I am receiving the errors below
    [root@cr-svc-orayum1 yum]# cat /etc/oracle-release
    Oracle Linux Server release 6.5
    [root@cr-svc-orayum1 yum]# yum repolist
    Loaded plugins: refresh-packagekit, rhnplugin, security
    This system is receiving updates from ULN.
    ol6_x86_64_UEKR3_latest/primary                                                                                                       | 8.5 MB     00:21
    ol6_x86_64_UEKR3_latest                                                                                                                              234/234
    ol6_x86_64_latest/primary                                                                                                             |  41 MB     01:46
    ol6_x86_64_latest                                                                                                                                26159/26159
    repo id                                          repo name                                                                                             status
    ol6_x86_64_UEKR3_latest                          Unbreakable Enterprise Kernel Release 3 for Oracle Linux 6 (x86_64) - Latest                             234
    ol6_x86_64_latest                                Oracle Linux 6 Latest (x86_64)                                                                        26,159
    repolist: 26,393
    [root@cr-svc-orayum1 yum]# yum clean all
    Loaded plugins: refresh-packagekit, rhnplugin, security
    Cleaning repos: ol5_x86_64_UEK_base ol5_x86_64_ksplice ol5_x86_64_latest ol6_x86_64_UEKR3_latest ol6_x86_64_latest
    Cleaning up Everything
    [root@cr-svc-orayum1 yum]#
    [root@cr-svc-orayum1 yum]# /usr/bin/uln-yum-mirror
    ## BEGIN PROCESSING ol5_x86_64_ksplice ##
    Channel Dir: /var/www/html/yum/OracleLinux/OL5/ksplice/x86_64
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is receiving updates from ULN.
    Saving Primary metadata
    Saving file lists metadata
    Saving other metadata
    Generating sqlite DBs
    Sqlite DBs complete
    Wrote: /var/www/html/yum/OracleLinux/OL5/ksplice/x86_64/repodata/updateinfo.xml.gz
               type = updateinfo
           location = repodata/updateinfo.xml.gz
           checksum = bd8daef04c28ee5907c0482c5a55e5fdb2c56fae
          timestamp = 1412066205.18
      open-checksum = cd80d41782f6770822485ade46f1a8bf75cfa20b
    Wrote: /var/www/html/yum/OracleLinux/OL5/ksplice/x86_64/repodata/repomd.xml
    ## END PROCESSING ol5_x86_64_ksplice ##
    ## BEGIN PROCESSING ol5_x86_64_latest ##
    Channel Dir: /var/www/html/yum/OracleLinux/OL5/latest/x86_64
    Loaded plugins: refresh-packagekit, rhnplugin
    This system is receiving updates from ULN.
    Could not retrieve package alsa-lib-devel-1.0.17-1.el5.i386. Error was failed to retrieve getPackage/alsa-lib-devel-1.0.17-1.el5.i386.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package alsa-lib-devel-1.0.17-1.el5.x86_64. Error was failed to retrieve getPackage/alsa-lib-devel-1.0.17-1.el5.x86_64.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package alsa-utils-1.0.17-7.el5.x86_64. Error was failed to retrieve getPackage/alsa-utils-1.0.17-7.el5.x86_64.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package 5:am-utils-6.1.5-9.el5_10.x86_64. Error was failed to retrieve getPackage/am-utils-6.1.5-9.el5_10.x86_64.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package amanda-devel-2.5.0p2-9.el5.i386. Error was failed to retrieve getPackage/amanda-devel-2.5.0p2-9.el5.i386.rpm from ol5_x86_64_latest
    error was [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 416 Requested Range Not Satisfiable"
    Could not retrieve package amanda-server-2.5.0p2-9.el5.x86_64. Error was failed to retrieve getPackage/amanda-server-2.5.0p2-9.el5.x86_64.rpm from ol5_x86_64_latest

    First, you need to upgrade to the latest version of uln-yum-mirror to avoid these errors in future. The latest version has mitigation tools to remove RPMs that fail GPG checking.
    In this instance, you need to manually delete the RPMs that pyCURL can't download. Once you delete all the RPMs, the next run of uln-yum-mirror will download them fresh and recreate the yum metadata locally.

  • Pacman -S usb_modeswitch URL returned error: 404

    Hi, I have a raspberrypi board with archlinux
    I'm trying to install usb_modeswitch with no success
    [root@alarmpi ~]# pacman -Ss usb_modeswitch
    community/usb_modeswitch 1.2.3-1
        Activating switchable USB devices on Linux.
    First search for package ok
    Than resource not found...
    [root@alarmpi ~]# pacman -S usb_modeswitch
    resolving dependencies...
    looking for inter-conflicts...
    Targets (2): tcl-8.5.11-1  usb_modeswitch-1.2.3-1
    Total Download Size:    0.04 MiB
    Total Installed Size:   6.80 MiB
    Proceed with installation? [Y/n] y
    :: Retrieving packages from community...
    error: failed retrieving file 'usb_modeswitch-1.2.3-1-arm.pkg.tar.xz' from mirror.archlinuxarm.org : The requested URL returned error: 404
    warning: failed to retrieve some files from community
    error: failed to commit transaction (download library error)
    Errors occurred, no packages were upgraded.
    Any thing wrong?
    Regards

    Always use -Suy when installing packages, the current version is 1.2.3-2
    Also we do not support archlinux-arm, it is an unofficial port and you should use their forum/irc channel.
    Last edited by Mr.Elendig (2012-07-23 17:58:16)

  • Error when running URL returned by GET_RUN_FUNCTION_URL for form INVIDITM

    Hi All,
    I'm trying to launch form INVIDITM with an URL returned by PL/SQL API FND_RUN_FUNCTION.GET_RUN_FUNCTION_URL. To generate appropriate URL I call GET_RUN_FUNCTION_URL like the following:
    DECLARE
    P_FUNCTION_NAME VARCHAR2(200);
    P_RESP_APPL VARCHAR2(200);
    P_RESP_KEY VARCHAR2(200);
    P_SECURITY_GROUP_KEY VARCHAR2(200);
    P_PARAMETERS VARCHAR2(200);
    P_OVERRIDE_AGENT VARCHAR2(200);
    P_ORG_ID NUMBER;
    P_LANG_CODE VARCHAR2(200);
    P_ENCRYPTPARAMETERS BOOLEAN;
    v_Return VARCHAR2(2000);
    BEGIN
    P_FUNCTION_NAME := 'INV_INVIDITM_ORG';
    P_RESP_APPL := 'MSC';
    P_RESP_KEY := 'MANUFACTURING_SUPER_USER_ASCP';
    P_SECURITY_GROUP_KEY := 'STANDARD';
    P_PARAMETERS := 'org_id=208 item_id=216955';
    P_OVERRIDE_AGENT := NULL;
    P_ORG_ID := NULL;
    P_LANG_CODE := 'US';
    P_ENCRYPTPARAMETERS := NULL;
    v_Return := FND_RUN_FUNCTION.GET_RUN_FUNCTION_URL(
    P_FUNCTION_NAME => P_FUNCTION_NAME,
    P_RESP_APPL => P_RESP_APPL,
    P_RESP_KEY => P_RESP_KEY,
    P_SECURITY_GROUP_KEY => P_SECURITY_GROUP_KEY,
    P_PARAMETERS => P_PARAMETERS,
    P_OVERRIDE_AGENT => P_OVERRIDE_AGENT,
    P_ORG_ID => P_ORG_ID,
    P_LANG_CODE => P_LANG_CODE,
    P_ENCRYPTPARAMETERS => P_ENCRYPTPARAMETERS
    DBMS_OUTPUT.PUT_LINE('v_Return = ' || v_Return);
    END;
    With this I get an URL like:
    http://<hostname>:<port>/OA_HTML/RF.jsp?function_id=1192&resp_id=56233&resp_appl_id=724&security_group_id=0&lang_code=US&params2=org_id%3D208%20item_id%3D216955
    Running this URL, I get the error message:
    "APP-FND-01016: Routine FDFRKS: Unknown structure ID for flexfield code GL number with application ID 101"
    Can anybody tell me how to fix this, or if I missed specifying any more parameters in P_PARAMETERS?
    Any help is highly appreciated...
    Thanks and Regards
    Carolin

    Hi,
    I got some help for this problem from Oracle support community: Setting paramter CHART_OF_ACCOUNTS_ID.
    This seems to solve the problem. I don't get the error message any more, when setting the following:
    P_PARAMETERS := 'org_mode=N chart_of_accounts_id=101 org_id=208 org_code=S1 item_id=216955';
    Nevertheless, I still have problems with getting the correct parameter settings for form BOMFDBOM (form functions: BOM_BOMFDBOM, ENG_BOMFDBOM):
    1. Trying to display a BOM with a specified alternate (e.g. EBOM) doesn't work. I pass the following parameter values to funtion GET_RUN_FUNCTION_URL:
    P_FUNCTION_NAME := 'BOM_BOMFDBOM';
    P_RESP_APPL := 'MSC';
    P_RESP_KEY := 'MANUFACTURING_SUPER_USER_ASCP';
    P_SECURITY_GROUP_KEY := 'STANDARD';
    P_PARAMETERS := 'org_id=204 item_id=240996 zoom_org_id=204 zoom_item_id=240996 zoom_flag=Y zoom_alternate=EBOM current_rec=1 item_rev=A';
    P_OVERRIDE_AGENT := NULL;
    P_ORG_ID := NULL;
    P_LANG_CODE := 'US';
    P_ENCRYPTPARAMETERS := NULL;
    The returned URL doesn't behave as expected: Though the form for respective alternate is displayed, the alternate field is empty and it isn't possible to select any field on the form, as following error message is displayed:
    "APP-BOM-20087: This bill already exists. Please enter another alternate to create an alternate bill, or use Query Find to find an existing bill."
    2. Trying to set query only mode for this form alway displays an empty "Find Bills" form, instead of the specified BOM in query only mode. I try to set this mode by the following:
    P_PARAMETERS := 'org_id=204 item_id=240996 zoom_org_id=204 zoom_item_id=240996 zoom_flag=Y zoom_alternate=EBOM current_rec=1 item_rev=A query_only=YES';
    Please, can anybody help me with this...
    Thanks & Regards
    Carolin

  • Autodiscover insecure redirection error

    Hi
    Please excuse me here, I am very basic with Exchange 2013 or any Exchange for that matter.
    We have a SharePoint Server, which has Exchange Integration, and are experiencing some error when trying to sync calendar bits to Outlook. The error is as follows;
    AutodiscoverLocalException: Autodiscover blocked a potentially insecure redirection to https://server.domain.local/autodiscover/autodiscover.xml. To allow Autodiscover to follow the redirection, use the AutodiscoverUrl(string, AutodiscoverRedirectionUrlValidationCallback)
    overload.
    I guess my question is, how do I make it allow the redirection? I don't know coding or APIs or anything too well, so any steps would be GREATLY recieved!

    Hi,
    Please try to explore the Autodiscover URL (https://server.domain.local/autodiscover/autodiscover.xml) via IE to check whether it returns code 600.
    If not, please paste the detailed code and message without sensitive message for the further troubleshooting.
    I noticed that you have self-signed certificates installed on your test environment. Please make sure all apps on your environment have installed the self-signed certificate. If you want to communicate externally/Internet, certificate issued from Public
    CA is required. 
    Please try to check whether you have configured redirection.
    Also found an FAQ on Autodiscover for your reference:
    https://social.technet.microsoft.com/Forums/office/en-US/54bc6b17-9b60-46a4-9dad-584836d15a02/troubleshooting-and-introduction-for-exchange-20072010-autodiscover-details-about-test-email?forum=exchangesvrgeneral 
    Thanks

  • Please help with SSL POST: Servlet returns Error 500

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

    I am struggling for many days to get a Java program to log in to an SSL page. The program is supposed to track ADSL usage statistics from https://secure.telkomsa.net/titracker/, but I never seem to get around Server returned Error 500.
    Could anyone please help me understand what I am doing wrong by looking at the method I used. (It seems on the server side it is a jsp servlet that handles authentication).
    Any help is deeply appreciated!
    I copy-paste the method directly from NetBeans:
    CODE>
    void connectHTTPS(String url){
    try {
    URL page = new URL(url); // login page necessary to get a jsp session cookie
    //------------ SET UP SSL - is it right?
    System.setProperty("java.protocol.handler.pkgs",
    "com.sun.net.ssl.internal.www.protocol");
    try {
    //if we have the JSSE provider available,
    //and it has not already been
    //set, add it as a new provide to the Security class.
    final Class clsFactory = Class.forName("com.sun.net.ssl.internal.ssl.Provider");
    if( (null != clsFactory) && (null == Security.getProvider("SunJSSE")) )
    Security.addProvider((Provider)clsFactory.newInstance());
    } catch( ClassNotFoundException cfe ) {
    throw new Exception("Unable to load the JSSE SSL stream handler." +
    "Check classpath." + cfe.toString());
    URLConnection urlc = page.openConnection();
    urlc.setDoInput(true);
    *Get the session id cookie set by the TelkomInternet java server
    String cookie = urlc.getHeaderField("Set-Cookie");
    //textpane.setText(totextpane);
    textpane.setText(cookie);
    //---------------- form an auth request and post it with the cookie
    String postdata =URLEncoder.encode("ID_Field","UTF-8")+"="+URLEncoder.encode("myusrname","UTF-8")+"&"+URLEncoder.encode("PW_Field","UTF-8")+"="+URLEncoder.encode("mypwd","UTF-8")+"&"+URLEncoder.encode("confirm","UTF-8")+"="+URLEncoder.encode("false","UTF-8");
    // set the servlet that handles authentication as target
    URL page2 = new URL("https://secure.telkomsa.net/titracker/servlet/LoginServlet");
    // cast to httpConn to enable setRequestMethod()
    HttpURLConnection urlc2 = (HttpURLConnection)page2.openConnection();
    // formulate request with POST data urlc2.setRequestProperty("Content-Type","application/x-www-form-urlencoded");
    urlc2.setRequestMethod("POST"); // experimental
    urlc2.setRequestProperty("Content-Length",""+postdata.length());
    urlc2.setRequestProperty("User-Agent","Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)");
    urlc2.setRequestProperty("Accept-Language","en-us");
    urlc2.setUseCaches(false);
    urlc2.setDoOutput(true);
    urlc2.setDoInput(true);
    urlc2.setFollowRedirects(true); // ??
    //send cookies
    urlc2.setRequestProperty("Set-Cookie", cookie); // or "Cookie" - doesn't work either
    //write other data
    PrintWriter out = new PrintWriter(urlc2.getOutputStream());
    out.print(postdata); // username and password here
    out.flush();
    out.close();
    //---------------- get the authenticated page with real ADSL statistics
    BufferedReader br = new BufferedReader(new InputStreamReader(urlc2.getInputStream()));
    String totextpane = "";
    String buffer = "";
    while (buffer != null) {
    try {
    totextpane = totextpane + "\n" + buffer;
    buffer = br.readLine();
    } catch (IOException ioe) {
    ioe.printStackTrace();
    break;
    textpane.setText(totextpane);
    } catch (Exception ex) {
    System.err.println(ex.getMessage());
    ---- END CODE---
    Thank you very much for any attempt at helping with this problem!

  • XI MessageServlet return Error 403

    Hi all,
    after patching our XI installation to SP13 I can't access the MessageServlet anymore. Each call to the MessageServlet URL return HTTP error code 403.
    I've used the component monitoring and the adapter engine and the SOAP adapter seem to be running fine. Furthermore I executed RSXMB_ACTIVATE_ICF_SERVICES. All services a running but I still cant get excess to the message servlet.
    Any ideas?
    Thanks,
    Christian
    ps.: I also checked the user roles of user XIISUSER and XIAFUSER and both seem to be fine.

    Hi,
    >>>I checked if the service is running and it is
    Have you checked this in TCODE SICF or SMICM.
    If you have not checked it in Trensaction CODE SICF then
    check as below.
    Check in TCode SICF .Engine service is active or not.
    Defaulthost->sap->XI->Engine.
    Double click the engine and check whether it displays staus as active or not.
    Activate ur service if it is not active
    Thanx.
    Rekha.

  • SQL code returns error

    I'm trying to retrieve data from two different databases in the same server, the code return error. please help me.
    select a.segment3, b.descr, b.leader, a.Sum(period_activity_a) from payman.dbo.snp_op_detail a
    inner join hrman.dbo.organisation_t b
    on a.segment3 = b.org_member_id
    where a.segment3 between 4000 and 5999 and
    a.segment2 != 6651 and
    a.segment2 between 5400 and 8999 and
    a.period_name in ('JAN-11', 'FEB-11', 'MAR-11', 'APR-11', 'MAY-11', 'JUN-11', 'JUL-11', 'AUG-11', 'SEP-11','OCT-11','NOV-11')
    group by rollup (a.segment3,b.descr);
    Edited by: OlaTunde on 19-Jan-2012 01:13

    Please, whenever you post a question stating "the code return error", then post the complete error stack you get. How can we help if we do not know what error?
    Your syntax for accessing other databases looks like MS/SQL syntax to me? That will not work in Oracle. You need a [url http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_5005.htm#i2061505]database link.
    When you have the database link, you access data from the other database using something like:
    select column_names from schema_name.table_name@dblink_name;(I assume it is two Oracle databases you wish to get data from - otherwise you need to look into heterogenous gateway ;-) )

  • Returning Errors from a webservice using XMLBeans

    I have a webservice that accepts XML as input and output parameters, and I'm using XMLBeans to handle this. I'm trying to work out how I can return error information from the webservice, so I created an Exception.xsd schema and 'include' it in the output XML Schema, so an exception xml element is valid in the output schema. The problem is, the XMLBean class generated from the output XML schema has no methods that allow me to create an Exception element. Is there some other way of handling the return of exceptions from webservices using XML?

    The answer is just throw a SoapFaultException and put the exception.xsd XMLBean in the FaultDetail section of the SoapFaultException.

  • Bug Report - DB toolkit returns error when calling the DefaultDatabase property with SQLite

    There's an old bug in the DB toolkit where calling the DefaultDatabase property returns error -2147217887 if you're using certain DBs (such as SQLite or PostgreSQL and I believe MySQL as well).
    The problem is that this property is called by a VI which is used in some of the commonly used VIs (such as the insert VI),
    causing them to fail. Whoever wrote the code was aware of this issue,
    since they added a comment about it, as you can see below.
    The immediate fix for this is pretty easy -  add code to ignore the error or don't call the property at all. It's not used anywhere in the toolkit and unless you're using the VI yourself to get the property, this won't break any code. The problem with this is that you need to do this in every PC.
    NI already has a CAR for this (CAR 232063) and should hopefully fix it, so there's no need to take further action at the moment. This post is for people searching for this in the future.
    Try to take over the world!

    Interesting. I have seen this before but it returned a different error code. (Error -2147352567)
    =====================
    LabVIEW 2012

  • After upgrading to Lion the bookmarks in Preview returns error message.

    After upgrading to Lion the bookmarks in Preview returns error message : The File "****" couldn't be opened because you don't have permission to view it. To change the perimssion, select the item in finder and Choose File info.  I have bookmarked plenty of files in Preview.  How to overcome this error message???

    Doesn't work Steve. I think it is an issue with Preview being sandboxed (check the sandbox column in Activity Monitor: Preview = Yes). Sandboxed apps restrict file access to those the user has explicitly selected. My theory is that this causes the unfortunate side effect of bookmarked or linked PDFs not working. A simple test: open a file with bookmarks, manually open the bookmarked file and then select the bookmark in the first file - it should open with no complaints about permissions (which leads to a weak workaround: open all the PDFs you intend to work with!).

  • SSRS expression returns #error value in some cells

    Hello,
    What do you think below expression sometimes return #error value in ssrs.
    =SUM(Fields!X.Value / 100 * DateDiff(DateInterval.Day,Fields!s_date.Value,Fields!e_date.Value)) /
    IIF( SUM(DateDiff(DateInterval.Day,Fields!s_date.Value,Fields!e_date.Value)) = 0
    ,nothing
    ,SUM(DateDiff(DateInterval.Day,Fields!s_date.Value,Fields!e_date.Value))

    Hi,
    Use below expression to overcome the issue:
    =
    IIF( SUM(DateDiff(DateInterval.Day,Fields!s_date.Value,Fields!e_date.Value)) = 0
    , 0
    , SUM(   Fields!X.Value / 100 
    * DateDiff(DateInterval.Day,Fields!s_date.Value,Fields!e_date.Value)
      SUM(DateDiff(DateInterval.Day,Fields!s_date.Value,Fields!e_date.Value)) 
    Thanks, Madhu
    Hi madhu,
    I have value for Month field as 0. I have used MonthName function in the report. So im getting error as #Error
    Expression:
    MONTHNAME(Fields!Month.Value)& " "& Fields!Day.Value &" "&  Fields!Year.Value
    Please help me to resolve the issue.
    Thanks in Advance..
    Regards,
    LuckyAbdul

  • Package Returning Error ORA-06502: PL/SQL: numeric or value error

    Hi,
    I create a package to export to spread sheet .xls, The package work for simple query if i pass the query to package.
    There is no error in package please create the package and do the following as mentioned below
    create or replace
    PACKAGE export_pkg_spread_sheet
    AS
    procedure download_excel(vsql in clob );
    PROCEDURE excel_header(p_header in out nocopy clob);
    procedure excel_content(p_content in out nocopy clob,
    vsql in clob );
    procedure excel_footer(p_footer in out nocopy clob);
    procedure get_usable_sql (p_sql_in IN clob,
    p_sql_out OUT clob);
    END export_pkg_spread_sheet;
    create or replace
    PACKAGE body export_pkg_spread_sheet
    AS
    PROCEDURE excel_header (p_header IN OUT nocopy CLOB)
    AS
    BEGIN
    p_header := '<html><body>';
    END;
    procedure download_excel( vsql in clob )
    as
    p_header clob;
    p_footer clob;
    p_content clob;
    begin
    owa_util.mime_header( 'application/octet', FALSE );
    htp.p('Content-Disposition: attachment; filename="report.xls"');
    owa_util.http_header_close;
    excel_header( p_header);
    excel_content(p_content,vsql);
    excel_footer(p_footer);
    dbms_output.put_line(p_header ||p_content|| p_footer);
    HTP.PRN( p_header ||p_content|| p_footer);
    htmldb_application.g_unrecoverable_error := true;
    end;
    procedure excel_content(p_content in out nocopy clob,
    vsql in clob)
    as
    p_sql_stmt clob;
    cur PLS_INTEGER := DBMS_SQL.OPEN_CURSOR;
    cols DBMS_SQL.DESC_TAB;
    ncols PLS_INTEGER;
    TYPE varColumn     IS TABLE OF varchar2(32000);
    vtab varColumn;
    v_column_count     NUMBER     DEFAULT 0;
    v_status      INTEGER;
    BEGIN
    htp.prn('am here');
    /* SELECT region_source into p_sql_stmt
    FROM apex_application_page_regions
    WHERE region_id = p_region_id AND
    page_id = p_page_id AND
    application_id = p_app_id; */
    get_usable_sql (vsql,p_sql_stmt);
    p_content := p_sql_stmt;
    -- Parse the query.
    DBMS_SQL.PARSE(cur, p_sql_stmt , DBMS_SQL.NATIVE);
    -- Retrieve column information
    DBMS_SQL.DESCRIBE_COLUMNS (cur, ncols, cols);
    -- Display each of the column names
    p_content := '<table> <tr>';
    FOR colind IN 1 .. ncols
    LOOP
    p_content := p_content || '<td>' || cols(colind).col_name || '</td>';
    END LOOP;
    p_content := p_content || '</tr>';
    vtab := varColumn(null);
    for i in 1..ncols
    loop
    vtab.extend;
    DBMS_SQL.DEFINE_COLUMN (cur, i, vtab(i), 2000);
    --dbms_output.put_line(vtab(i));
    end loop;
    v_status := DBMS_SQL.EXECUTE (cur);
    LOOP
    p_content := p_content || '<tr>';
    EXIT WHEN (DBMS_SQL.FETCH_ROWS (cur) <= 0);
    FOR i IN 1 ..ncols
    loop
    DBMS_SQL.COLUMN_VALUE (cur, i, vtab(i));
    -- p_content := p_content || '<td>' || 'xyz' || '</td>';
    p_content := p_content || '<td>' || vtab(i) || '</td>';
    END LOOP;
    p_content := p_content || '</tr>' ;
    END LOOP;
    p_content := p_content || '<table>' ;
    DBMS_SQL.CLOSE_CURSOR (cur);
    exception
    when others then
         p_content := '<td>Exception Error in printing data</td><table>' ;
    DBMS_SQL.CLOSE_CURSOR (cur);
    end;
    procedure excel_footer( p_footer in out nocopy clob)
    as
    begin
    p_footer := '</body></html>';
    end;
    PROCEDURE get_usable_sql (p_sql_in IN clob, p_sql_out OUT clob)
    IS
    v_sql clob;
    v_names DBMS_SQL.varchar2_table;
    v_pos NUMBER;
    v_length NUMBER;
    v_exit NUMBER;
    BEGIN
    v_sql := p_sql_in;
    v_names := wwv_flow_utilities.get_binds (v_sql);
    FOR i IN 1 .. v_names.COUNT
    LOOP
    <<do_it_again>>
    v_pos := INSTR (LOWER (v_sql), LOWER (v_names (i)));
    v_length := LENGTH (LOWER (v_names (i)));
    v_sql :=
    SUBSTR (v_sql, 1, v_pos - 1)
    || v_names (i)
    || SUBSTR (v_sql, v_pos + v_length);
    v_sql :=
    REPLACE (v_sql,
    UPPER (v_names (i)),
    '(SELECT v('''
    || LTRIM (v_names (i), ':')
    || ''') FROM DUAL)'
    IF INSTR (LOWER (v_sql), LOWER (v_names (i))) > 0
    THEN
    GOTO do_it_again;
    END IF;
    END LOOP;
    p_sql_out := v_sql;
    END;
    END export_pkg_spread_sheet;
    After creating the package pass the parameter to package like this
    begin
    export_pkg_spread_sheet.download_excel('select * from emp');
    end;
    Package will allow to download the spread shreet. If i try to pass the a complex query to package it is returning error as mentioned below
    ORA-06502: PL/SQL: numeric or value error
    In the above package there is a procedure called procedure excel_content which actuall prints the data in the spread sheet this is where the error is coming from there is a variable called vsql have declared it as clob to hold large string but still i am getting the same error when trying to pass a big string.
    Please check the error and let me know.
    Thanks
    Sudhir

    Hi Praveen,
    This is the query i am using to pass
    Declare
    qry clob;
    Begin
    qry := ' 'SELECT
    AR.REGION_CODE,
    AR.DISTRICT_CODE,
    AR.TERRITORY_CODE,
    CASE
    WHEN AR.REGION_NAME IS NOT NULL AND AR.DISTRICT_NAME IS NULL AND AR.TERRITORY_NAME IS NULL THEN
    AR.REGION_NAME
    WHEN AR.REGION_NAME IS NOT NULL AND AR.DISTRICT_NAME IS NOT NULL AND AR.TERRITORY_NAME IS NULL THEN
    AR.DISTRICT_NAME
    WHEN AR.REGION_NAME IS NOT NULL AND AR.DISTRICT_NAME IS NOT NULL AND AR.TERRITORY_NAME IS NOT NULL THEN
    AR.TERRITORY_NAME
    END TERR_NAME,
    AR.EMPLOYEE_ID,
    AR.LAST_NAME,
    AR.FIRST_NAME,
    AR.GENDER,
    AR.DATE_OF_HIRE,
    AR.PROJECT_EMPLOYEE_TITLE_ID,
    AR.COMPANY_ID,
    AR.CUSTOMER_EMAIL,
    AR.BUSINESS_EMAIL,
    AR.CUSTOMER_VOICEMAIL,
    AR.CUSTOMER_VOICEMAIL_EXT,
    AR.QUINTILES_VOICEMAIL,
    AR.QUINTILES_VOICEMAIL_EXT , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_1(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_ADDRESS_TYPE_1" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_2(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_ADDRESS_TYPE_2" , complete_roster_pkg_report.AR_F_ADDRESS_GET_PHONE(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_Phone" , complete_roster_pkg_report.AR_F_ADDRESS_GET_CITY_TOWN(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_City_Town" , complete_roster_pkg_report.AR_F_ADDRESS_GET_COUNTRY_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_Country_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_STATE_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_State_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_ZIP_POSTAL(AR.PROJECT_ID,AR.EMPLOYEE_ID,1 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Shipping_ZipCode" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_1(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_ADDRESS_TYPE_1" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_2(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_ADDRESS_TYPE_2" , complete_roster_pkg_report.AR_F_ADDRESS_GET_PHONE(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_Phone" , complete_roster_pkg_report.AR_F_ADDRESS_GET_CITY_TOWN(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_City_Town" , complete_roster_pkg_report.AR_F_ADDRESS_GET_COUNTRY_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_Country_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_STATE_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_State_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_ZIP_POSTAL(AR.PROJECT_ID,AR.EMPLOYEE_ID,3 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Storage_ZipCode" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_1(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_ADDRESS_TYPE_1" , complete_roster_pkg_report.AR_F_ADDRESS_GET_LINE_2(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_ADDRESS_TYPE_2" , complete_roster_pkg_report.AR_F_ADDRESS_GET_PHONE(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_Phone" , complete_roster_pkg_report.AR_F_ADDRESS_GET_CITY_TOWN(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_City_Town" , complete_roster_pkg_report.AR_F_ADDRESS_GET_COUNTRY_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_Country_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_STATE_NAME(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_State_Name" , complete_roster_pkg_report.AR_F_ADDRESS_GET_ZIP_POSTAL(AR.PROJECT_ID,AR.EMPLOYEE_ID,4 ,TO_DATE(AAH.EFFECTIVE_DATE)) "Home_ZipCode" FROM AR_V_ROSTER AR
    LEFT JOIN AR_V_ADDRESS_HISTORY AAH
    ON
    (AR.PROJECT_ID = AAH.PROJECT_ID AND
    AR.EMPLOYEE_ID = AAH.EMPLOYEE_ID)
    WHERE
    UPPER(AR.USER_EMPLOYEE_ID) = ''Q766730'' AND
    AR.PROJECT_ID = 81 ';
    export_pkg_spread_sheet.download_excel(qry);
    End;
    Praveen you can pass your DB table query to check the error. I am trying to pass as mentioned above.
    Please let me know if my question is not clear.
    Thanks
    Sudhir

Maybe you are looking for

  • Error while sending the email notifcation

    Hi All I am getting this error while sending the email notifcation.If any one of you have any idea regarding this please suggest [2012-09-12T03:55:41.288-10:00] [soa_server1] [ERROR] [SDP-26102] [oracle.sdp.messaging.driver.email] [tid: [ACTIVE].Exec

  • Toshiba vga output to lg vga input flashing issue

    I did a vga output from my toshiba satellite L355D-S7901 to my LG tv and it works fine for the most part, but I have periodic flashing on the tv when I'm watching video or anything else. How can I correct this issue?

  • Doubt in setting values-- very urgent - please!

    hai, i am creating a java bean .. public void setTitle_cont(String proj_title_cont[])      for(int i=0;i<3;i=i+1)      this.proj_title_cont[i] = proj_title_cont; public String getTitle_cont() {//error come here - says "missing return statement"      

  • CUSTOM VIP CREATION ERROR

    Hi all, i have tried to define a new VIP on my ORACLE 11gR2 RAC cluster, in order to manage third-party component by using ORACLE Clusterware. I have used the info written on the ORACLE manual "Oracle Clusterware Administration and Deployment Guide E

  • Wave vs Windows Media File sizes

    I installed iTunes on my Windows PC. I have a tune on my PC that is a Windows Media File that is 4626 kb. I imported the tune to iTunes and it converted it to Wave Sound and the file size is now 50,665 kb which is more than ten times bigger than the