Document corrupted when sending file to drop off library using records repository submit file method (official file web service is used)

I am trying to submit files to drop off library through a simple web application. I could see the documents submitted to drop off library but the contents in it have got corrupted.
string recordRouting = "Test Original Document";
using (Officialfilewebservice.RecordsRepository f = new officialfilewebservice.RecordsRepository())
                string myFileName = @"D:\FileDrop\Testfile.txt";
                string filename = Path.GetFileName(myFileName);
                Byte[] inputbytearray = System.Text.Encoding.ASCII.GetBytes(myFileName);
string x = f.SubmitFile(inputbytearray, newArray, recordRouting, filename, Environment.UserDomainName + "\\" + Environment.UserName);
the code for the "newArray" used as part of the SubmitFile method is below:
  string itemname = "abcdef";
  string serviceURL = "http://..........";
  string result = GetTaxonomyTerm(itemname, serviceURL)
  Dictionary<string, string> metadata = new Dictionary<string, String>();
  metadata.Add("TestDocumentType", "-1;#" + itemname + "|" + result);
         metadata.Add("ContentType", "Test Original Document");
         metadata.Add("TestRequestId", "9999");
         metadata.Add("TestProjectId", "8888");
                f.Url = "http://../../../../OfficialFile.asmx";
                f.UseDefaultCredentials = true;
                foreach (var item in metadata)
                    Officialfilewebservice.RecordsRepositoryProperty prop = new Officialfilewebservice.RecordsRepositoryProperty();
                    prop.Name = item.Key;
                    prop.Value = item.Value;
                    prop.Type = "Text";
                    propertydetails.Add(prop);
                Officialfilewebservice.RecordsRepositoryProperty[] newArray = propertydetails.ToArray();

Hi,
According to your post, my understanding is that you want to upload files to drop off library.
Here is a blog with the code sample for your reference:
Uploading Documents Programmatically to a Content Organizer Enabled Site
http://www.codeproject.com/Articles/497729/UploadingplusDocumentsplusProgramaticallyplustoplu
Thanks,
Dennis Guo
TechNet Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Dennis Guo
TechNet Community Support

