Object in URL not valid

Hello,
I hope that someone can help me with my problem:
I have a BSP-Application where I have attachments.
and if I want to show one attachment i most of the time get the error object... in URL not valid.
For example: BSP Exception: Das Objekt 7D49254945056D07E100000080010A92 in der URL /sap(bD1kZSZjPTAzMw==)/bc/bsp/sap/zrdv_benuantr/7D49254945056D07E100000080010A92 ist nicht gültig.
But sometimes (after 10-15 attempts) it works...
The attachments are Excel-Sheets or Word-Dokuments.
in OnInitialization:
IF DO_DOWNLOAD = 'X'.
  CREATE OBJECT CACHED_RESPONSE TYPE CL_HTTP_RESPONSE
  EXPORTING ADD_C_MSG = 1.
  CACHED_RESPONSE->SET_DATA( W_ATTA-ATINH ).
  YWORK = W_ATTA-FCOTY.
  CACHED_RESPONSE->SET_HEADER_FIELD( NAME  =
  IF_HTTP_HEADER_FIELDS=>CONTENT_TYPE
  VALUE = YWORK ).
  CACHED_RESPONSE->SET_STATUS( CODE = 200 REASON = 'OK' ).
  CACHED_RESPONSE->SERVER_CACHE_EXPIRE_REL( EXPIRES_REL = 60 ).
  CALL FUNCTION 'GUID_CREATE'
    IMPORTING
      EV_GUID_32 = GUID.
  CONCATENATE RUNTIME->APPLICATION_URL '/' GUID INTO CACHED_URL.
  CL_HTTP_SERVER=>SERVER_CACHE_UPLOAD( URL      = CACHED_URL
  RESPONSE = CACHED_RESPONSE ).
ENDIF.
Layout:
  if do_download = 'X'.
        window.open('<%= cached_url%>','BV_Anlage_anzeigen');
  endif.
Thanks for your help
Helmut

Hi,
I guess you will find the entry everytime in the server cache, but only in one of the four application servers. So your applications works only in the few cases that the request to the URL is routed to the server where the cache-entry exists.
I don't know if there is a possibility to share the cache between the application servers. You may find further informations in SAP Help: http://help.sap.com/saphelp_nw70/helpdata/en/d7/446f3b19d99b0de10000000a11405a/frameset.htm
Instead of server cache you can also use the response object to provide the attachment:
* set the mime-type and file size in the response
          runtime->server->response->set_header_field(
            name  = 'Content-Type'
            value = value_mime_type ).
          runtime->server->response->set_header_field(
            name  = 'Content-Length'
            value = value_length ).
          runtime->server->response->delete_header_field(
            name = 'Cache-Control' ).
          runtime->server->response->delete_header_field(
            name = 'Expires' ).
*         set response data to be the file content
            concatenate 'attachment; filename=' attachment-name into value.
            runtime->server->response->set_header_field(
                             name  = 'content-disposition'
                             value = value ).
            runtime->server->response->set_data( hex_content ).
          navigation->response_complete( ).
Best regards,
CW

