CA Service Management

Expand all | Collapse all

Unable to download attachments

  • 1.  Unable to download attachments

    Posted 07-15-2015 02:40 AM

    Hi everyone,

               I am trying to download attachments from usd by using c# code. The main idea is to get the latest usd numbers by comparison and download the attachments associated with those particular usd numbers.I am able to fetch the latest usd number and get the attachment id of a particular attachment. I am using the following url in order to download the attachments associated with the usd:

     

    string ur1 = string.Format("http://***Server IP***:8080/CAisd/UploadServlet?AttmntId={0}&Bpsid={1}&retURL=https://***ServerName****/CAisd/pdmweb.exe?SID={2}&FID={3}&OP=DISPLAY_FORM&HTMPL=attmnt_download_done.htmpl&ServerName=****&encrtd=1", "attid", bpid, sid, "fid");

     

    attid is the attachment id, sid is the session id, bpid is generated using sid and fid is a random number, say 123.

     

    But it is not downloading any attachments, it shows the following error:

     

    The File download request is missing some required parameters

    An unspecified processing error was encountered



    Can anyone please help me on this.



  • 2.  Re: Unable to download attachments

    Broadcom Employee
    Posted 07-15-2015 03:37 AM

    I think you're looking for a different CA product community. This is Application Performance Management.

    Which one are you looking for?



  • 3.  Re: Unable to download attachments

    Posted 07-15-2015 04:33 AM

    i am not sure about the community that i am looking for, do you have any suggestions as to which community this can be put under??



  • 4.  Re: Unable to download attachments

    Posted 07-15-2015 09:41 AM

    Looks like this should have been under the Service Management, i.e. ServiceDesk in particular...



  • 5.  Re: Unable to download attachments

    Broadcom Employee
    Posted 07-15-2015 12:58 PM


  • 6.  Re: Unable to download attachments

    Posted 07-15-2015 11:28 PM

    Hi Abijith,

     

    This error is an indication that the Attachment upload Servlet is up and running as mentioned in the TEC606948.

     

    Thanks,

    Naveen



  • 7.  Re: Unable to download attachments

    Posted 07-16-2015 04:27 AM

    Hi Abijith,

     

    As far as I know there is NO supported method to download attachments via normal SDM webservice, unless you use Restful webservices method which was only introduced in r12.7 and you need a fix (obtained via support) for this to work. So what version of ServiceDesk are you running?

     

    Regards,

    Brian



  • 8.  Re: Unable to download attachments

    Posted 07-16-2015 09:38 AM

    Try using "...encrtd=0..." instead of "...encrtd=1....".

    Kind regards

    ..............Michael



  • 9.  Re: Unable to download attachments

    Posted 07-17-2015 02:54 AM

    Hi Michael,

      Tried changing encrtd=0 from encrtd=1, but it had no effect.



  • 10.  Re: Unable to download attachments

    Posted 07-17-2015 03:29 AM

    Hmm. I'm sorry. That way it was working in my environment. Which version of SDM do you use?



  • 11.  Re: Unable to download attachments

    Posted 07-17-2015 03:26 AM

    Hi Guys,

      Thanks a lot for your responses.

      I was able to get rid of the error page that had been showing up by using the following url:

     

    string URl = string.Format("http://***Server IP****/CAisd/UploadServlet?AttmntId={0}&Bpsid={1}&retURL=https://***Servername***/CAisd/pdmweb.exe?FID={2}+OP=JUST_GRONK_IT+HTMPL=attmnt_download_done.htmpl&ServerName=**Servername***&encrtd=0", "attid", bpid, "123");

     

    But there is another issue involved.

    It is not downloading any attachments and login page is being displayed, rather than the attachments being downloaded

     

    Can anyone pls provide any suggestions on this??



  • 12.  Re: Unable to download attachments

    Posted 07-17-2015 09:23 AM

    Most probably it is because your bopsid is expired it is valid only for few seconds

     

    Sent from my iPhone