Problem with file contents in blank

Hi,
I have the next code :
javax.jms.TextMessage textMessage = (javax.jms.TextMessage) response;
try
java.io.FileWriter filewriter = new java.io.FileWriter("testfile.out");
filewriter.write(textMessage.getText());
catch(java.io.IOException jeio)
System.out.println( "[Reply] " + textMessage.getText() );
I receive the response from JMS in the variable textMessage, and I try output the Reply in a file, but the file contents it's blank.
How I do, to see the Reply in the file contents ????
Thank's.
Hervey P.

Try closing the FileWriter after you've written to it.
filewriter.close();
Hope this helps
Regards
Omer

Similar Messages

  • Problem with File Content Conversion

    Hi All
    I am facing a problem with file content conversion.
    This is my sample file structure:
    Header_Record (Occurance - 1)
    Field1 in Header
    Field2 in Header
    Item(Occ-1 to n)
    Field3 in Item
    Field4 in Item
    <<ItemType>> (Structure in Item) (Occ - 0 to n)
    <<Field5>> in ItemType
    <<Field6>> in ItemType
    <<ItemTypeCategory>> (Structure in ItemType)(Occ - 0 to n)
    <<<<Field7>>>> in ItemTypeCategory
    <<<<Field8>>>> in ItemTypeCategory
    Footer_Record (Occurance-1)
    Field9
    Field10
    There is a key field 'Type' in all the above records with unique value in each record.
    Now, I defined Field content conversion as follows:
    Recordset Structure: Header_Record,1,Item, * , ItemType, * ,ItemTypeCategory, * ,Footer_Record,1
    Recordset Sequence: Ascending
    KeyField Name: Type
    Following are parameters defiled:
    Header_Record.Keyfieldvalue: 00
    Header_Record.fieldseperator: ,
    Header_Record.fieldnames: Field1,Field2
    Header_Record.endseperator: 'nl'
    Item.keyfieldvalue: 05
    item.fieldseperator: ,
    item.fieldfieldnames: field3,field4
    item.endseperator: 'nl'
    ItemType.keyfieldvalue: 10
    itemType.fieldseperator: ,
    itemType.fieldfieldnames: field5,field6
    itemType.endseperator: 'nl'
    ItemTypecategory.keyfieldvalue: 15
    itemTypecategory.fieldseperator: ,
    itemTypecategory.fieldfieldnames: field7,field8
    itemTypecategory.endseperator: 'nl'
    Footer.keyfieldvalue: 20
    Footer.fieldseperator: ,
    Footer.fieldfieldnames: field5,field6
    Footer.endseperator: 'nl'
    Now, i pass the following file:
    00,111
    05,222
    10,333
    15,444
    20,555
    What i expect out of my FCC is this (Sample output to show the hierarchy of field values):
    00,111
    05,222
    <<10,333>>
    <<<<15,444>>>>
    20,555
    But, I am getting this output (Hierarchy is missing. All the structures are in the same order without hierarchy):
    00,111
    05,222
    10,333
    15,444
    20,555
    Field values are being identified according to field content conversion, but, the hierarchy of the fields is missing.
    Can you please tell me how should i change my FCC config?
    Sorry for this long question.
    Many Thanks
    Chandra
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:10 PM
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:16 PM
    Edited by: Chandra Sekhar H on Jan 30, 2009 7:17 PM

    You will always get a flat structure from FCC. If you want hierarchichal strucuture, you have to create a target and map. You will get only like -
    Root
    --Recordset
    Group1
    Fields
    Grop2
    Fields
    Group3
    Fields
    VJ

  • Problem with file content conversion in receiver file adapter

    Hi All
    I have a problem with file content conversion in receiver file adapter.
    This is my recordset structure: Header_Record,1,Claim_Record,*,Check_Rec,1
    These are the content conversion parameters:
    Header_Record.fieldSeparator = ,
    Header_Record.endSeparator = 'nl'
    Claim_Record.fieldSeparator = ,
    Claim_Record.endSeparator = 'nl'
    Check_Rec.fieldSeparator = ,
    Check_Rec.endSeparator = 'nl'
    In SXMB_MONI, i can see that the data is correctly extracted from proxy, and correctly mapped to receiver message, and i see a checkered flag (success).
    But, Adapter status is RED with the following error message:
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter '1.fieldFixedLengths' or '1.fieldSeparator' is missing
    In communication channel monitoring, i get the following error message:
    Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Channel has not been correctly initialized and cannot process messages
    What is going wrong here? Can anyone please tell me?
    Thanks
    Chandra

    Posted in Incorrect forum.
    Posted again in Process Integration forum

  • Problem with File Content Converion at the Receiver Side

    Hello
        I have an xml file which is in this format.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:OUTPUT_ITALY_FORMAT_TYPE xmlns:ns0="urn:sli-payment-files:prototype">
       <FEBRITRH>
          <Filler/>
          <RH/>
          <ABI_Code/>
          <SIA_Code>65318</SIA_Code>
          <Creation_Date/>
          <File_Identifier/>
          <Filler1/>
          <Application_Center/>
       </FEBRITRH>
       <FEBRIT61>
          <Filler/>
          <SixtyOne/>
          <Accnt_Number>0000001</Accnt_Number>
          <Filler1/>
          <Blank/>
          <Number/>
          <Description/>
          <Accnt_Code/>
          <Bank_DIgit/>
          <ABI_Code>06230</ABI_Code>
          <Bank_Number>01653</Bank_Number>
          <Bank_accnt>000043185249</Bank_accnt>
          <Currency_code>EUR</Currency_code>
          <Accnt_date>030204</Accnt_date>
          <Constant/>
          <Amnt/>
          <Filler2/>
          <FEBRIT62>
             <Filler/>
             <Constant/>
             <Accnt_number>0000001</Accnt_number>
             <Record_number>1</Record_number>
             <Value_date>040204</Value_date>
             <Posting_Date>030204</Posting_Date>
             <Constant1>C</Constant1>
             <Amnt>0000000000471.58</Amnt>
             <Transaction_Code>Z2</Transaction_Code>
             <Bank_Code>Z1</Bank_Code>
             <Blank/>
             <Reference_Number>2535394</Reference_Number>
             <Reference>86</Reference>
             <Additional_reference>VERS.***.IST./SU PIAZZA/CIRCOLARI/</Additional_reference>
          </FEBRIT62>
          <FEBRIT63>
             <Filler/>
             <Constant/>
             <Accnt_Number/>
             <Record_Number/>
             <Text>POSTALI/TURIST</Text>
          </FEBRIT63>
          </FEBRIT61>     
          <FEBRIT64>
          <Filler/>
          <Constant/>
          <Accnt_Number/>
          <Currency_code/>
          <Accntg_Date/>
          <Constant1>C</Constant1>
          <Amnt>0000000000471.58</Amnt>
          <Constant2/>
          <Cash_balance/>
          <Filler1/>
          <Balance/>
       </FEBRIT64>
         <FEBRITEF>
          <FEBRITEF_1/>
          <FEBRITEF_2/>
          <FEBRITEF_3/>
          <FEBRITEF_4/>
          <FEBRITEF_5/>
          <FEBRITEF_6/>
          <FEBRITEF_7/>
          <FEBRITEF_8/>
          <FEBRITEF_9/>
          <FEBRITEF_10/>
          <FEBRITEF_11/>
          <FEBRITEF_12/>
       </FEBRITEF>
    </ns0:OUTPUT_ITALY_FORMAT_TYPE>
    Now i need to convert the above file into a text file when i get the o/p in xml format. I have tried using file content conversion but i am not able to get the solution right. Could anyone let me know as to how should i specify the recordset structure parameters if i need a comma between the fields in each of the structures.Also if u could let me know the other important parameters it could be of great help.
    Thanks and Regards
    Sharat

    Hi Sharat,
    Your File format is like
    Source Message Type
    | - FEBRITRH
    | - | - field1..
    | - | - field2.. etc
    | - FEBRIT61
    | - | - field1..
    | - | - field2.. etc
    | - FEBRIT64
    | - | - field1..
    | - | - field2.. etc
    | - FEBRITEF
    | - | - field1..
    | - | - field2.. etc
    Create a Target Message Type like
    Target Message Type
    | - Recordset
    | - | - FEBRITRH
    | - | - | - field1..
    | - | - | - field2.. etc
    | - | - FEBRIT61
    | - | - | - field1..
    | - | - | - field2.. etc
    | - | - FEBRIT64
    | - | - | - field1..
    | - | - | - field2.. etc
    | - | - FEBRITEF
    | - | - | - field1..
    | - | - | - field2.. etc
    Do all your mappings and
    Define a Receiver File Adapter with Following Configuration
    <b>Message Protocol</b> – File Content Conversion
    <b>Content Conversion Parameter</b>
    <b>Recordset Structure</b> – Recordset, FEBRITRH, FEBRIT61, FEBRIT64, FEBRITEF
    Name value pair would be
    Recordset.endSeparator – ‘nl’
    FEBRITRH.fieldNames – field1,field2
    FEBRITRH.fieldSeparator - , (or | )
    FEBRIT61.fieldNames – field1,field2
    FEBRIT61.fieldSeparator - , (or | )
    FEBRIT64.fieldNames – field1,field2
    FEBRIT64.fieldSeparator - , (or | )
    FEBRITEF.fieldNames – field1,field2
    FEBRITEF.fieldSeparator - , (or | )
    Hope this Helps,
    Vijay

  • Strange Problem with File Content Conversion (Sender)

    Hi,
    I have a strange problem. I have a sender file adapter with content conversion (csv -> xml). The adapter produces the following error during the processing...
    - 2006-02-06 16:34:00 CET: Error: Conversion of part of file content of 'OE_Extractor_47_ISW112_SC-Ireland.csv' to XML format failed around position 1202: IOException: Stream closed
    After the 4th or 5th try the adapter processes the file correctly.
    Why does it works after several tries and not at the first time? (The file is not changed during the adapter is trying to convert it)
    Thanks
    Thomas

    I found the problem, something was wrong with the ftp server

  • Problem with File content conversion and parameters

    Hi experts,
       What is the use of file content conversion that is available in file adapter? For what cases we can use it?
      What do the different content conversion parameters mean?
    Kindly help
    Thanks
    Gopal

    Hi,
    We use the file content convertion to conver the flat file that is text file into XML,
    File adapter cant understand the format the file is,so we have to declare the content convertion parameters.
    Check some links which will tell how the convertion is done.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if helpful

  • Problem with file content conversion for multiple substrcture. Please help!

    Hi Experts,
       I am using file content conversion in file sender communication channel. The input file is a flat file with data like this:
       A01 AA8I0NBVDA      20090704     84900
       A02 AA8I0NBVDA      20090704     84900
       A03 AA8I0NBVDA      20090704     84900
       I want the data in sender side after content conversion to be like this:
      <ns:Receive_Schedules xmlns:ns="http://mynamespace">
         <ScheduleData>
              <line>A01 AA8I0NBVDA      20090704     84900</line>
              <line>A02 AA8I0NBVDA      20090704     84900</line>
              <line>A03 AA8I0NBVDA      20090704     84900</line>
         </ScheduleData>
    </ns:Receive_Schedules>
    I have tried many options in file content conversion but getting the data like this:
    <ns:Receive_Schedules xmlns:ns="http://mynamespace">
         <ScheduleData>
              <line>A01 AA8I0NBVDA      20090704     84900</line>
         </ScheduleData>
           <ScheduleData>
              <line>A02 AA8I0NBVDA      20090704     84900</line>
           </ScheduleData>
           <ScheduleData>
              <line>A03 AA8I0NBVDA      20090704     84900</line>
           </ScheduleData>
    </ns:Receive_Schedules>
    Following are the settings/properties have configured in content conversion:
    Document Name     Receive_Schedules
    Document namespace     http://mynamespace
    Document Offset     <no value>
    Recordset Name     <no value>
    Recordset namespace     <no value>
    Recordset structure     ScheduleData,*
    Recordset sequence     Ascending
    Recordsets per message     1
    Key field Name     <no value>
    Key Field Type     String
    ignoreRecordsetName     true
    ScheduleData.endSeparator     'nl'
    ScheduleData.fieldNames              line
    ScheduleData.fieldSeparator     'nl'
    How to get the desired message? What changes I need to do in content conversion settings? Please help!
    thanks
    Gopal
    Edited by: GOPAL BALIGA on Jul 1, 2009 12:11 PM

    Hi Ranjan,
      My structure is like what you ahve defined.
      scheduledata...1.1
    ...line....0...Unbound
      I also tried the parameters you gave but still getting the same.
      <ns:Receive_Schedules xmlns:ns="http://mynamespace">
    <ScheduleData>
    <line>A01 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    <ScheduleData>
    <line>A02 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    <ScheduleData>
    <line>A03 AA8I0NBVDA 20090704 84900</line>
    </ScheduleData>
    </ns:Receive_Schedules>
    Following are the settings/properties have configured in content conversion:
    Recordset structure ScheduleData,*   -
    > Is the value correct?
    Recordset sequence Ascending  -
    > Is the value correct?
    Recordsets per message 1  -
    > Is the value correct?
    ignoreRecordsetName true
    ScheduleData.fieldSeparator nl
    ScheduleData.fieldNames line
    ScheduleData.endSeparator nl
    Edited by: GOPAL BALIGA on Jul 2, 2009 5:28 AM

  • Problem with File Content Conversion (Receiver FIle Adapter)

    Hi Experts,
    I have following structure in receiver side:
    MT_Test
       F1
       F2
       F3
       F4
    Now I want a CSV file in target side in below format:
    F1,F2,F3,F4
    I have provided below config in receiver file adapter under content conversion tab:
    Recordset Structure : MT_Test
    MT_Test.fieldSeperator= ,
    MT_Test.endSeperator= 'nl'
    But this is generating blank CSV files in target directory..What might be the reason.. I have checked the msg in adapter engine, the XML file is correct and contains valid values for the fields..Its something like below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <MT_Test>
       <F1>Hai</F1>
       <F2>Hello</F2>
       <F3>Bye</F3>
       <F4>Hi</F4>
    </MT_Test>
    I should get CSV file as
    Hai,Hello,Bye,Hi
    But I am getting a blank file with above said config parameters in content conversion tab.
    What might be the reason for getting blank CSV files in target side???
    Thanks,
    Adi

    Hi Adi,
    >>My target structure in below format:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_Test>
    <F1>Hai</F1>
    <F2>Hello</F2>
    <F3>Bye</F3>
    <F4>Hi</F4>
    </MT_Test>
    So, try to edit Data type and include hierarchy level above <F1>.
    Finally your Target Structure will resembles like this.
    <?xml version="1.0" encoding="UTF-8" ?>
    - <MT_Test>
    <Structure>
    <F1>Hai</F1>
    <F2>Hello</F2>
    <F3>Bye</F3>
    <F4>Hi</F4>
    </Structure>
    </MT_Test>
    FCC Parameters will be like this.
    Structure.fieldSeparator = ,
    Structure.endSeparator = 'nl'
    Hope you were clear.
    Thanks,
    Siva.

  • Problems with file content conversion

    Hi,
    in my scenario (Z-IDOC - XI - File) I send 2 segments to the XI.
    L061    18000   DE   0101  23236318    050605  EUR
    L061    87000   DE   0101              050605  EUR
    In the second segment there is no XBLNR !!
    IDOC: ZFIBUCH
    Segment: L061
    Fields:
      IDENTIF
      KZ
      LAND
      BUKRS
      XBLNR
      BLDAT
      WAERS
    Data typ: L061
    Message type: MT_ZFIBUCH_FILE
    My XML-message looks like this:
    <?xml version="1.0" encoding="UTF-8" ?>
    <ns1:MT_ZFIBUCH_FILE xmlns:ns1="http://xxx">
      <L061>
       <IDENTIF>L061</IDENTIF>
       <KZ>18000</KZ>
       <LAND>DE</LAND>
       <BUKRS>0101</BUKRS>
       <XBLNR>AG1236318</XBLNR>
       <BLDAT>050605</BLDAT>
       <WAERS>EUR</WAERS>
      </L061>
      <L061>
       <IDENTIF>L061</IDENTIF>
       <KZ>87000</KZ>
       <LAND>DE</LAND>
       <BUKRS>0101</BUKRS>
       <BLDAT>050605</BLDAT>
       <WAERS>EUR</WAERS>
      </L061>
    </ns1:MT_ZFIBUCH_FILE>
    I use content conversion in the receiver-file-adapter
    RECORDSET: L061
    L061.fieldFixedLengths   4,6,3,4,10,3
    L061.headerLine          0
    L061.fixedLengthTooShortHandling          Ignore
    L061.endSeparator       'nl'
    The result is:
    L06118000 DE 0101AG1236318 050605EUR
    L06187000 DE 0101050605EUR
    But I will use fixed lengths for getting this:
    L06118000 DE 0101AG1236318 050605EUR
    L06187000 DE 0101 __________050605EUR
    (instead of the underline there should be blanks)
    Did I something wrong?
    Christoph

    Even if the field XBLNR is empty, you have to provide the element in the structure, otherwise the content conversions gets out of order.
    Correct would be:
    <ns1:MT_ZFIBUCH_FILE xmlns:ns1="http://xxx">
    <L061>
    <IDENTIF>L061</IDENTIF>
    <KZ>18000</KZ>
    <LAND>DE</LAND>
    <BUKRS>0101</BUKRS>
    <XBLNR>AG1236318</XBLNR>
    <BLDAT>050605</BLDAT>
    <WAERS>EUR</WAERS>
    </L061>
    <L061>
    <IDENTIF>L061</IDENTIF>
    <KZ>87000</KZ>
    <LAND>DE</LAND>
    <BUKRS>0101</BUKRS>
    <XBLNR /> 
    <BLDAT>050605</BLDAT>
    <WAERS>EUR</WAERS>
    </L061>
    </ns1:MT_ZFIBUCH_FILE>
    Regards
    Stefan

  • Strange Problem with File Content Conversion

    Hi,
    I am tyring to use FCC in receiver adapter.
    My source Xml Structure is
    <Subscriber> (0:unbounded)
    <field1/>
    <field2/>
    <Loan>  (0:unbounded)
      <Amt/>
      <id/>
      <Pay/>
    </Loan>
    <fieldn>
    </Subscriber>
    My requirement is that I want each subscriber record in a separate line(All the Loan Items together in a single line ). eg: LOB1,qwd,qd,dqd,d,dqd,dqdqd,qd,dqd,dq,qdqd,qdqd,id1,amt1,pay1id2,amt2,pay299990612
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

    Hi,
    i have redefined my problem.
    The problem is that I have a main Structure 'Subscriber', inside which a substructure called 'Loan'.
    The problem is whatever endseparator i give for that substructure Loan, is apllied to main structure 'Subscriber'(Loan's End Separator).
    i dont understand why the endseparator of substructure overrides that of the Main structure.
    Regards,
    Sudharshan
    Message was edited by:
            Sudharshan Aravamudan

  • Error message in .docx : 'Open XML file cannot be opened because there are problems with the contents. Details Unspecific error Location: 2'

    I have put a lot of work into a docx document on my Mac, but now can't open it as it gives the error message: 'the Open XML file cannot be opened because there are problems with the contents. Details, Unspecific
    error, Location: 2'
    When opening the original file the message said: 'this file contains word 2007 for Windows equations' etc. but I managed to track changes fine, and saved, closed and re-opened it numerous times without problem. Some graphs seemed moved, and various formulas
    were illegible, but no other weirdness was observed.
    I have microsoft 2008 installed on my Mac OS X version 10.6.8.
    I've tried to fix it using various solutions suggested here, but am afraid am too IT illiterate to have had any luck, please help I'm new to all this!
    I've uploaded it to https://www.dropbox.com/s/hkw9k6lyihzoxpc/SittwayPauktawSQUEACREPORT_KD%2BCH.docx

    Hi,
    This issue is related strictly to oMath tags and occurs when a graphical object or text box is anchored to the same paragraph that contains the equation.
    Please use the "Fix it" tool in the following KB article to resolve the problem. See:
    http://support.microsoft.com/kb/2528942
    Hope this helps.
    Regards,
    Steve Fan
    TechNet Community Support

  • The file .docx cannot be opened because there are problems with the contents in sharepoint document library

    I created a site and  created a document libarary and assigned a word document as a content type . I have written a workflow to create a new document . The workflow is working fine and all the document is getting created and values are getting stored
    in it .
    As per my requirement I am saving the above site as site template .
    After that I am creating a new site based on the above site template , Its getting created and I started the workflow , its working fine and the document is also getting created .
    The problem is I am getting error while opening the word document
    Error - The file filename.docx cannot be opened because there are problems with the contents .
    Details - No error details availble .
    Indresh

    What are you doing within the txt document?  Is it general text and string based items, or have you something more elaborate going on?
    An older discussion here elaborates a bit more on the dotx vs docx side of things.
    http://social.msdn.microsoft.com/Forums/en-US/de1b5ff9-ea6d-460c-a707-8c28acd4906f/error-opening-office-open-xml-file-when-using-sd-workflow-to-create-item-in-document-library?forum=sharepointcustomizationlegacy
    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.

  • "The file .docx cannot - problems with the contents."

    Word 2007 file HELP!
    I started a paper this morning and saved it as normal, however when I try to reopen it I get the following messege: The file .docx cannot be opened because there are problems with the contents. Does anyone know how to resolve this issue?

    Hi,
    Please check if this applies:
    http://support.microsoft.com/kb/2528942
    Regards,
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • Cannot open Word File because "there are problems with the contents"

    Hi Everyone,
    I cannot open Word File because "there are problems with the contents" unspecified error; Location: 2.  Please help as I need this doc for work meeting this morning.  Nothing special about this doc but links were copied into it???  However I do that all the time.  I have never had this happen before.  I am on a 2010 machine.  I just ran a disk permissions repaired and emptied the trash but still no dice.  I had several other word docs up as well when I got up this morning but they are all fine.  I do not have Time Capsule turned on (which I need to do but that will be another thread/question).
    Thank you,
    sb

    Ok, I found a way to open this but not sure what happened to begin with and the formatting setup is different now, almost like text editor?  Not sure what happened here but hope it doesn't happen again?

  • Document Creation error - "We're sorry. We can't open document name because we found a problem with its contents"

    Morning Friends,
    I have created a SharePoint 2010 "Site Workflow" that is designed to take information from a form and create a Word doc with the gathered information and store this Word doc in a document library.
    I am using Sharepoint 2013 with Office 2013 
    I understand there are a lot of steps (19) outlined below and I can provide more information as needed but the bottom line is this, workflow successfully takes info from an initiation form, uses the info to create a Word doc. Places this Word doc in a library.
    When attempting to open / edit doc, receive error
    "We're sorry. We can't open <document name> because we found a problem with its contents"
    Details - No error detail available.
    Any info or advice would be greatly appreciated. 
    Very high level view of what I have done:
    1 - Created content type called "Letters"
    2 - Added site columns " First Name" and "Last Name"
    3 -  Created and saved to my desktop a very basic Word document (Letter.docx) that says "Hello, my name is XXXX XXXX"
    4 - In the advanced settings of the "Letters" content type I uploaded this "Letter.docx" file as the new document template.
    5 - Created a new document library called "Letters"
    6 - In Library Settings - Advanced Settings, clicked "Yes" to enable the management of content types.
    7 - Then I clicked "Add from existing content types" and added the "Letters" content type
    8 - Back in the advanced settings of the "Letters" content type I selected "Edit Template" and replaced the first XXXX with the Quick Part "First Name" and the second XXXX with the Quick part "Last Name"
    9 - Created a new 2010 Site workflow called "Create a Letter"
    10 - To the workflow I added the action "Create List Item"
    11 - Configured the action to create Content Type ID "Letters" in the document library "Letter" 
    12 - For the "Path and Name" I gave it a basic name of "Letter to"
    13 - The next step was to create the Initiation Form Parameters and added to form entries "First Name" and "Last Name"
    14 - I then linked the initiation form fields to the data source "Workflow Variables and Parameters" to their respective Field from Source parameters
    15 - Went back to the "Path and Name" and modified the basic name of "Letter to" to include the first and last name parameters.
    16 - Saved - published and ran the work flow.
    17 - As expected, Initiation Form prompts for First and Last Name. ("John Doe") Then click "start
    18 - Go to document library "Letters" and see a new Word document created titles "Letter to John Doe" 
    19 - Go to open / edit the Word document and receive the following error
    thoughts? Any info or advice would be greatly appreciated. 

    See this MS support article for SP2010 workflows and generating Word docs:
    https://support.microsoft.com/kb/2889634/en-us?wa=wsignin1.0
    "This behavior is by design. The Create
    List Item action in the SharePoint
    2010 Workflow platform can't convert Word content type file templates to the correct .docx format."
    I've had success in using SP 2013, Word 2013 (saving a .docx as the template instead of .dotx for the document library content type), and an SP 2010 workflow using SP Designer 2013.

Maybe you are looking for