Similar Messages

  • Sir Please Help Me With My Homepage. When I Set My Home Page To About:home It Gives An Error Saying Url Not Valid... Please Tell Me how to Fix this!

    Question
    Sir Please Help Me With My Homepage. When I Set My Home Page To About:home It Gives An Error Saying Url Not Valid... Please Tell Me how to Fix this!

    I'm not seeing a screenshot, so could you please try another time to attach one?
    *http://en.wikipedia.org/wiki/Screenshot
    Use a compressed image type like PNG or JPG to save the screenshot and make sure that you do not exceed the maximum file size (1 MB).
    Make sure that you use the location bar and not the (Google) search bar.
    *http://kb.mozillazine.org/Toolbar_customization
    *https://support.mozilla.org/kb/Back+and+forward+or+other+toolbar+items+are+missing

  • Quicktime - why is my URL not valid

    I uploaded some video to my web page and I wanted to see if I can view it by streaming.  Quicktime warning - URL is not valid.  What does that mean?  I copied the url and pasted it.  Still gave me warning the URL is not valid.

    I uploaded some video to my web page and I wanted to see if I can view it by streaming.  Quicktime warning - URL is not valid.  What does that mean?  I copied the url and pasted it.  Still gave me warning the URL is not valid.
    Not sure if you are referring to content on an RTSP server or simple "Fast Start" content here but did you copy/paste the URL of the web page or the URL of the actual video resource you want opened in the QT Player app?

  • Mozilla firefox canot load default home page. It says " URL not valid or cannot be loaded"

    my version of Mozilla Firefox is 9.01. I have set the my home page to Mozilla's default homepage, which is the Mozilla firefox start page. A pop up came by, saying "URL is not valid and cannot be loaded". I cannot find any info on the support web and had to resolve to this.

    That issue can be caused by a corrupted or incomplete Visual C++ installation (multiple versions can be installed side-by-side; SxS) that is missing some runtime components (Redistributable Package) that Firefox depends on (problem with an embedded manifest file that specifies a specific runtime version).
    You need to install the missing components (e.g. VisualC++ 2005 Redistrbutable).
    * https://www.microsoft.com/download/en/details.aspx?id=5638
    *[[/questions/908165]] The URL is not valid and cannot be loaded
    *[https://bugzilla.mozilla.org/show_bug.cgi?id=713167 bug 713167] - Microsoft.VC80.CRT SideBySide errors, browsercomps.dll ''(fixed in Firefox 12)''

  • Online videos won't play - URL not valid.

    When I try to stream videos online with quicktime there's either a Q with a question mark or an alert that says "The URL is not valid."
    Any ideas about the problem?

    My problem has been solved:
    http://discussions.apple.com/thread.jspa?threadID=1836739&tstart=0

  • URL NOT VALID

    greetings, when wanting to watch sport highlights the box opens, the controls show, play,ff etc but a screen pops up,'the URLis not valid'. Any help available?
    Thanks Duncan.
    All technical replies, please type slowly!

    Please post the website link or URL. Need to know which type of video files you are trying to watch.
    Also, make sure you have the following installed in your comp:
    Flip4Mac
    VLC Media Player
    Perian (AVI and FLV support)

  • PowerShell provider MSFT_ScriptResource failed to execute Test-TargetResource functionality with error message: The expression after '&' in a pipeline element produced an object that was not valid. It must result in a command name, a script block, or a C

    I found this article, and used it, and it seems as though my script resource node items are being properly expanded, and honestly I think it passes through being loaded up, but then when I go to start it, it fails. so let me put up some links with code and
    error messages for you all.
    http://social.technet.microsoft.com/Forums/exchange/en-US/2eb97d67-f1fb-4857-8840-de9c4cb9cae0/dsc-configuration-data-for-script-resources
    Ok, so here is my configuration. The idea is that I need some specific permissions set on a specific registry key on my sql servers. This is so I can do the SQL LowPriv monitoring. I'm just setting one key right now, premise is once this is working I can
    then duplicate that for the remaining keys.
    https://gist.github.com/jeffpatton1971/1bfb19a06782f0975f6e
    When I paste that into the prompt it appears to be perfectly happy
    https://gist.github.com/jeffpatton1971/3aeb568130988a460738
    In fact, the resulting MOF file looks ok to me
    https://gist.github.com/jeffpatton1971/a94858f0c1e9e5612f90
    When I attempt to start the configuration on my local machine, which has the key this is what I get
    https://gist.github.com/jeffpatton1971/82da888bb7aac31ef4ad
    lol...well so it's a different error now, I removed a credential param that I wasn't using, so now i'm left with an & that I can't seem to find anywhere... at any rate...so now my issue has become where is the bad &?I'm going back to the internets
    to see if there is something akin to this error, and i'm open to any questions the most pressing one is why are my scriptblocks all smooshed together? well, early on I was wondering if random whitespace and extra characters were mucking up the waters. I may
    actually dial down the script and see if I can add things until I get the error as well.
    Jeffrey S. Patton Jeffrey S. Patton Systems Specialist, Enterprise Systems University of Kansas 1001 Sunnyside Ave. Lawrence, KS. 66045 (785) 864-0242 | http://patton-tech.com

    I looked at the first link, and it looks like you might be missing quotes around the $Node.ActionAccount part of the comparison, which would cause the script block creation to fail. Maybe change the sections that look like this:
    Where-Object {$_.IdentityReference -eq $Node.ActionAccount}
    to this:
    Where-Object {$_.IdentityReference -eq '$Node.ActionAccount'}
    If you're looking to do permission changes with DSC, I'm actually looking for testers for my
    PowerShellAccessControl module. The 3.0 beta has two DSC resoruces: cAccessControlEntry (lets you make sure an ACE is present or absent) and cSecurityDescriptor (lets you specify an SDDL string for an object). The current cSecurityDescriptor is going to
    be called cSecurityDescriptorSddl in a future release, and a new cSecurityDescriptor is going to be added that lets you control the different sections without using SDDL. If you were to use it, I think you could change your configuration to the following (at
    least for the permission part):
    Configuration SQLLowPrivRegistry {
    param(
    [string[]] $ComputerName = "localhost"
    Import-DscResource -Module PowerShellAccessControl
    Node $ComputerName {
    cAccessControlEntry TopLevelActionAccountPermissions {
    Ensure = "Present"
    Path = "HKLM:\Software\Microsoft\Microsoft SQL Server\"
    ObjectType = "RegistryKey"
    AceType = "AccessAllowed"
    AccessMask = ([System.Security.AccessControl.RegistryRights]::ReadKey)
    Principal = "DOMAIN\SqlDefaultAction_sa"
    What you're doing should work just fine, so I'm not saying you need to use mine. If you do get a chance to look at it, though, please let me know what you think (or if it even works). There are two scripts in the examples folder of the module that demo more
    with the two resources (hopefully that will do until I finalize the documentation).

  • Smartview- Reporting and Analysis URL not valid

    Hello,
    We are currently getting ready to Go Live with Hyperion Planning upgrade to version 11.1.2.2 and have been testing the new smartview version 11.1.2.2.310. Currently within our company, olur security policy does not let the regular User community hit a server name and a specific port. So for years for the general essbase connection we have been using a URL like https://planning.company.com/workspace/SmartViewProviders.
    With that URL I can establish a connection to Essbase and Hyperion Planning (the Forms). However when I try to connect to the Reporting Analysis and Framework, I initally get an error that reads "Cannont connect to the provider. The server name could not be resolved". When I click OK, I am able to see the Financial Reporting Folder structure, see the report names, however not able to run the reports.
    Is there any way to connect through a DNS entry that masks the server name and port??? OR is there a way on the back end to define the path for the Reporting Analysis Frame worksection so we can have it point to our URL instead of the actual server name?
    Any help or suggestions on this would be greatly appreciated!! We are going live with this in a couple in a couple weeks and this feature is something users have been waiting for.
    Thanks!
    Lindsey

    Has it ever worked, have you checked the logs,  have you logged into Oracle Support and had a look the documents available e.g. 1422178.1
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • URL not valid error message

    I have been successfully downloading podcasts for several months now and just a few days ago I clicked on "update" to get my daily dose of podcasts and each one gave me an "!". When I clicked there to see what the problem was, I got the "invalid URL" message. It makes no sense that ALL (a dozen or more) podcasts I get would suddenly have bad URL's and as I verified them, they were not bad. So what's the problem? I can't figure it out. Please help if you can. And thanks.

    I believe I fixed this problem in my iTunes. I literally had to reset all my podcast subscriptions. First checked all the URL's by clicking on the (I) button to the right of the podcast listing. Then I did a search on Google for the podcast and found it and rather than subscribing, I cut and pasted the correct URL for RSS feed into the "Open Stream" window that you can get to through the Advanced menu. Then I ubsubscribed to the current version of the same podcast and downloaded what I wanted. That seems to be working so far in terms of updating them. No "!" marks! Good luck.
    iBook Mac OS X (10.4.4)

  • ICloud Calendar ical URL not valid

    Hello
    I'm using webcal:// url from icloud in order to share my icloud calendar in google agenda. I use https://icaltogcal.com/ as a proxy. For a couple of weeks it does not seem to sync any more.
    I tried several things (recreate, change the proxy etc), without result.
    Then i checked the webcal URL with http://severinghaus.org/projects/icv , told me that the URL was invalid.
    Maybe they changed something ? Does anyone have the same usage and problem ?
    Thanks

    Out of curiosity, can you try the setup of your iCal account again, this time while connected to WiFi, or if on WiFi, turn off the wifi and try the connection only over the mobile network.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Firefox gave me "URL not valid & cannot be loaded" on SOME common sites. Tried clearing cache & cookies; no help. ALSO just checked using IE browser, and it would not load that site. Bank still works; shopping still works... what gives?

    I'm strictly a user; not an IT guy. I can follow directions but need as much specific help as possible - i'm always afraid when i try corrective actions, i'll "break" something else. Need help quick for daughter & me (job hunt).
    Other sites besides one listed gave same problem. But (in this case) ACT.org worked fine...

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")
    >In Firefox 4 Safe mode also disables plugins (Tools > Add-ons > Plugins) and hardware acceleration (Tools > Options > Advanced > General)

  • Anyone having "URL not valid" error from Live Monitor?

    I sent a support email to MSI, but they are on vacation till the 5th.  I was just wondering if anyone else has encountered this issue.  Below is the message to MSI support:
    Quote
    MSI Live Monitor has started to behave strangely.  Yesterday I clicked auto-search and the dialog box came up as normal, I clicked "next," and an error message came up with the heading "LMonitor" and "The url is invalid."  So, I closed it and restarted Live Monitor.  I tried it again and received the same error message.  I uninstalled Live Monitor, (I didn't delete a file Windows stated as shared) and downloaded Live Monitor from the website.  Installed Live Monitor, started it from the installation, and ran auto search. It worked this time. But, I then tried it again, and again, the same error message occured.  I rebooted, and tried auto-serch again--once again, the error message occurred.  Anyway, prior to yesterday it seemed to be working fine. I did a second uninstall, and re-install. Again, it worked one time and the second time the error message occurred

    CCB33,
    I haven't received a response yet, but MSI has only been back since the 6th,  and after that kind of time out I bet they have a lot of emails to answer.  Funny thing about your post on this thread.  Just before I read it, I tried MSI Live Monitor and had the same thing ocurr. So, I uninstalled it, reinstalled it and it worked the first time.  I then crossed my fingers and toes, exited the program, restarted the program, tried auto-search, and IT WORKED!  No error message appeared.  I exited again, and restarted the program -- it worked again. Woohoo! This time after exiting the result window and the program still running, I then tried the auto-search which worked yet again.  It seems it's functioning now.  If I were you I'd uninstall the program and reinstall it again(I downloaded it from the MSI website ( http://www.msi.com.tw/program/products/mainboard/mbd/pro_mbd_liveupdate.php ).  I'll try it again tomorrow and see if it still works.
    Edit: This morning, USA eastern time, I tried it and it worked.  This afternoon I don't get the error but a message stating the server may be busy or no internet connectio. Seems to be working fine now.

  • I use firefox 8 (no update wanted ) and recently my session restore quit functioning properly- it does not restore, and i get " url not valid - session not rest

    ored" - but it seems to do ok if i use file/exit......help, please !

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem.
    *Switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance
    *Do NOT click the Reset button on the Safe Mode start window
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • I frequently get an error message "url not valid" on known good URL's

    This error message comes up frequently even when using bookmarked URL's that have worked in the past. Sometimes closing and relaunching Firefox works, sometimes rebooting is necessary.

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all your extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    You can use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    You have to close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • Quicktime url not valid

    hello: i was using quicktime 7.6.4 watching the bp rov feed. after last week i get an URL invalid trying to watch the bp rov live feed. What has changed?. before i could watch 4 or 5 feeds at once. please help
    jay.

    sorry here is the url.http://www.bp.com/genericarticle.do?categoryId=9033572&contentId=7062605

Maybe you are looking for