Error while uploading images to SAP Mobile Documents from iPad application using ObjectiveCMIS.

Hi,
I am getting the error while uploading images to SAP Mobile Documents from custom iOS(iPad )application using ObjectiveCMIS library.
My Custom method is as follows:
- (void)createSalesOrderRouteMapImageInFolder:(NSString*)salesOrderRouteMapFolderId routeMapImageTitle:(NSString *)imageTitle routeMapContent:(NSData *)imageData
    NSInputStream *inputStream = [NSInputStream inputStreamWithData:imageData];
    NSMutableDictionary *properties = [NSMutableDictionary dictionary];
    [properties setObject:[NSString stringByAppendingFileExtension:imageTitle] forKey:@"cmis:name"];
    [properties setObject:@"cmis:document" forKey:@"cmis:objectTypeId"];
    [self.session createDocumentFromInputStream:inputStream
                                       mimeType:@"image/png"
                                     properties:properties
                                       inFolder:salesOrderRouteMapFolderId
                                  bytesExpected:[imageData length]
                                completionBlock:^(NSString *objectId, NSError *error) {
                                    NSLog(@"Object id is %@",objectId);
                                    if(error == nil) {
                                        [inputStream close];
                                        NSLog(@"Uploading Sales order route map successfully.");
                                        [[NSNotificationCenter defaultCenter] postNotificationName:SaveOrderSuccessNotification object:nil];
                                    } else {
                                        [inputStream close];
                                        NSLog(@"Uploading sales order route map failed.");
                                        [[NSNotificationCenter defaultCenter] postNotificationName:SaveOrderFailedNotification object:error];
                                } progressBlock:^(unsigned long long bytesUploaded, unsigned long long bytesTotal) {
                                    NSLog(@"uploading... (%llu/%llu)", bytesUploaded, bytesTotal);
OBjectiveCMIS Method in which i am getting error during upload:
- (void)sendAtomEntryXmlToLink:(NSString *)link
             httpRequestMethod:(CMISHttpRequestMethod)httpRequestMethod
                    properties:(CMISProperties *)properties
            contentInputStream:(NSInputStream *)contentInputStream
               contentMimeType:(NSString *)contentMimeType
                 bytesExpected:(unsigned long long)bytesExpected
                   cmisRequest:(CMISRequest*)request
               completionBlock:(void (^)(CMISObjectData *objectData, NSError *error))completionBlock
                 progressBlock:(void (^)(unsigned long long bytesUploaded, unsigned long long bytesTotal))progressBlock
    // Validate param
    if (link == nil) {
        CMISLogError(@"Must provide link to send atom entry");
        if (completionBlock) {
            completionBlock(nil, [CMISErrors createCMISErrorWithCode:kCMISErrorCodeInvalidArgument detailedDescription:nil]);
        return;
    // generate start and end XML
    CMISAtomEntryWriter *writer = [[CMISAtomEntryWriter alloc] init];
    writer.cmisProperties = properties;
    writer.mimeType = contentMimeType;
    NSString *xmlStart = [writer xmlStartElement];
    NSString *xmlContentStart = [writer xmlContentStartElement];
    NSString *start = [NSString stringWithFormat:@"%@%@", xmlStart, xmlContentStart];
    NSData *startData = [NSMutableData dataWithData:[start dataUsingEncoding:NSUTF8StringEncoding]];
    NSString *xmlContentEnd = [writer xmlContentEndElement];
    NSString *xmlProperties = [writer xmlPropertiesElements];
    NSString *end = [NSString stringWithFormat:@"%@%@", xmlContentEnd, xmlProperties];
    NSData *endData = [end dataUsingEncoding:NSUTF8StringEncoding];
    // The underlying CMISHttpUploadRequest object generates the atom entry. The base64 encoded content is generated on
    // the fly to support very large files.
    [self.bindingSession.networkProvider invoke:[NSURL URLWithString:link]
                                     httpMethod:httpRequestMethod
                                        session:self.bindingSession
                                    inputStream:contentInputStream
                                        headers:[NSDictionary dictionaryWithObject:kCMISMediaTypeEntry forKey:@"Content-type"]
                                  bytesExpected:bytesExpected
                                    cmisRequest:request
                                      startData:startData
                                        endData:endData
                              useBase64Encoding:YES
                                completionBlock:^(CMISHttpResponse *response, NSError *error) {
                                    if (error) {
                                        CMISLogError(@"HTTP error when sending atom entry: %@", error.userInfo.description);
                                        if (completionBlock) {
                                            completionBlock(nil, error);
                                    } else if (response.statusCode == 200 || response.statusCode == 201 || response.statusCode == 204) {
                                        if (completionBlock) {
                                            NSError *parseError = nil;
                                            CMISAtomEntryParser *atomEntryParser = [[CMISAtomEntryParser alloc] initWithData:response.data];
                                            [atomEntryParser parseAndReturnError:&parseError];
                                            if (parseError == nil) {
                                                completionBlock(atomEntryParser.objectData, nil);
                                            } else {
                                                CMISLogError(@"Error while parsing response: %@", [parseError description]);
                                                completionBlock(nil, [CMISErrors cmisError:parseError cmisErrorCode:kCMISErrorCodeRuntime]);
                                    } else {
                                        CMISLogError(@"Invalid http response status code when sending atom entry: %d", (int)response.statusCode);
                                        CMISLogError(@"Error content: %@", [[NSString alloc] initWithData:response.data encoding:NSUTF8StringEncoding]);
                                        if (completionBlock) {
                                            completionBlock(nil, [CMISErrors createCMISErrorWithCode:kCMISErrorCodeRuntime
                                                                                 detailedDescription:[NSString stringWithFormat:@"Failed to send atom entry: http status code %li", (long)response.statusCode]]);
                                  progressBlock:progressBlock];
Attaching the logs:
ERROR [CMISAtomPubBaseService sendAtomEntryXmlToLink:httpRequestMethod:properties:contentInputStream:contentMimeType:bytesExpected:cmisRequest:completionBlock:progressBlock:] HTTP error when sending atom entry: Error Domain=org.apache.chemistry.objectivecmis Code=260 "Runtime Error" UserInfo=0x156acfa0 {NSLocalizedDescription=Runtime Error, NSLocalizedFailureReason=ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public void com.sap.mcm.server.service.AbstractChangeLogService.updateChangeLog(java.lang.String,boolean) throws com.sap.mcm.server.api.exception.MCMException method on bean instance com.sap.mcm.server.nw.service.NwChangeLogService@4e7989f3 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|NwChangeLogService in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.ejb.EJBTransactionRolledbackException: ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public com.sap.mcm.server.model.ChangeLog com.sap.mcm.server.dao.impl.ChangeLogDaoImpl.findByUserId(java.lang.String) method on bean instance com.sap.mcm.server.dao.impl.ChangeLogDaoImpl@2852b733 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|ChangeLogDaoImpl in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.persistence.NonUniqueResultException: More than 1 objects of type ChangeLog found with userId=25f8928e-8ba0-4edd-b08e-43bf6fb78f1a; nested exception is: javax.ejb.EJBException: ASJ.ejb.005044 (Failed in component: sap.com/com.sap.mcm.server.nw) Exception raised from invocation of public com.sap.mcm.server.model.ChangeLog com.sap.mcm.server.dao.impl.ChangeLogDaoImpl.findByUserId(java.lang.String) method on bean instance com.sap.mcm.server.dao.impl.ChangeLogDaoImpl@2852b733 for bean sap.com/com.sap.mcm.server.nw*annotation|com.sap.mcm.server.nw.ejb.jar*annotation|ChangeLogDaoImpl in application sap.com/com.sap.mcm.server.nw.; nested exception is: javax.persistence.NonUniqueResultException: More than 1 objects of type ChangeLog found with userId=25f8928e-8ba0-4edd-b08e-43bf6fb78f1a}
2015-03-12 04:08:31.634 Saudi Ceramics[4867:351095] Uploading sales order route map failed.

Hi Sukalyan,
Have you checked the below links?
These will give you step by step implementation procedure.
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a099a3bd-17ef-2b10-e6ac-9c1ea42af0e9?quicklink=index&overridelayout=true
http://wiki.sdn.sap.com/wiki/display/WDJava/KmuploadusingWebdynproapplication
Regards,
Sandip

Similar Messages

  • Urgent :Error while Uploading images.

    Hi all,
    I got following error while uploading an image file(.gif) from local drive.
    The file you are trying to install contains no images.
    I did
    Impor t> Import File Path , File type (Image Export)>Install > Install Image
    I got above error.
    Plz Help.
    Vinaya.

    Try going to:
    Shared Components>Images>Create
    This should allow you to upload your image!!
    Note that if you leave the "application" option set to "No application associated", by default, you can reference it from any app in your workspace. Alternatively, you may limit the application that references the image by choosing the app in the drop down list.
    Hope that makes sense
    Duncan

  • Getting DYNPRO_SEND_IN_BACKGROUND this error while uploading image

    hi   have created a bsp program in local object and i m not getting error,but  now i have crated this program in packege , so when ever i uploding image in page every time getting this error , please help me
    The following error text was processed in the system:
    *Sending of dynpro SAPLSTRD 0300 not possible: No window system type specified*
    Exception Class *CX_SY_SEND_DYNPRO_NO_RECEIVER*
    Error Name *DYNPRO_SEND_IN_BACKGROUND*
    Program *SAPLSTRD *
    Include *LSTRDU30 *
    Line *186*
    i m uploading image using code not manually and using htmlb:fileupload tab.
    getting here at this point
    *upload new file INTO MIME OBJECTS
          o_mr_api->put(
            EXPORTING
              i_url                         = lv_url
              i_content                     = lv_xstring
              i_suppress_package_dialog     = 'X'
               i_new_loio                   = l_loio
            EXCEPTIONS
              parameter_missing             = 1
              error_occured                 = 2
              cancelled                     = 3
              permission_failure            = 4
              data_inconsistency            = 5
              new_loio_already_exists       = 6
              is_folder                     = 7
              OTHERS                        = 8 ).
    Thanks

    Hi Prashant,
    I worked on your code and found that the exception is thrown in the standard FM..
    CALL FUNCTION 'SKWF_NMSPC_IO_FIND_BY_ADDRESS'
          EXPORTING
            url   = l_url "parent url
            appl  = wbmr_c_skwf_appl_name
          IMPORTING
            io    = g_parent_loio
            error = l_error. "is also set, if l_url not found !
    Reason:
    I named my BSP application Z_MIMEUPLOAD I was getting dump when ....
    In layout and in OnInputprocessing I used ZTEST_MIMEUPLOAD instaed of Z_MIMEUPLOAD
    The dump disappered as soon as I corrected the BSP application name everywhere in the application.
    Please check the url and application name everywhere in your code.
    Also replace the code:
    CONCATENATE 'http://siildev.siil.com:8001/sap(bD1lbiZjPTc3Nw==)/bc/bsp/sap/zprbsp_002/' wa_file into
    By this:
    CONCATENATE 'http://siildev.siil.com:8001/sap(bD1lbiZjPTc3Nw==)/bc/bsp/sap/zprbsp_002/PAGE_NAME' wa_file into
    That is add page name to url in layout.
    I am not sure what is hapening in your code but this is what I found.
    Hope it helps you.
    Regards,
    Anubhav

  • Wordpress http error while uploading images with flash

    Hi guys
    I have a problem with my wordpress blog " bollywood wallpapers ". When I try to upload images with defualt wordpress flash uploader I get "http" error.
    I am having this problem from last 5 months.

    Dear Siva,
    that is indeed strange.
    Still don't know if this could be an issue with your NWDS or the PAR itself.
    So let's do 2 tests
    ===============================================
    TEST NR. 1
    Let's try and check the NWDS first by creating a custom PAR.
    Don't worry, it's easy.
    Just open your NWDS and go to the top menu
    File > New > Project
    Inside the popup window that will open please choose
    Portal Application (on the left) and Create a Portal Application Project (on the right)
    Then give any name you would like (no spaces or dots, etc...)
    You now have a Portal project created on NWDS ( you will see a folder on the left side with your project name)
    Click on that folder with your LEFT mouse button and choose EXPORT
    Choose PAR File
    Choose your Project
    Choose a path where you want your PAR file to be saved. (uncheck the deploy PAR file, but check the include the source code).
    And click Finish.
    Now delete the project you have created (by clicking on the folder with your LEFT mouse button again, but chose DELETE project)
    Now you're ready to re-import the PAR file.
    ===============================================
    TEST NR. 2
    Maybe your standard PAR file that you've downloaded doesn't have the source code included or is corrupted.
    Please try to open it with a ZIP program and check what type of structure/files you have there.
    Have you also checked your NWDS log ?
    You could also share here that log, so that I can better help you.
    Kindest Regards
    /Ricardo

  • Error while uploading data in SAP (me01)using LSMW

    Hi All,
    I am using LSMW for the first time.
    I am trying to upload data to the Source List transaction (me01) using batch input recording. I created a new recording through LSMW itself. My source structure consists of 5 fields:
    <b>MATNR C(18)
    WERKS C(4)
    VDATU N(8)
    BDATU N(8)
    LIFNR C(10)
    EKORG C(10)</b>
    Now the problem is when i try to convert the data, it gives me an error saying
    "For type "C",a maximum length specification of 65535 is allowed."
    I have noticed that unlike Direct Input method,
    using batch input does not give any fields in "Maintain Field Mapping & Conversion Rules". So even if I have my fields in my source structure ,there are no fields to which I can map them to.
    I don't know that is how it is when we go with batch input.
    My file contain data in following order:
    DANGEROUS GOODS,ABBY,20060801,20060831,30010,TEST
    Pls help me to solve this problem.

    Hi Swapna!
    You get such an error message, when define a constant and forget the second ':
    g_werks = '1000.  "wrong
    g_werks = '1000'.  "correct
    In general: a batch input recording can have fixed values and some variables. You need to define, which fields you like to fill with a variable. Go to the overview of the recordings, open the recording in change mode and assign some variable names to the according batch lines.
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/76/a05b69e8a411d1b400006094b944c8/frameset.htm">Editing batch input recordings</a>
    Follow the help for the following steps of structure assignments.
    Regards,
    Christian

  • Error while uploading BITMAP image in SAP through SE78.

    Hello all,
    I am getting below error while uploading image into SAP through SE78.
    'Bitmap file: No color table available (True Color, Bitcount 32)'.
    I have tried searching for solution and got some help from below reply from a thread:
    You may do these options:
    1. Lower the resolution of the image
    2. Lower the file size of the image
    Regards,
    Reymar
    I have got a image size of 6.14 KB and resolution of 72*72 dots per inch.
    Thanks in Advance.
    - Jayant Sahu.

    Hi Daniel,
    First of all, if you dont mind, start a new thread for your question please.
    Anyways, answer to your question is --
    You need to save your picture with lower-most bits BITMAP Type. When you were saving your picture as .bmp, take care you are passing lower-most BITMAP type and not 24-bit as it may be as default.
    This way, your problem would be resolved.
    Thanks.
    Kumar Saurav.

  • Prerequisites for SAP mobile Documents.

    Hello,
    I have going to install SAP Mobile Documents. I would like to know what are the requirements and if there are any install guide and videos.
    I believe that SAP Mobile Documents require NetWeaver Application Java and SAP Mobile Documents using the Software Update Manager (SUM).
    What are the other components that are required and the c
    Require your help on this
    Regards

    Hello Robert,
    you will find the prerequisites documents here:
    http://scn.sap.com/community/mobile-documents --> Implement --> Solution Prerequisites
    You find the complete step-by-step installation and configuration information here:
    http://scn.sap.com/community/mobile-documents --> Step-by-Step Implementation Guide
    Regards,
    Jens

  • Getting a Page Cannot be Displayed error while uploading a Contract Document in SAP E-sourcing for size 500mb

    Hi Guys,
    I am getting a Page can not be displayed error while uploading a COntract Document in SAP-E-soucing 7.0.
    Maximum Size set in Our SYSTEM is :9765MB.
    Approx size of the Document tried is more then 300MB.
    Appreciate your help on this.
    Regards
    Tarun

    Hi Tarun,
    Please check the below system properties using system user login
    attachments.maxSizeKB.buyers - "Maximum size in KB of a employer-attached attachment file"
    attachments.upload.enable.buyers-  " Enable/Disable uploading of attachments by internal users"
    Also Please check with other attachment, contracts related properties in the System.
    Let me know if this helps.
    Thanks,
    Raj.

  • Error while uploading document to service desk ticket

    Hi all,
    I get error while uploading document to ticket
    Message No: SKWF_SDOKERRS119 .
    If iam correct I have given all the required authorisation mentioned in security guide.
    what could be the reason for this kind of behaviour
    Best Regards,
    Alok

    hi
    what is your solman version? chk the sap note
    [ Note 1401196 - Work Centers: attachment not saved in Incident Management|https://websmp130.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1401196]
    might be this helps,
    [Message No: SKWF_SDOKERRS119|Message No: SKWF_SDOKERRS119]
    jansi

  • Getting error while uploading a document in a library

    Hi,
    I'm getting a weird error while uploading the document in the library. And I don't get it all the times but most of the times.
    It reads:
    The file <library name>/<file name> has been modified by i:0#.<user-id> on <datetime stamp>
    How to resolve this ? I have referred many articles on this one, but none helped.
    Thanks for your response in advance.
    Regards

    Hi Prajk,
    Based on your description, I recommend to check if there are any ItemAdded event receiver or workflows which are triggered when an item is created to update the document properties in the library.
    If there is any ItemAdded event receiver on the library, I recommend to wait for ItemAdded to finish before the ListFieldIterator control residing on EditForm.aspx loads (It’s the ListFieldIterator which displays the Item’s fields ).
    http://blogs.msdn.com/b/manuj/archive/2009/09/22/itemadded-event-on-document-library-the-file-has-been-modified-by-on-error.aspx
    If there is any workflow on the library, I recommend to add a Pause for Duration step at the beginning of the workflows.
    If above cannot work, please check ULS log for detailed error message.
    For SharePoint 2013, by default, ULS log is at C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\15\LOGS.
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Error while uploading document in Primavera portfolio management

    Dear All,
    I am getting error while uploading document with particular user in PPM
    Error occur when I upload document and click on save button.
    Error from log :
    &ltException&gt
    System.InvalidCastException: Specified cast is not valid.
       at ProSight.Portfolios.Infrastructure.Database.IpsDataRow.getInt(DataColumn iColumn)
       at ProSight.Portfolios.BusinessLogic.Infrastructure.Objects.psLinkObj.addNew(Int32 iUserID, Int32 iPortfolioID, Boolean isPortfolioLink, IpsDataTable iLinkRec)
       at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenario.psTSTabset.update(Int32 iUserID, Int32 iFormsetID, Int32 iPortfolioID, Boolean iIsImmediate, psResultContainer iParam)
    &lt/Exception&gt
    </Trace>
    <Trace Type="Error" Time="1/31/2015 1:44:36.758" class="psTransactionalScenarioInterface" Method="handleException" Process="w3wp.exe (4236)" Client="">
    Error in psTSFormset.update
    &ltException&gt
    System.InvalidCastException: Specified cast is not valid.
       at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenarioInterface.psTransactionalScenarioInterface.invokeTS(String className, String methodName, Object[] parameters, Int32 maxRetries, Int32 minRetryWait, psResultContainer containerToClean, Boolean iDisableTransaction)
    &lt/Exception&gt
    </Trace>
    <Trace Type="Error" Time="1/31/2015 1:44:36.758" class="Transaction" Method="handleException" Process="w3wp.exe (4236)" Client="">
    Unhandled Error GUID: a3640801-43cb-48d4-89b4-cede50780e47 \"File name: /Prosight/forms/saveForm.aspx\\nStack trace:    at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenarioInterface.psTransactionalScenarioInterface.handleException(Exception iEx, String iAddionalMsg)\\r\\n   at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenarioInterface.psTransactionalScenarioInterface.invokeTS(String className, String methodName, Object[] parameters, Int32 maxRetries, Int32 minRetryWait, psResultContainer containerToClean, Boolean iDisableTransaction)\\r\\n   at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenarioInterface.psTransactionalScenarioInterface.invokeTS(String className, String methodName, Object[] parameters, Int32 maxRetries, Int32 minRetryWait, psResultContainer containerToClean)\\r\\n   at ProSight.Portfolios.BusinessLogic.TS.TransactionalScenarioInterface.psTSITabset.update(Int32 iUserID, Int32 iDashboardID, Int32 iPortfolioID, Boolean iIsImmediate, psResultContainer iParam)\\r\\n   at ProSight.Portfolios.Server.Presentation.Logic.Forms.psPLForms.update(psResultContainer iResultContainer)\\r\\n   at invoker137.Invoke(Object , Object[] )\\r\\n   at Microsoft.JScript.JSMethodInfo.Invoke(Object obj, BindingFlags options, Binder binder, Object[] parameters, CultureInfo culture)\\r\\n   at Microsoft.JScript.LateBinding.CallOneOfTheMembers(MemberInfo[] members, Object[] arguments, Boolean construct, Object thisob, Binder binder, CultureInfo culture, String[] namedParameters, VsaEngine engine, Boolean& memberCalled)\\r\\n   at Microsoft.JScript.LateBinding.Call(Binder binder, Object[] arguments, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParameters, Boolean construct, Boolean brackets, VsaEngine engine)\\r\\n   at Microsoft.JScript.LateBinding.Call(Object[] arguments, Boolean construct, Boolean brackets, VsaEngine engine)\\r\\n   at ASP.forms_saveform_aspx.main()\\nError code: -1\\nError Reason: Specified cast is not valid.\\n\\n\", \"/ProSight\"
    </Trace>
    <Trace Type="Error" Time="1/31/2015 1:44:47.584" class="psException" Method="printException" Process="w3wp.exe (4236)" Client="">
    Could not update form data
    USERID: 422
    DEADLOCK DETECTED: False
    Kindly help.

    Hi,
    chk ur authorizaion errors... su53 dump.
    Thx,
    waseem

  • Error while uploading Transport request from SAP ECC6.0 EHP4 to SAP ECC 5.0

    Hi friends,
    Error while uploading transport request to the transport directory,
    we downloaded the transport request from one sap system which have a set of developments(contains screen programs)
    for example downloaded all co files and data files
    control file: K900470.SAD and Data file: R900470.SAP from transport directory.
    we are trying to upload the transport to another Sap system
    we have
    Uploaded the controlling file K900470.sad to the location  /usr/sap/transpad/cofiles/
    Uploaded the controlling file R900470.sad to the location  /usr/sap/transpad/data/
    we tried to add in the import queues using TCODE: STMS and trying to import.
    During import we get the below error:
    HALT: unknown dynpro format: d021s_length() returned 0 Please contact the SAP support.
    End with rc : 16
    Please help me on this
    We are trying to copy from ECC 6.0 EHP4 to SAP 5.0 and SAP 4.7EE
    Thanks & Regards
    Murali Papana

    Did you see that you tried to transport to an older release!! You should have expected such a result.
    Before doing such a thing, you should have looked at SAP notes to see SAP recommendations, if any. And you're lucky, there are ones: [Note 1090842 - Composite note: Transport across several releases|http://service.sap.com/sap/support/notes/1090842]. You need to know that ECC6 corresponds to SAP Basis 7.0, and ECC5 corresponds to SAP Basis 6.40.

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while getting  image from database in SUP using ios?

    Hi All,
      Im developing native iOS application using sup 2.1.3 . Im getting error While retrieving  image from SUP database. Here i'm trying to get image from database and show in imageView.can any one help me how to fix this issue?
    In database image datatype is  'LONG Binary' .
    My table Schema:
    CREATE TABLE dba.ImagesTable (
    RowID INT NOT NULL,
    ImageName VARCHAR(20) NOT NULL,
    PhotoData LONG BINARY NOT NULL,
    IN SYSTEM
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA137 PRIMARY KEY CLUSTERED (RowID)
    ALTER TABLE dba.ImagesTable
      ADD CONSTRAINT ASA138 UNIQUE NONCLUSTERED (RowID)
    in Xcode:
                [SUP107SUP107DB synchronize];
                SUP107ImagesTable *imgTable =[[SUP107ImagesTable alloc]init];
                SUP107ImagesTableList *list =[SUP107ImagesTable findAll];
                SUP107ImagesTable * oneRecord =[list objectAtIndex:0];
                NSLog(@"rowId:%d---imageName:%@---photoData:%@---photoLenght:%d",oneRecord.rowID,oneRecord.imageName,oneRecord.photoData,oneRecord.photoDataLength);
                NSData *tempData =[[NSData alloc]init];
                SUPBigBinary *responseBinaryData = (SUPBigBinary *)oneRecord.photoData.value;
                @try {
                    [responseBinaryData openForWrite:[oneRecord.photoData length]];
                    [responseBinaryData write:tempData];
                @catch (NSException *exception) {
                    NSLog(@"exception: %@",[exception description]);
                UIImageView *imgView =[[UIImageView alloc] initWithFrame:CGRectMake(50,50,100,100)];
                [self.window addSubview:imgView];
                UIImage * tempImage =[UIImage imageWithData:tempData];
                imgView.image = tempImage;
                [responseBinaryData close];
    Error Log:
    2014-04-02 18:42:15.150 SUP102[2873:70b] rowId:1---imageName:Apple---photoData:SUPBigBinary: column=c pending=1 allow_pending_state=1 table=sup107_1_0_imagestable mbo=0x0 key=(null) ---photoLenght:90656
    Printing description of responseBinaryData:
    <OS_dispatch_data: data[0xc891b40] = { leaf, size = 90656, buf = 0x1213a000 }>
    2014-04-02 18:42:33.304 SUP102[2873:70b] -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] exception: -[OS_dispatch_data openForWrite:]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.305 SUP102[2873:70b] -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40
    2014-04-02 18:42:33.306 SUP102[2873:70b] [ERROR] [AppDelegate.m:497] NSInvalidArgumentException: -[OS_dispatch_data close]: unrecognized selector sent to instance 0xc891b40

    This thread talks about uploading image to SAP from a IOS device,Sending Image to SAP via iOS Native app (SUP 2.1.3)
    Midhun VP

  • Error while adding Image: ORA-00001: unique constraint

    Dear all,
    I have an error while adding images to MDM I can´t explain. I want to add 7231 images. About 6983 run fine. The rest throws this error.
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8078_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8078.gif; ArraySize=0; NullInd=0;
    Error: Service 'SRM_MDM_CATALOG', Schema 'SRMMDMCATALOG2_m000', ERROR CODE=1 ||| ORA-00001: unique constraint (SRMMDMCATALOG2_M000.IDATA_6_DATAID) violated
    Last CMD: INSERT INTO A2i_Data_6 (PermanentId, DataId, DataGroupId, Description_L3, CodeName, Name_L3) VALUES (:1, :2, :3, :4, :5, :6)
    Name=PermanentId; Type=9; Value=1641157; ArraySize=0; NullInd=0;
    Name=DataId; Type=5; Value=426458; ArraySize=0; NullInd=0;
    Name=DataGroupId; Type=4; Value=9; ArraySize=0; NullInd=0;
    Name=Description_L3; Type=2; Value=; ArraySize=0; NullInd=0;
    Name=CodeName; Type=2; Value=207603_Img8085_gif; ArraySize=0; NullInd=0;
    Name=Name_L3; Type=2; Value=207603_Img8085.gif; ArraySize=0; NullInd=0;
    I checked all data. There is no such dataset in the database. Can anybody give me a hint how to avoid this error.
    One thing I wonder: The PermanentId is allways the same but I can´t do anything here.
    BR
    Roman
    Edited by: Roman Becker on Jan 13, 2009 12:59 AM

    Hi Ritam,
    For such issues, can you please create a new thread or directly email the author rather than dragging back up a very old thread, it is unlikely that the resolution would be the same as the database/application/etc releases would most probably be very different.
    For now I will close this thread as unanswered.
    SAP SRM Moderators.

Maybe you are looking for

  • How do I change the name next to the home icon in Snow Leopard

    How do I change the name next to the home icon in Snow Leopard?

  • LiveCache lock server is not installed

    Hi All, Job /SAPAPO/OM_DELETE_OLD_SIMSESS  has been failed: Job log says: Job started Step 001 started (program /SAPAPO/OM_DELETE_OLD_SIMSESS, variant , user ID BATCHSCHE) evaluate oms_versions evaluate simsession delta obsolete transactional simulat

  • Retrieving personal user certificate for secure webservice

    All, I am currently creating a WLW 8.1 webservice that will interact with a non-browser client. The reason I mention non-browser is that in order to secure this webservice and also have it function correctly I need to retrieve a user's personal certi

  • JScrollPane Doesn;t appear in JScrollPane?

    hi Following is the code of JPanel that contains JScrollPane. And JScrollPane adds again CompareView Panel CompareViewPanel is using custom defined Layout CompareViewLayout . But this as a output this panel is not showing the proper JScrollPane when

  • Searching SMB Mounts

    I'm having problems with one of my machines searching SMB shares. We have several Mac Pros that can search these shares fine (all on 10.5.5) and we have one Power Mac that can't search these shares (also on 10.5.5). I've tried rebuilding the spotligh