Document created in a workflow based on a custom template is empty

Hello,
we have a big issue creating a document based on a defined custom template in a workflow. The following steps were made to achieve that:
1. Adding a custom document type in Website Settings
2. Creating an Excel file and uploading it as a template
3. Allowing custom types for document list
4. Adding the type to my document list as default
Site Wokflow:
1. Create Action: Create list item with the created document type and Name "test"
When i run the workflow, SharePoint creates the document but the document is empty. If I create a document manually in the same document list, the document is created fine.
These steps were performed in several tutorials with older SP Versions. So what happened in SP 2013?
Thank you for help

Hi Victoria Xia,
I checked them again, the Template is specified in the content type of the document library, the workflow is creating a document using that content type, and will bring all the metadata as mapped in the workflow.
but when I open the document created by the workflow it will be blank document, and the content type name is the correct content type (my custom content type) it is like its not using the template specified.
when I click new document inside the library itself directly, it is opening a new document with the specified template.
where could be the issue here?
Thanks

Similar Messages

  • Event Receiver to create a List based on a custom template and on lookup field

    Hi
    I would like to have an Event Receiver who is firing by addItem in a list calls Seminarliste and is creating each time a new list based on three columns for add.Lists("Title of the list", "Description of the list", "Custom List
    Template")
    I have a Problem to get the LookupField Title and I am getting a Problem to create a list.
    If I debug the code the bold line creates an exception ;(
    The following code I have produced:
            public override void ItemAdding(SPItemEventProperties properties)
                base.ItemAdding(properties);
                SPWeb spCurrentSite = properties.OpenWeb();
                SPSite siteCollection = new SPSite("http://win-ue32d37ap2n");
                SPWeb web = siteCollection.OpenWeb();
                SPListCollection lists = web.Lists;
                String curListName = properties.ListTitle;
                if(curListName == "Seminarliste")
                    SPListItem curItem = properties.ListItem;
                    String curItemListName = properties.AfterProperties["Title"].ToString();
                    String curItemDescription = properties.AfterProperties["Beschreibung"].ToString();
                    // Lookup field with Option to Chose a template name
                    String curItemTemplate = properties.AfterProperties["Template"].ToString();
                    SPListTemplateCollection listTemplates = siteCollection.GetCustomListTemplates(web);
                    //Error by following line ...
    SPListTemplate myTemplate = listTemplates[curItemTemplate];
                    web.Lists.Add(curItemListName, curItemDescription, myTemplate);
    If somebody had a similar problem in the past and could advice it would be most appreciated ;-)
    Thanks in advance ;-)
    Kind regards Michael Damaschke

    If I understand correctly, the field you use to select the template name is a lookup field? If so, then the problem is the lookup field value is not the name of the template. It is an SPFieldLookupValue, which contains the ID and the string of the lookup.
    So you want to separate the template name, like this:
    if (item["LookupField"] !=
    null)
         string fieldValue = item["LookupField"].ToString();
         SPFieldLookupValue value =
    new SPFieldLookupValue(fieldValue);
         int lookupListItemID = value.LookupId;
         string lookupListValue = value.LookupValue;
    IF you look at the fieldValue above, you will see it is something like an integer, followed by delimiter ;# and then your template name. you can always just parse the string at the ;# as well if you were so inclined.

  • Creating a performance report based upon a custom group

    I am trying to create a simple performance report based on a SCOM group that I created, however when I run the report the relevant data cannot be found.  When I look at the group membership I see a list of Windows servers.  I then go into a generic
    performance report, add a single chart, and line series, and select "Add group" and then search and select the SCOM group I created.  I then add % processor time for 2008 systems as my rule.  However when the report is run, no relevant
    data is found. Performance reports run fine when  selecting "Add group" and selecting the members of the group themselves.
    My suspicion is that it is trying to run the performance report based on the group object and not the members of the group. Is there anyway that I can accomplish this?  Perhaps via XML?
    Keith

    Hi,
    For your reference:
    Creating Useful Custom Reports in OpsMgr: How to create a custom performance counter report for a group of servers
    http://www.systemcentercentral.com/creating-useful-custom-reports-in-opsmgr-how-to-create-a-custom-performance-counter-report-for-a-group-of-servers/
    SCOM reports on performance counters for large groups of servers
    http://www.bictt.com/blogs/bictt.php/2010/11/28/scom-reports-on-performance-counters-for-large-groups-of-servers
    Regards,
    Yan Li
    Regards, Yan Li

  • Create document using SharePoint Designer workflow

    I am using SharePoint Online (2013 version) and SharePoint Designer 2013. I have tried to create a document library using "Create Item in List" action. A word document is created after the workflow executes, but the created document is corrupt.
    It doesn't open in Word Web App. When I open it using Word, it shows a blank page.
    I have some library columns inserted as quickparts in the template (tried both docx and dotx), but none of that appears in the document created by the workflow.
    Has anyone tried this successfully? Please share your experiences.
    Rajesh Elumalai

    After migrating from 2010 to 2013 i too have ran into this issue.  The 'create list item' action does not appear to work.  Documents are created but cannot be opened
    "No details Found" is the error message when opening the document.  I have tried this on several Farms all with the same issue.  Appears to be a bug running 2010 workflows in 2013.

  • Unable to create a subsite based on the generic template - save site as a template

    hi,
    am using a  save site as a template functionality to create a sub site. when i select the custom template, and click on ok button,am  getting server error in appln.
    in the site template i have
    1) 2 document libraries with permissions broken[ stop inheritance]
    2) 4  Groups created L1, L2,L3,L4
    am stuck with ,  how to proceed/  create a  subsite based on the  template  site
    note i have uploaded the  wsp file in the new site collection and activated it . ma getting the custom site template name in the tab.
    would like to get clarification  about the  custom permissions:
    if i break the permissions on the document libraries, will this sec.permissions be intact, [ not changed] as the orginal ? i mean if i broke the permissions, in the newly created subsite also, will the permissions be broken? i need this broken functionality
    as per my requirement.
    help is  highly appreciated!
    Das

    hi,
     am not bale to get the correlation id. am getting server error in application. yellow page error!!
    and regarding the permissions i have checked this blog
    http://sergeluca.wordpress.com/2011/06/02/sharepoint-2010-save-as-template-what-is-saved-what-is-not-saved/
    Serge says that, if i am not wrong,
    we cant perform stop inherit the permissions  for the doc lib and create a  sub site based on this site template.
    also if i  stop inheriting from site permissions  also.
    can anyone from MSFT, pls confirm this. or any msd doc says about this.
    Das

  • The Create List Item workflow action does not work in document library with document template

    My end goal is more complex but below is a basic example of the issue I’m having that just simply does not work.
    I'm trying to use a site workflow to create an item in a document library that has a document template applied to it but the file that gets created by the workflow is corrupt and cannot be opened.
    I created a document library and edited the document template by adding some text to the header and changing it to a Word docx file instead of a Word dotx file. I tested the document template by clicking the files tab in the ribbon and then clicking new
    document which opens the document template in Word and allows me to edit and save the document back to SharePoint. Then I created a SharePoint 2013 site workflow in SharePoint Designer that contains a single Create List Item action, and that action creates
    an item in the document library with the name field statically defined. I published the workflow and then manually start it on the site. The workflow completes successfully and when I navigate to the document library the document has been created by the workflow.
    When I click on the document to open it in the Word Web App it throws the error pictured below and if I open it in the Word client application it just opens a blank document and not the correct document template.
    I also tried using a SharePoint 2010 workflow with pretty much the same results. Opening the document in Word Web App gives the same error as above and opening the document in the Word client application gives the error pictured below.
    Come on Microsoft creating a Word Document in a SharePoint Document Library from a SharePoint Workflow should just work! Is this a bug or does anyone have any ideas on what is causing the this issue?

    I had the same problem with corrupted document - this worked for me:
    1. Create a 2010 Workflow which creates the list element in a document library
    (you may start this workflow from your 2013 workflow if applicable)
    2. In the Create New List Item properties - make sure to set ContentTypeId to your content type
    ("Id for indholdstype" is Danish for "Contenttype ID")
    3. Your Content Type template should be a ".docx" file - NOT a ".dotx" file...!
    (I have always created my templates for content types as .dotx files - seems Microsoft wants us to use ordinary .docx files as template files for content types)
    Hope this helps you!

  • How to create a workflow based on std 11i workflow

    How do you create a new workflow process based on one of the std workflows embedded in the 11i apps?
    Thanks,
    Dave.

    Dave, there are a lot of workflows in 11i apps, my best advice would be to read through the Oracle Workflow Guide on Oracle Support Policy for Predefined Workflows, Events, and Subscriptions and to look through Workflow Development guidelines on Appsnet: http://www.oracle.com/appsnet/content.html (scroll down on that page)
    How do you create a new workflow process based on one of the std workflows embedded in the 11i apps?
    Thanks,
    Dave.

  • Workflow based on created date field in opportunity?

    Hi All,
    Can we write a workflow based on created date field in opportunity that if a opportunity record has not been modified after say 90 days,what will be the workflow syntax.
    I just want an email notification to owner and owner's manager.
    Thanks in advance,
    Manish.

    I think you can use the WAIT workflow using Duration('P90D') then Send Email, triggering it upon save and upon modification. Make sure that the Re-evaluate Rule Conditions After Wait option is checked so that the previous WAIT would be reset upon modification.
    Edited by: marcocollado on Aug 31, 2012 5:57 AM

  • Word document created by Workflows do not open

    We are using Sharepoint Online (2013 version) and sharepoint Designer 2013
    We have a requirement by which we would like to update a 'Word template' with the metadata information from a Document Set.  A word document is created after the workflow executes, but the
    created document is corrupt.
    It does not open in Word Web App and when I open it using Word, I get errors.
    I have Word 2010 installed on my machine. Can this be some kind of incompatibility?
    I was going through some threads in this forum and noticed that this problem has been reported before also.
    Is this some kind of a known issue when creating documents using Designer workflows?
    What will be the alternate solution to meet this requirement
     Any suggestions in this regard would be helpful
    Regards,
    Maneesh Agrawal

    Hi,
    According to your post, my understanding is that the word documents created by workflow could not open.
    Did the issue occur in other libraries? You can create a new workflow, then check whether it works.
    You can also use the Copy item action for a workaround.
     Here is what you can try.
    1. Have your template in a folder that is hidden from your views.
    2. Copy the template file with a name of your choice using "Copy list item" action
    3. Use "Update List Item" action to change the properties.
    For more information:
    http://community.office365.com/en-us/forums/154/t/155334.aspx
    As this is the forum for the SharePoint server, I’m not familiar with the SharePoint online.
    For this issue, you can also post your question to the forum for SharePoint Online:
    http://community.office365.com/en-us/forums/154.aspx.
    More experts will assist you, then you will get more information relation to SharePoint Online.
    Thank you for your understanding and support
    Thanks & Regards,
    Jason 
    Jason Guo
    TechNet Community Support

  • How to create activity workflow based on the Web API 2 services

    Hi,
    We have Web API 2 services and we want create activity workflow based on the Web API 2 services.
    Web API 2 services provide some application operations and based on this operations we would like to create custom activity workflow.
    Question:
    Is that possible?
    Could you please give best practices to create activity workflow based on the Web API 2 services ?
    Thanks for your support.

    HI Max_P,
    Welcome to workflow forum.
    ASP.NET Web API is a framework that makes it easy to build HTTP services that reach a broad range of clients, including browsers and mobile devices. ASP.NET Web API is an ideal platform for building RESTful applications on the .NET Framework.
    I researched relevant topic about creating workflow application using Web API 2, I just found these resources about it.
    Learn About ASP.NET Web API
    Hope it helps.
    Best regards,
    Angie
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Workflow issue when create Purchase Order automaticlly based on Sales Order

    dear experts,
    I got a problem when create purchase order automatically once the Sales Order created, the field ERNAE of the Purchase Order creatd is WF-BATCH, but we want this field to be the user log in the system, like John. Smith
    it seems this is a configuration issue, but i am not familar with workflow, do you experts have any solutions?
    thank you in advance.
    Hongtao

    thank you for you reply my friend.
    yes, i mean the PO creator.
    I just create a SO in VA01, then change the Schedule line category from CN to CP, then SAVE, then Confirm the Delivery Proposal. after all this, the PO will be created automatically by Workflow. Because when I display the PO via ME23N, it displays [Standard PO XXXXX  created by Workflow-System] on the top of the screen.
    But i do not know which workflow is trigered to create the PO. and i tried SWEL like you said, there is no record listed.
    do you have any other suggestions? thank you so much, friend.

  • Problem printing pdf documents created by ps2pdf

    When I try to print pdf documents that have been created from ps documents by ps2pdf, the output is corrupted. Many letters are missing but included graphics are printed just fine. This happens with my HP printer and with cups-pdf, when I print the pdf document to a new pdf document. There are no errors in the logs, so I don't know what is goning wrong. On a windows PC, the pdf documents are printed correct too. Other pdf documents, created by pdflatex are printed correct.
    If I don't use ps2pdf and print the ps document directly, the output is correct. I have tried different pdf-viewers without any difference. About half a year ago, everything was working fine, so could it be related to : "As of version cups 1.5.3-3 ArchLinux makes use of the new full pdf-based printing workflow."?

    Flo,
    In my limited experience with the iOS iWork apps, they weren't designed for those who are picky about the layout. They are highly automatic and if you don't like the result, it's not easy to override. If the format when printed leaves unpleasant margins, I think your best approach is to reshape the tables in such a way that they will better fit the target media. If you are having large top margin, make the tables narrower, then when they scale to fit the paper, then may fill it better.
    Jerry

  • Multiple workflow columns are creating when the workflow is started

    Hi,
    I have created the workflow based on "Document" content type and have deployed and associated it to it's children content types(CT1, CT2, CT3), Later i have added documents(Doc1 based on CT1, Doc2 based on CT2, Doc3 based on CT3) in the document
    library and run the workflow and they are running fine.
    But the problem is that, whenever i run the workflow on the new document which is based on different content type than earlier, then a new "workflow status"column is getting created instead of using the already existing workflow status column. 
    This behavior is happening only when i tried to associate workflow from code and when i manually associate directly in the site it works fine.
    Does anyone know how I would go about this?
    Chakradhar

    Hi Chakradhar,
    According to your description, my understanding is that a same workflow status column was created when running workflow on a new document.
    Did you re-publish and re-associate multiple versions of workflow to the content type?
    If yes, then multiple workflow status columns would be created on the SharePoint List.
    In addition, if we ever delete the workflow association to the content type or list and re-associate later to the content type or list, workflow status columns created by the previous association gets left behind.
    I recommend to make sure that the workflow has not been re-published and re-associated.
    You can delete the extra Workflow Status Column in the list:
    http://nikpatel.net/2010/08/07/delete-orphaned-workflow-status-columns-from-sharepoint-list-views/
    http://blogs.msdn.com/b/valdon/archive/2009/05/05/removing-extra-workflow-status-column-in-default-view.aspx
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

  • Refresh document call in RESTful workflow is taking long time.

    Hi,
    I am facing an issue with the Refresh Document step, in Raylight Workflow using RESTful API.
    We are using this Refresh Document call, To make the dataprovider mappings formed.
    For few WEBI documents, this Refresh document step is taking much time to complete. After some investigation, we got to know that there are a series of SQL scripts running against actual data source, for each Refresh Document call. If the SQL script is taking much time, then the refresh document call is taking much time as well.
    Up to now, we are able to solve this problem in some cases, Like below.
    1. For a WEBI Document with Contexts to Answers during Refresh Document:
    Ex:
    Method: PUT
    URI: http://localhost:6405/biprws/raylight/v1/documents/1111/parameters
    Request Body: (setting default Context)
    <parameters>
      <parameter>
        <id>3</id>
        <answer>
          <values>
            <value id="4">Context1</value>
          </values>
        </answer>
      </parameter>
    </parameters>
    Result: Success (No Time out Exception)
    2. For a WEBI Document with some prompts to Answers during Refresh Document:
    Ex:
    Method: PUT
    URI: http://localhost:6405/biprws/raylight/v1/documents/1111/parameters
    Request Body: (With Some Dummy Values)
    <parameters>
      <parameter type="prompt" optional="true">
        <id>1</id>
        <answer type="Text">
          <values>
            <value id="1">Dummy Text</value>
          </values>
        </answer>
      </parameter>
      <parameter type="prompt" optional="true">
        <id>3</id>
        <answer type="Numeric">
          <values>
            <value id="1">0</value>
          </values>
        </answer>
      </parameter>
    </parameters>
    Result: Success (No Time out Exception)
    3. For a WEBI Document with No prompts and No Contexts to Answers during Refresh Document:
    Ex:
    Method: PUT
    Request Body: (Empty)
    Result: Time Out Exception (from my C# code)
    Only In this scenario (3) i am facing issue, As I have no answers to set any default values to Parameters. So the SQL scripts are executing. Due to this, if there is any time taking scripts, then the Refresh document step is taking much time or even throwing Time out exception from my C# code. I tried by increasing the timeout for WebRequest in C#, But still not solved.
    For creation of a WEBI document, Can we skip the SQL scripts, running in Refresh Document API call?
    If yes, then please let me know your valuable ideas to solve my problem.
    Please let me know for more information.
    Thanks in advance.
    Thanks,
    Mahendra

    Hi Anthony,
    Yes, I tried creating same WEBI Document using Web Intelligence Rich Client and also using Web Intelligence from BI Launch Pad.
    On both WEBI Clients I am able to create the same WEBI Document, which I am trying to create using RESTful API.
    My observations are like below:
    Observation 1: After selecting required Result Objects/columns in Query Panel, by clicking on Close -> Apply Changes and Close button, I can create the WEBI Document and Save it successfully.
    Observation 2: After selecting required Result Objects/columns in Query panel, If I click on Run Query, It is taking much time to bring fresh data.
    Just like in my first observation, I am only looking for creating WEBI Documents successfully, without bringing fresh data. It is enough for me, If I can create the WEBI documents from RESTful API successfully. Here I am not looking for any fresh data from this Refresh Document step, except the dataprovider mappings.
    As mentioned in my previous reply, Without dataprovider mappings, we are unable update Report Specification. For this, to make the dataprovider mappings formed, we are using this Refresh Document step, After updating dataprovider specification
    Is this Refresh Document call required in Workflow?
    Please suggest me if any other REST API Call, that I can use to get the dataprovider mappings formed, other than Refresh Document step.
    Thanks in advance. Currect me if I am wrong.
    Thanks,
    Mahendra

  • I have moved from a G5 Powermac to an Intel Mac Pro and am porting over Items from a Backup HDD. How can I access and use drawings and documents created on the PC computer on the Intel computer ?

    I have moved from a G5 Powermac to an Intel Mac Pro and selectively porting over items from a backup hard drive.
    How can I access and use documents and drawings created on the PC based computer ?

    Clarisworks, you need Appleworks, which will only work with Mac OS X10.6.8 or earlier.  See this tip if you must go newer.  Mac Pros with newer hardware configuration than July 20, 2011 can't use Mac OS X 10.6.8 or earlier without this tip and then it would be Mac OS X Server.  I'm not sure if the new black Mac Pro supports that configuration or not.
    iPhoto, there is an iPhoto for all versions of Mac OS X.
    iTunes, there is an iTunes for all versions of Mac OS X.  Note with iTunes versions 11 and later, which are needed for syncing with iOS 7 or or later, you will lose coverflow, if you liked that feature.  Sadly you can't run an older version of iTunes from within Mac OS X 10.9 or later.
    Sketchup: http://help.sketchup.com/en/article/60107 shows the versions that will work with intermediate Mac OS X versions, and this shows the latest version: http://help.sketchup.com/en/article/36208 be sure to click on the operating system you choose to use.
    GIF - Viewing GIFs Apple's Preview can do that.  Editing them, I like http://www.lemkesoft.com/ Graphicconverter.
    DMG is able to be opened by all versions of Mac OS X.  This are just "disk images" which store programs on a virtual disk that will open when double clicked.    Frequently you'll find the installer of the said program inside.  To find out if the program itself is compatible with 10.7 through 10.9, see http://www.roaringapps.com/
    Otherwise see the resources on:
    https://discussions.apple.com/docs/DOC-2455
    If you end up deciding to stick with Snow Leopard.

Maybe you are looking for