Content and Experience

Get Involved. Join the Conversation.

Topic

    David Archbold
    File Upload Failing with csServiceParametersMissing
    Topic posted May 13, 2019 by David ArchboldGreen Ribbon: 100+ Points, tagged Content Management 
    84 Views, 1 Comment
    Title:
    File Upload Failing with csServiceParametersMissing
    Summary:
    When using CEC REST API /documents/api/1.2/files/data, uploading a file fails with HTTP 400 csServiceParametersMissing
    Content:

    Hi

    We are hitting the same issue as unresolved post https://cloudcustomerconnect.oracle.com/posts/3b2637ac04.

    When posting a file using htttps://host:port/documents/api/1.2/files/data, we get:

    {
        "errorCode": "-97",
        "errorKey": "!csUnableToCheckIn,(null)!csServiceParametersMissing,CHECKIN_UNIVERSAL",
        "errorMessage": "Content item '(null)' was not successfully checked in. One or more service parameters for service CHECKIN_UNIVERSAL are missing.",
        "title": "Content item '(null)' was not successfully checked in. One or more service parameters for service CHECKIN_UNIVERSAL are missing.",
        "type": "https://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html"
    }

    All other CEC API calls are working but we cannot upload a file using this service.

    Payload:

    -----1234567890
    Content-Disposition: form-data; name="jsonInputParameters"
    Content-Type: application/json

    {
    "parentID":"FA17B08A87AFACFCA78DFD5D3A970EC2276DD2910228"
    }
    -----1234567890
    Content-Disposition: form-data; name="primaryFile"; filename="Test POC File to Content Cloud.pdf"
    Content-Type: text/plain
     
    This is my file content
    -----1234567890--

    We have tried with and without the additional parameters:

    dDocName
    dDocTitle
    dSecurityGroup
    dDocType
    primaryFile
    dDocAuthor

    ..
    -----1234567890
    Content-Disposition: form-data; name="dDocName";
    Content-Type: text/plain

    Test POC File to Content Cloud.pdf
    -----1234567890
    Content-Disposition: form-data; name="dDocTitle";
    Content-Type: text/plain

    Test POC File to Content Cloud.pdf
    -----1234567890
    Content-Disposition: form-data; name="dSecurityGroup";
    Content-Type: text/plain

    Secure
    -----1234567890
    Content-Disposition: form-data; name="dDocType";
    Content-Type: text/plain

    PDF
    -----1234567890
    Content-Disposition: form-data; name="dDocAuthor";
    Content-Type: text/plain

    <myuserid>
    ..

    Any help greatly appreciated

    Comment

     

    • John Grimshire

      Hi David,

      I recommend that you raise a Service Request with Support so that the REST API scenario with respect to your service instance can be investigated further.

      Best regards,

      John

      Oracle CEC Support

    • David Archbold

      For information, this was user-error on our part.  Our Postman request was not submitting the Content-Type header (box was unchecked).  Once the correct Content-Type header was posted, the request was successful.