Similar Messages

  • Not moving the .pdf files from Drop Off Library to my custom document library in sharepoint 2013

    Hi Team,
    I am trying to move the .pdf files from drop-off library to custom library.
    For the above requirement i am writing content organizer rule condition like (On Group: Document content types & Type: Document)
    Property: Name
    Operator: Ends with
    value: .pdf
    and Setting value in target location like
    /sites/MS/ProductGuides
    How to solve the issue
    If help appriciated
    Regards,
    Dhaya

    Hi Dhaya,
    I created a Content Organizer rule like this:
    When uploading a .pdf file to the Drop Off library, it is moved to the destination library immediately:
    I suggest you create a similar rule as above for another test to see if the issue still persists.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Want Content Organizer to overwrite files from Drop Off library not add new.

    If I put a file into the Drop Off library that already exists in the target library it appends a set of random characters to the filename and uploads as a new file. I want to overwrite the existing file (maintaining the Document ID) so that we can preserve
    links to the file and a quick check of the library shows if all files have been updated from a data call.
    Is this possible?
    There is no overwrite checkbox in the Drop Off library upload dialog.
    Thanks,
    William Meisheid
    Serco-NA

    Within the library settings of the recipient/receiver library e.g. Site Assets, make sure that there is at least minor versioning set. In addition, within the Content Rule Organizer Settings panel, make sure that in the Duplicate Submissions section, the
    'Use SharePoint versioning' is selected.

  • Records center drop off library column validation

    In the drop off library of records center, I created a column as a required field. When users send their documents to the records center, I want the user to be able to select the value from the dropdown box of this column in order to complete the "send
    to" process. Is there a way to implement this? I tried to use column validation function by adding formula, but it doesn't work. I only got "Sorry, something went wrong" message. If anyone has similar implementation before, please guide me to
    the right direction. Thank you very much for your help. 

    Hi Bob ,
    Every time the Content Organizer Processing job runs, it sends an email message for any item that fails to match a rule. When a submission doesn't match a rule, the rule manager must be alerted immediately
    so that the appropriate action can be taken. This is the expected behavior.
    So for quitting sending email to the content owners, the only way is disabling the Content Organizer Processing job.
    By default  the Content Organizer Processing job runs once per day, with compromise  you can balance the timer job frequency against the need for the content owners to be notified.
    Reference:
    How to disable Content Organizer Processing job from sending email?
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Files corrupting when sending email attachments from Mail & Thunderbird

    Hi All
    I'm hoping that someone will be able to help here as this problem is driving me crazy!
    Most if not all of my email attachments are corrupting when sending from Apple Mail and Thunderbird.  I'm also having issues with publishing files via FTP from Rapidweaver 5!  I have spoken to BT about the issue but they have tested the line and say everything is OK.
    The strange thing is, it's happening on my MacBook Pro (Mountain Lion) and my Mac Pro (Lion). The problem's also happen when I'm using a friends high speed internet connection so that only leaves the server. I'm really out of my depth with the server side of things though. I did have a reply from Servage (my hosting company) who said I may have been the subject of a hack and an upload script!! Not sure what this means or how to check if this is the case. One question though, would this corrupt email attachments as well as uploading to the server?
    Many thanks
    Mark

    Further to the above:  I have now found that the same corruption happens when I email attachments and FTP from my PC laptop, so this rules out a computer issue.  I have also swapped wireless routers and exactly the same problem.  As mentioned above, I don't get the corruption when using another internet connection.
    Also, I have an iPhone which I've restored to factory default settings and when I take a photo with the phone and email it (using my home wireless network), the file corrupts, everytime.
    Using services such as YouSendIt and WeTransfer, gives the same problems!
    I'm desperate for help on this one and I'd even pay someone to resolve it!

  • Drop off library can't route garophic file to gallery

    Hello
    I have some problem with drop off library, my rule worked correct for document library but when I wrote rule for image gallery can't rout these file, if I create rule just on title of image gallery , That works correct but the other rule can't route file
    to destination. What must I do for this problem?

    Have you got matching content types? The routing works on a combination of content type and metadata, not just the title column.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Retention Processing does not move Document Set to the Drop Off Library

    Hi Everyone.
    Had Retention Processing working fine. Moving files between Document Librarys and the Record Centre using Information Management Policies to move to the Drop-Off Library where the Content Organizer Rules moved them to the relevent Library.
    It has all come to a grinding halt with the following line in the '14 hive' logs.
    Skipping retention processing for item /doc/Housing/1 RET TEST SET on web http://moraysrv052/doc because there is an unprocessed schedule update.    1b1dfe42-28f9-440a-b84a-17c20aa9c7d6
    I have searched the Internet and these forums but can find no reference to this error, Can anyone help as automatic retention policies are crucial to our Sharepoint Implementation.
    Cheers
    Ross Urquhart

    Vinit
    Thanks for the advise but not the answer unfortunately.
    I have the Content Organizer & Expiration Policy Timer Jobs running every 15 mins, Information Management Policy runs Weekly as this only effects changes to Policy. I have changed the times so all jobs run every 15 mins. Still get the same error message.
    Expiration worked perfectly before when it was triggered by Closure Date, A column we created which the user populates to indicate the Document can be closed. Retention then moves the Document to the Record Centre. I changed the trigger on one of the Document
    Sets to be Created Date and this generates the error, Change this back to Closure Date, no error, Document moves to Record Centre Drop Off Library.
    Another observation. If Retention is against a any other Content Type it is called Created if it is against a Document Set Content Type it is called Created Date, however when you review the Compliance Details of the Set it is called Created.
    Does this trigger any ideas.
    Cheers
    Ross Urquhart

  • Drop Off Library and Content Organizer Rules allow bypassing of destination permissions

    I had a test scenario where
    User Betty didn’t have permissions to a destination library (only I had permissions to it)
    Via the Content Organizer rule and the Drop Off library, Betty could send a document to a library where she didn’t have access.
    Anyone addressing this issue and how?  We just don't want people to be able to send things to a destination where they don't have access, but looks like the Content Organizer Rules impersonate some part of the move.
    What's odd is you can see the "CreatedBy" as Betty, but she can't go to the library and even see the moved document...permission is denied.

    Hi Bubberz1,
    This is the known and documented behavior of the content organizer. To prevent someone from using the content organizer in this way, you'd need to prevent them from having access to add documents in the drop off library in the first place, or else
    use some other process, such as workflows, to move the documents using the creator's permissions.

  • Report router rules and drop off library in Sharepoint

    Hi,
    I am running the report from the Report Setting link in Duet Enterprise. I get the message saying, 'The report has been submitted for processing and will be delivered to your Reports page".
    But i am not getting any reports in the reports page. After googling, i got to know that i will have to confiure the Report Routing rules for the same. Also a Drop off library needs to be maintained.
    Could anyone please explain the detailed steps for doing both these activities? Being a SAP expert, i dont know much about SharePoint sites.
    ~ Ramanath

    Hi,
    lets perform some checks to see where we are actually failing.
    The error
    User may not be a Duet user.
    SAP system not configured or changed on add-on.
    SAPID passed was not present in the master system.
    means that somewhere on the server where the report is running the information that is retrieved from the SCL server is not correct. In your case these two systems (the server that is running the report and the SCL) are the same, but technically the flow is similar to the case that both would be on seperate system.
    So the first thing I would check is if the RFC destination and the logical port that was configured is correct.
    (all the following steps are done on the SCL in your case):
    At first go to LPCONFIG and search for the Proxy Class: /OSP/CO_REP_ADAPTER_WSVI_DOCUM with Default Port checked.
    Make sure that this logical port is active, then go to the Call Parameters tab. Here you should see in the HTTP Destination an entry IWCNT_REPT_ACT_HTTP_DEST.
    Double click on that (don't save any changes if you get a prompt) and you will end up in SM59. Here you should see in the target host field the hostname of the SCL server. Under Service No. the HTTPS Port of your SCL system and finally in Path Prefix you should see something like this:
    /sap/bc/srt/pm/iwcnt/repadapterwsvi_document/001/duet_enterprise_assertion/1/binding_t_https_a_http__-iwcnt_-repadapterwsvi_document_duet_enterprise_assertion
    Before performing a connection test, go to the "Logon & Security" tab. Here you should see in the "Logon with Ticket" secion "Send Assertion Ticket for Dedicated Target System" checked and also SSL Active in the Status of Secure Protocol. The SSL Certificate is set to "ANONYM SSL Client (Anonymous)".
    If that is all the case, then click on "Connection Test". The result should be a HTTP 415.
    Let me know if that helps.
    Regards,
    Holger.

  • How can i send a big file as pararameter of any method in a Web Service???

    Hello,
    i have a problem,,,,, i want to send a file of 2mb as parameter of a web service method.
    When i send this file as a vector of bytes i have the error out of memory...
    If the file is 200kb or smaller works fine....
    How can i send a big file as pararameter of any method in a Web Service???
    thanks in advance and excuse me for my bad english

    you can think about streams.
    in our case, what we did is, we will place a file in a common ftp server and return the url to the client.
    regards,
    mukunt

  • Routing from Drop Off library - How to maintain same folder structure in target library after routing

    Hello,
    After routing from drop off library to other target library, how can I maintain folder structure dynamically.
    For example 
    Inside Drop off library user creates folder on monthly basis
    1. Drop Off > Feb > Document 1
    2. Drop Off > March > Document 1
    Now after routing i want to have same folder structure created inside target library. So target should library look like 
    Target Lib > Feb > Document 1
    Target Lib > March > Document 1
    Please Note - folder creation in drop off library happens every month, and user can choose any Name for these folders, so here I can not consider Static Routing rules.
    Kindly help me out.
    Thanks!!!
    Mayank Nigam

    The content organizer can't do that. If you really need this functionality, you'll need a workflow to do it. But you also need to consider if the use of folders per month is really what you want here. Maybe you'd prefer to use metadata instead of folders
    for grouping.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Web Service Project using WSDL file

    Hi All,
    I want to create web service project using WSDL file(I already have a wsdl file), which needs axis2 run time to generate correct project structure, I did this in eclipse but now I want to do it through JDeveloper(11.1.2.0.0), so please suggest me any ways on how can I configure axis2 runtime in Jdeveloper, and is it possible do it in Jdevloper?
    Thank You,
    Sunny
    Edited by: Sunny on May 8, 2012 1:51 AM

    Have you installed the 64-bit Access driver on your machine? See
    Data Source Names and 64-Bit Operating Systems for the differences in odbcad32. Call %SystemRoot%\system32\odbcad32.exe to check the drivers.
    How do you host your service? Stand-alone or IIS or embedded to another application? Keep in mind that IIS7 runs it in its application pool which is defaullt 64bit. Thus the bad image exception, when compiling your service as 32bit.
    When you need the Access database for your service to store informtation, then I would switch to SQL Server (Express) or XML files depending on your actual needs.
    Also check whether your account under which your service is run has the necessary NTFS file permissions on the access file and the folder. This is getting even more complex when it's a remote folder.

  • How different Web Services can use a class which parses an XML file

    I am using RAD6.1 for developing and deploying web services.As I am using 15 web Services which uses a common class which is used to parse an XML file.As this XML file should be parsed only once and should be used by all the web services.I have made this common class as Singleton but it works as singleton for only one webservice and for other web service again it is parsing the xml file.I want to parse this xml file only once and used by all the web services.In my case tis file is parsed 15 times for 15 web services, but it should be parse donly once and used by all 15 services.Please give me the solution.
    Thanks and Regards
    Sayeeduzzaman

    Hello,
    the 15 Webservices should have a static attribute which contains the xml:
    private static String xml;
    then initialise the xml like this:
    if (xml == null)
    xml = parseIt();
    else
    //do nothing, XML already initialised!
    }

  • Configure Drop off library with no permission for users on target document libraries

    I have configured content organizer feature and created 3 rules with 3 target document libraries.
    Users have only permission on drop off document library.
    When they upload, document is moved to target doc lib, but pop-ups message saying you do not have access to view.
    Is there a way to stop that message from showing?
    We do not want to give permission for users on target libraries.
    Thanks,
    Abhilash

    As per my knowledge, you cannot supress this message
    However, you can create a redirection script on Upload.aspx page which will redirect users to home page once document uploaded.
    Here is an example of same:
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/1c22db84-b652-43bb-b85b-f1757e65e531/redirect-to-a-custom-confirmation-page-after-upload-the-document?forum=sharepointgeneralprevious

  • Can you help with why my Ipad, when streaming with Airplay, drops off my wifi extender?

    Hi, I use a wifi extender to get better coverage down the back of my house. When close to my router, I use airplay  from my ipad on my regular network, streaming to my marantz sr5007. It works perfectly. When I'm in the backroom, I choose the extender network for my ipad (network.ext) to stream music using airplay. After a few minutes (normally 3 but it's been up to 20minutes), the music stops and the ipad shows it's back on it's own speaker. No music is playing. I can then choose the marantz again, the music will start. Two minutes later the same thing happens.
    This only happens when on the SSID of the extender. Strangely, when I use itunes on my pc to stream music, and place it on the extender SSID, it's stable and keeps the connection to the marantz.
    Any help would be greatly appreciated.

    Thanks very much. I'm going to contact Netgear when I get home to see if they've got any ideas.
    I'll also try to use a static IP for the marantz. That seems to have helped a couple of people.
    Thanks again.

