Docx file upload to content repository on MS Sharepoint

I have installed Primavera P6 EPPM version 8.2 in use with content repository on MS Sharepoint 2010 SP1.
When I an trying to upload files with extensions "docx", "xlsx" ... system message "uknown error, please contact
your System Administrator" pop ups.
Plus to it, all uploaded documents dissapears from list in "Projects" menu "Documents" . In "Dashbords" portlet
I can see all earlier uploaded documents.
May be somebody had similar problems and found solution for it? Advice would be very valuable.
Juozas

I'm not sure about that code for the file upload part. You should really go find the File upload stuff from Jakarta Commons or UploadBean from whoever wrote it. That will handle the file upload. The database part, there are tutorials in Java's site ... try searching for "store image database"

Similar Messages

  • How to Upload a file to KM Content repository from a Portal Application

    Hello All
    I have a urgent requirement where i have to upload a file to a KM Content Repository from my Portal Application which is a JSP DynPage Component..
    I am new to the area of Knowledge Management...Can anyone guide me of how to achieve this functionality from my component..
    I will be highly obliged..
    Thanks
    Sundeep

    Hello Sundeep,
    Check this:
    https://www.sdn.sap.com/irj/sdn/thread?threadID=241883
    One more important doc:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5f7ced90-0201-0010-589f-8eff15a14072
    Sample coding for content creating and retrieval
    String out = new String(“my content”);
    ByteArrayInputStream data = new
    ByteArrayInputStream(out.getBytes());
    IContent newContent =
    new Content(data, “text/plain”,
    data.available());
    resource.updateContent(newContent);
    IContent oldContent = resource.getContent();
    Greetings,
    Praveen Gudapati
    p.s. Points are always welcome for helpful answers
    Message was edited by:
            Praveen Gudapati

  • Employee Photo upload vs Content Repository

    Hi Guys,
    Can anyone explain me
    1. What are the different circumstances we use different Document Area and Storage Type for Uploading Photos in SAP?
    2. Is ther any space constraint and performance issues in storing Photos in R/3 database?
    3. What is the recommended document Area and Storage Type if I need to upload more than 50,000 photos?
    Thanks in Advance,
    Regards,
    Nithya.

    Hi Dude,
    1. Create a number range for SAP Archive Link : 
    IMG->Basis Components->Basis Services->SAP Archive Link->Basic Settings->Maintain number ranges. 
    Tcode OANR. Create range 01 from 0000000001 to 9999999999 without the external number flag. 
    2. Document type HRICOLFOTO must exist with document class JPG. 
    IMG->Basis Components->Basis Services->SAP Archive Link->System Settings->Maintain document types. 
    Table TOAVE, Tcode OAC2. 
    3. Document type HRICOLFOTO must be linked to object type PREL and IT0002. 
    IMG->Personnel Management->Personnel Administration->Tools->Optical Archiving->Set up Optical Archiving in HR. 
    View V_T585O, no Tcode. In all three columns there ara minuses, donu2019t put a flag in the check box. 
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL. 
    IMG->Basis Components->Basis Services->SAP Archive Link->Basic Settings->Maintain Links. 
    Table TOAOM_C, Tcode OAC3 
    5. Create this content repository with storage type FILE archive. 
    IMG->Basis Components->Basis Services->SAP Archive Link->Basic Settings->Maintain content repositories. 
    Tcode OAC0 
    Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C:\). 
    6. Link photo to personnel number. 
    Menu->Tools->Business Documents->Miscellaneous->Stored Documents. Tcode OAAD. 
    Click on the Create button. Business object PREL and Docyment type HRICOLFOTO. Click on create (fill in the right personnel number in the pop up and click Continue). Choose the photo (as a JPG file) from the place where it is saved (e.g. hard disk). SAP will notify that the Stored Document was created succesfully. Photo is visible via PA10, PA20, PA30, PA40. Double-click to magnify photo. 
    To delete archived document : 
    Tcode OAAD, click Find. In docyment type field select HRICOLFOTO and after execute you get a list of all documents. Select appropriate document and click on delete icon. 
    Don't forget to adjust IT0002 header!!!!
    Please also see SAP Note 488281.   Here's some of what it says: 
    1. The pictures (.jpg or .bmp) must be available on your PC. 
    2. Start transaction OAAD. 
    3. Choose function 'documents -> create' 
    4. Choose as business object 'PREL' and as document type 'HRICOLFOTO' 
    5. Push the create button 
    6. Fill in the appropriate personnel number 
    This solution requires SAP Archivelink to be installed.
    Use SICF tcode that displays lot of services. Under sap --> bc there is a service called content server interface. Activate this service. 
    Now Create the A2 repository with TCode OAC0. 
    While creating the repository, keep the Document Area blank, Storage type as R/3 database, Rep. Sub-type will appear as Normal by default, Version No. as 0046 and in Contents table put 'SDOKCONT1' as the table name. 
    This will set the config part. Now upload the picture using tcode OAAD.

  • Zip file upload to content area

    Has anyone tried zipping up a huge folder on the filesystem, say around a 100 files and uploaded the zip to a content ara folder? I could successfully upload the zip file but and then used the unzip link next to the uploaded content. It unzips as well, but when I click on the folder to view the unzipped files, before it could show me the 100 odd files, the server times out. I believe it is due to the number of files in a single folder. If I do the same thing with a hierarchy of folders and sub-folders containing only 10s' of files it works and displays the page to me with all links working.
    I hope you must have tried this, and pls. help me and provide me an alternative.

    check out this OSS Note No. 925327
    <a href="http://service.sap.com/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=925327">HTTP error: 411 Length Required in upload to content server</a>
    Regards
    Raja

  • Content Server with File System Based Content Repository

    Typically the SAP Content Server is installed with a SAPDB database. The content server software serves the content from the content repository - the SAPDB database.
    I recall reading a few years ago about (unofficial?) plans from SAP to support file system based repositories, with the content server controlling access. So from a KPRO application perspective, whether the document was in a database or on a filesystem is hidden.
    Can anyone tell me whether this is available yet? And if so, under Windows operating systems?
    Regards
    Andrew

    HI Frank Weitzdörfer  ,
    Could you share about architecture of this scenario ?
    Can I use a simple PC as content repository and keep content server  and R/3 System in the same box and define some link between CS & PC based repository.
    Regards
    Gopal Jaiswal

  • Need help displaying HTML files stored in content repository

    I have a very simple HTML file stored in a binary attribute (so the file could
    be uploaded through the Admin Portal) named "html" in the BEA Repository (8.1sp2)
    and would like to display it in a JSP. Here's a snippet from that JSP:
    <cm:getNode path="<%=myNodePath%>" id="myNode"/>
    <cm:getProperty node="<%=myNode%>" name="html" conversionType="html"/>
    I expected the getProperty tag to fetch the HTML file and render it inline, but
    I guess that's wishful thinking. Am I missing something?
    Thanks for any help!

    I added transactionTimeout="30" to the tag shown below. That did the trick, as
    long as I avoided certain combinations of tag attributes. Guess this one's a little
    moody.
    Thanks, Greg.
    Gregory Smith <[email protected]> wrote:
    Try setting the transactionTimeout to something greater than 0 on the
    <cm:getProperty> tag.
    Greg
    Marc N wrote:
    I have a very simple HTML file stored in a binary attribute (so thefile could
    be uploaded through the Admin Portal) named "html" in the BEA Repository(8.1sp2)
    and would like to display it in a JSP. Here's a snippet from that JSP:
    <cm:getNode path="<%=myNodePath%>" id="myNode"/>
    <cm:getProperty node="<%=myNode%>" name="html" conversionType="html"/>
    I expected the getProperty tag to fetch the HTML file and render itinline, but
    I guess that's wishful thinking. Am I missing something?
    Thanks for any help!

  • Files Uploaded using Mapped Drive (UNC) to SharePoint Document library Putting a copy in Recycle Bin , odd SharePoint Behaviour

    Hello All,
    One of my client reported a strange behaviour.
    Client mapped SharePoint document library to local share(UNC, NetWork Map Drive). Opened MS Word on local machine ,saved it to the share on his local machine. The document is saved successfully to SharePoint document library. But at the same time he can
    see a file with same name in Recycle bin and the size of the document in Recycle bin is <1k.
    Does any one know whether it is expected behaviour, why SharePoint putting this 1k file in Recycle bin?
    I tried the same thing on my Dev Environment for both SharePoint 2010 and 2013, in both environments the behaviour is same as my client experience.
    I have seen in forums some other people also experiencing this odd behaviour, but no one knows why.
    any info on this much appreciated.
    Regards,
    Andrew

    Hi Andrew,
    i tried in my environment for 2010 and 2013. The issue doesn't occur.
    Here is what i did.
    1, Create a new mapped drive(\\servername\DavWWWRoot\Shared Documents) for document library
    2, New a Word doc and input some string, save in the mapped drive.
    3, The doc exists in the document library, but no file in Recycle Bin.
    Did i miss something?
    Regards,
    Tom
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to
    other community members reading the thread.

  • How to Upload Mutilple Images in content repository?

    Hi
    How to Upload Mutilple Images in content repository?
    I have a html which shd be displayed and it has 3 images which shd be displayed
    in the same page
    Here i am able to display the HTML uploaded in content repository
    but the images are not displayed,since the path is not valid for the images.
    Can any one hint me in this,
    wating for the reply
    Thanks in Adv
    Regards
    Suresh

    Suresh, your html specifies an image at resources/images/privacy.gif - is that
    image in your repository at the correct relative position to where yout html is?
    Your html and repository structure must match. So if the html you posted is at
    /BEA Repository/foo.html
    then privacy.gif must be at /BEA Repository/resources/images/privacy.gif
    James
    "Suresh" <[email protected]> wrote:
    >
    >
    >
    Hi James
    Here i have attached my sample html and image
    My Repository Structure is as follows :
    Virtual Content Repository
    BEA Repository
    MainImage type image
    Privacy type i created
    ----StartDate
    ----EndDate
    ----File Upload
    My HTML
    <HTML>
    <HEAD>
    <TITLE> New Document </title>
    <META NAME="Generator" CONTENT="EditPlus">
    <META NAME="Author" CONTENT="">
    <META NAME="Keywords" CONTENT="">
    <META NAME="Description" CONTENT="">
    </head>
    <BODY>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td class="norBold"><img src="resources/images/privacy.gif"
    width="123"
    height="73">Privacy
    Policy</td>
    </tr>
    <tr>
    <td class="formHeadBack" height="19"><b> Privacy Policy</b></td>
    </tr>
    </body>
    </html>
    and
    one image
    Thanks in Adv
    Suresh
    "James Owen" <reply.to@newsgroup> wrote:
    Suresh, how is your content structured and what does your html looklike?
    If you
    could post examples, that would be helpful.
    thanks,
    James
    "suresh" <[email protected]> wrote:
    Hi
    How to Upload Mutilple Images in content repository?
    I have a html which shd be displayed and it has 3 images which shd
    be
    displayed
    in the same page
    Here i am able to display the HTML uploaded in content repository
    but the images are not displayed,since the path is not valid for the
    images.
    Can any one hint me in this,
    wating for the reply
    Thanks in Adv
    Regards
    Suresh

  • C Folder Content Repository Scenario Settings

    Dear All,
    We have vendors who will upload the file from Internet.
    Is activating/incorporating  Scenerio B feasible.
    Re: cFolders Storage options
    http://help.sap.com/saphelp_cpro31/helpdata/en/d8/caa73575274e38b12589b5bccba5b9/frameset.htm
    I require settings to incorporate Scenario B which stores files onto the content repository.
    Kindly help.
    Regards,
    Tushar Dave

    Yes I've tried building the image in MDT with just English and I get the same problem.
    Very weird.  I also tried manually editing unattend.xml in the middle of the build just before it reboots to add skipuseroobe and the language but I get this error in the logs and i get the "Windows could not parse or process unattend answer file [C:\Windows\Panther\unattend.xml]
    for pass [oobeSystem] error"
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "UILanguage" could not be found. error:(2). Ignoring.
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "UILanguageFallback" could not be found. error:(2). Ignoring.
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "UserLocale" could not be found. error:(2). Ignoring.
    2014-06-18 15:11:43, Info [MUIUNATTEND.EXE] Unattended setting "InputLocale" could not be found. error:(2). Ignoring.

  • The Adobe Reader conversion ability to Word (.docx files) will not work. How can I get my money back?

    I signed up and paid for the service that Adobe Reader advertizes that says it can convert PDF files to Word (.docx) files. I tried it immediately after purchasing it and it did not work. What it did was it converted it to a .docx file but the content was in the form of a picture and therefore uneditable. This does me no good. Basically, it took a screen shot of the PDF and then inserted it as a picture into a word file. I wouldn't call that conversion. I would like my money back. How can I get my money refunded to me?

    If the original PDF was an image, you need to perform OCR (text recognition) during the conversion.
    To cancel the subscription go to http://helpx.adobe.com/x-productkb/global/service-b.html
    [topic moved to ExportPDF forum]

  • CRM - Content Repository Configuration

    Hi,
    I want to know the steps to configure the Content Repository in CRM 4.0.
    The Scenarios is ,
    This is Data Archiving Project, and we have completed DA sucessfully.
    now,
    We want to move the Archived files to a Content repository.by mentioning the content Repository under Technical settings in Archiving Object Specific Customizing.
    I have created the Content Repository in OACO
    OAC0 configuration is as follows :
    Content Rep : A3
    Document Area : Data Archiving . (Am not sure ,if i select   any other options it is not displayed in technical settings [Archiving Object Specific Customizing] )
    Storage Type : RFC Archive
    Protocol : (Nothing it's Empty )
    Version No : 0031 (Automatically taken)
    RFC Destination : boi356_CPS_00
    Basic Path : /tmp
    Archive Path : /tmp
    Output device : (Nothing it's Empty )
    As per the Basis Team input,the physical File Path mentioned in Transaction FILE is ,
    usr/sap/A2/xchange/archive/CA_BUPA/<FILENAME>
    When executing the Archive Process .
    Write Process is Completed Sucessfully ,(I checked the Spool Log message)
    When Storing it's giving Error like below.
    Job started
    step 001 started (program RSARCH_STORE_FILE, variant , user ID 20369031)
    Archive file 000108-001CA_BUPA is being processed
    Archive file 000108-001CA_BUPA does not exist
    error occured when checking the stored archive file 000108-001CA_BUPA
    job cancelled after system exception ERROR_MESSAGE .
    Message class > BA
    Message no > 194
    Message type > E
    Thanks in Advance .
    Regards
    Ganesh

    Archive File -> During the archiving process the Write program copies the data to be archived from SAP tables to a flat file which is called as Archive file. The archive files are stored in the path specified in Archiving object specific customizing ie Logical file name. Logical file name is defined via TA: FILE.
    Content Repository -> Content Repository represents the logical storage space for documents in a content server. SAP can store the archive file into to a content server using Content repository
    Content Server -> Is the storage for archived data. Hence it is also known as archive server. The archive files that were created by the write job can be stored into a Content Server using Store Job. The Store job moves the archive files from path specified in TA: FILE to a content/archive server storage.
    Ixos, FileNet, SAP Content Server etc are examples of archive server softwares
    In your case since you do not use any content server the archive files will remain in the path specified in the TA:FILE.
    Where do you want to eventually store the archive files? Path specified in TA: FILE or some other location?
    Hope this helps
    -Samanjay

  • How can we upload file into to OCS Content repository when we are in Apex

    We have installed the Oracle Application Express 2.2.1 into the OCS 10.1.2 database.
    The Apex authentication is set to operate with OCS SSO.
    We have made a form. There is a browse button on the form. We would like if the uploaded file appeared in the OCS content database repository as
    opposed to Apex document repository.
    To put it into another word, how can we upload the file into to OCS Content repository when we are in Apex.
    Generally speaking, how can we reach content from Apex?
    We have found many java based examples to use content sdk, but how can we use them with Apex? We believe that
    content hasn't got plsql interface.
    i would highly appreciate it if you sent me a full example program.

    Hi Ram,
    Thanks for the reply
    We have a requirement to device a solution to upload the policy documents related to iProcurement
    I am planning to create an OA page to upload the content and planning to use the AOL function security to restrict the users those who can access this page .
    Is there any better way to implement the security?
    Is this approach feasible or is there any better way to approach this requirement?
    Thanks

  • IStore Uploading source files to content repository

    I follow iStore Quick reference guide and try to add file to content repository. I use a user with iStore Administrator responsibility however from the content page I see the links/tabs to Usage Summary/Media Objects/My content/Library/Pending Approvals/Trash but not Content repository where it is supposed to be possible to add files/images etc to oracle content repository. Any hulp would be appreciated.

    The "report abuse" link for the original post in a thread is in the Actions box to the right of the post.
    I seem to spend more time reporting posts to be moved than answering questions.

  • Problem upload too large file in a Content Area ORA-1401

    Hi All
    I have a customer who is trying to upload a file with a too large name in a content area.
    If the filename is 80 characters, it works fine.
    But if the filename is upper or 80 characters the following error ocurred:
    ORA-01401: inserted value too large for column
    DAD name: portal30
    PROCEDURE : PORTAL30.wwv_add_wizard.edititem
    URL : http://sbastida-us:80/pls/portal30/PORTAL30.wwv_add_wizard.edititem
    I checked the table: WWV_DOCUMENT and it have a column name: FILENAME is defined like VARCHAR2(350).
    If i run a query on this table, the filename column stores the filename of the file uploaded.
    Is this a new bug? may i fill this bug?
    Do you have any idea about this issue?
    Thanks in advance,
    Catalina

    Catalina,
    The following restrictions apply to the names of documents that you are uploading into the repository:
    Filenames must be 80 characters or less.
    Filenames must not include any of these characters: \ / : * ? < > | " % # +
    Filenames can include spaces and any of these characters: ! @ ~ & . $ ^ ( ) - _ ` ' [ ] { } ; =
    Regards,
    Jerry
    null

  • How to fetch mpg file from content repository

    Hi All,
    I have uploaded a mpg(video) file in content repositoy. But I am not able to fetch
    it and display it using embed tag.
    is anybody aware of a right method to do the same?
    Thanks in advance.

    I was thinking there might be a difference in how the browser handles a
    path with a space when typed into the address bar vs. how the browser
    plugin/activex-object handles a path with a space when it gets it from
    the <param> or <embed> tag.
    Otherwise, I'm not sure what's going on. How content displays on
    someone's computer mostly depends on the persons's computer, how it's
    configured, what's installed, etc. If you can get the Node's BinaryValue
    from the WLP server and it has the correct ContentType and the correct
    bytes, then, at that point, WLP is no longer really involved.
    Do PDFs, word docs, audio, shockwave, and other binary media types
    stored in a WLP content repository display correctly with
    <object><embed> tags in your browser?
    Vijay wrote:
    Hi Gregory Smith,
    There is no problem with path at all. The same path if I write in address bar
    of browser it opens a widows media player and plays the video file.
    Pls suggest.
    Vijay B.
    Gregory Smith <[email protected]> wrote:
    See if using a path of
    http://etgjw4:7001/JWWebApp/ShowBinary/BEA+Repository/Ads/AdsPopup/ad1//image
    (note the + between BEA and Repository) changes anything. If so, you
    can
    use the com.bea.content.manager.ContentHelper.pathInfoEncode() method
    to
    URLEncode the node path, e.g.
    http://etgjw4:7001<%=request.getContextPath()%>/ShowBinary<%=ContentHelper.pathInfoEncode(node.getPath())%>//image
    or, the <cm:getProperty> tag supports this automatically, e.g:
    http://etgjw4:7001<%=request.getContextPath()%>/ShowBinary<cm:getProperty
    name="cm_path" node=<%=node%> conversionType="url"/>//image
    (You might need to double check that code in workshop to make sure it
    compiles).
    Greg
    Vijay wrote:
    Hi Gregory,
    When I type the repository path //property name in the browser's addressbook,
    It opens a windows media player and plays the video file.
    But when I copy the same path and paste it in embed/object tag it justloads up
    a windows media player. When I see the error details it says "Cannotopen. Please
    verify that the path and filename are correct and try again." Thereis a advanced
    button on error window clicking on that it shows "The specified streamtype is
    not recognized. (Error=C00D07E2)
    Cannot open. Please verify that the path and filename are correctand try again.
    (Error=C00D07E2)".
    can you give me a solution on this?
    The HTML code that I have written is attached to this query.
    Thanks alot,
    Vijay
    Gregory Smith <[email protected]> wrote:
    First, make sure the BinaryValue of the property of the Node has the
    correct content-type (should be video/mpeg, or similar). This can be
    in
    1 of the following ways:
    1. Look in the BLOB_CONTENT_TYPE column of the CM_PROPERTY table.
    2. Get the Node (e.g. with <cm:getNode>), then get the BinaryValue
    (with
    <cm:getProperty>), and call the getContentType() method of the BinaryValue.
    3. Show the ShowBinaryServlet on the Node in the browser and see what
    your browser does. The URL would probably be something like
    http://<server>:<port>/<webapp>/ShowBinary/<path to node>, e.g.
    http://localhost:7001/sampleportal/ShowBinary/BEA+Repository/mynode.
    You
    can bring up the properties for that in IE, or Page Info (Ctrl-I) in
    Mozilla; that should tell you the content type the browser received.
    If it's not something like video/mpeg, then that's why it's not working.
    Make sure you browser has support of mpegs in <embed> by creating a
    simple html file with an <embed> to an mpeg file (don't use the server
    at all). If that works and the content-type of the node is correct,you
    should be to create an html file with an <embed> to the URL in #3 above,
    e.g.
    <embed
    src="http://localhost:7001/sampleportal/ShowBinary/BEA+Repository/mynmode">
    </embed>
    If that works, make sure your jsp is generating the correct HTML.
    Greg
    Vijay wrote:
    I am using weblogic 8.1.
    Gregory Smith <[email protected]> wrote:
    What version of WLP are you using?
    Vijay wrote:
    Hi All,
    I have uploaded a mpg(video) file in content repositoy. But I am
    not
    able to fetch
    it and display it using embed tag.
    is anybody aware of a right method to do the same?
    Thanks in advance.
    New Web Application Page

Maybe you are looking for