CA Service Management

Expand all | Collapse all

CA SDM createAttachment Web Service Error

  • 1.  CA SDM createAttachment Web Service Error

    Posted Dec 26, 2016 11:37 PM

    Hi Team,

     

    I am using CA SDM 14.1.03 with SQL Server 2008 R2 on the same server. When I am trying to add an attachment to the incident using web service createAttachment method, it is giving the error:

    Could not perform the operation - policy limit exceeded

     

    How it can be resolved?

     

    Kindly provide the solution.

     

    Thanks & Regards,

    Balram



  • 2.  Re: CA SDM createAttachment Web Service Error



  • 3.  Re: CA SDM createAttachment Web Service Error

    Posted Jan 17, 2017 05:49 AM

    Hi Jon,

    I have the problem using PAM (Process automation).

    What I have to do in the WSDL Operator to switch from DIME to MIME.

     

    Thanks,

    Peter



  • 4.  Re: CA SDM createAttachment Web Service Error

    Posted Jan 17, 2017 12:22 PM

    Personnaly, i gave up uploading files to SDM.

     

    I copy them on a public DFS and create a link attachment in SD.



  • 5.  Re: CA SDM createAttachment Web Service Error

    Posted Jan 26, 2017 08:34 PM

    Hi schpe31,

     

    Did you figure out how to create attachments using the PAM soap operator? If so can you share how, I'm receiving the same error. 



  • 6.  Re: CA SDM createAttachment Web Service Error

    Posted Jan 27, 2017 08:16 AM

    Hi Bruneua,

    with some help of support I did the following:

    PreExecutionCode:

    // Create map array
    var attVMArray =  new Array();
    // Create a single map with attachment fields
    var attVM = newValueMap();
    attVM.fileURL = Root.NameDestFile;            // Process.sdmAttFile;
    attVM.contentType = "application/octet-stream"; // Process.sdmContentType;
    attVM.contentId = "";                        // Process.sdmContentId;
    attVMArray.size = 1;
    attVMArray[0] = attVM;
    // Assign the Map array to a field in Operator
    Process[OpName].attachmentMap = attVMArray;

     

    WSDL-Parameters I filled via DynamicParameters

    <impl:createAttachment xmlns:impl="http://www.ca.com/UnicenterServicePlus/ServiceDesk">
      <sid>sid__</sid>
      <repositoryHandle>repositoryHandle__</repositoryHandle>
      <objectHandle>objectHandle__</objectHandle>
      <description>description__</description>
      <fileName>fileName__</fileName>
    </impl:createAttachment>

     

    In additional extracted XML-Data I set

    xpath:expression: //createAttachmentReturn

    DatasetVariable:   attachmentHandle

    Type:      String

     

    Hope that will help.



  • 7.  Re: CA SDM createAttachment Web Service Error

    Posted Mar 09, 2017 12:30 PM

    Perfect.  Thanks for the solution.  I was struggling on this one, and the pre-execution code did the trick.



  • 8.  Re: CA SDM createAttachment Web Service Error

    Posted Dec 05, 2017 05:26 PM

    Jon_Israel, schpe31 I've applied the same code to my situation and am also running into: 


    soapenv:Server.generalException
    Error - could not perform the operation, policy limit exceeded
    SERVERNAME

     

    What could I be missing? Any Help here would be greatly appreciated!



  • 9.  Re: CA SDM createAttachment Web Service Error

    Posted Dec 05, 2017 05:37 PM

    Hi j.barger

     

    Here's another thread that has an example create attachment process you can download and import into your pam instance.

    Example Process for Attaching files to Service Desk 



  • 10.  Re: CA SDM createAttachment Web Service Error

    Posted Dec 06, 2017 09:16 AM

    Please let me know if this is still an issue or if you need another examples on how to call the createAttachment WS using Process Automation.