Maybe you are looking for

  • How do I restrict Adobe CC to just my user account (Mac)?

    Can anyone help with this please ... I'm running Adobe CC on a 2010 iMac (OS X Yosemite).  I'm delighted with it, however ... Several family members share the same iMac using separate user accounts.  Adobe CC seems to run for all of them which is ann

  • Blank User Name Problem when trying to log in to email set up

    Hi, I've seen this issue posted on various places on this forum but no satisfactory answers. I want to add and remove email addresses on my Blackberry Curve and also change the message that is seen when I send an email from the Blackberry. When I typ

  • Bi 7.0 SD report for previous year, month, current month, rolling 30days.

    I have Sales document type in rows and in column, I have no of sales documents. Now, I need sales documents in rows and no of sales documents in columns according to created on date: 0calday of types as follows List of columns: Previous year    last

  • Import data from excel + tables created..

    hi, i use excel in some situations for data entry or to filter my tables.... my question, i notice that whenever i use excel data for a report or for a filter in other report , there are automatically generated some tables , such as TT0D6KAHL10DQ5E92

  • Is it possible to create multi-step parallax effect in Muse?

    I wonder if it is possible to create parrallax cheme like here http://www.rbcplus.ru/news/551a11037a8aa955a2b7f0cb Namely: 1) the object (in this case left sidebar http://c2n.me/3gdkXLL.png ) is scrolling along with all page till some point 1 2) the