Create document item from list, then no lookups

SharePoint 2013: I have a content type set up in a document library with a default document template attached (in this case an excel workbook file).
In SPD 2013 (using a 2010 workflow), I can use the "Create Item in List" function in SPD from an adjacent list on the same site collection to create a record in the document library, and set the content type such that when the workflow is done there
is indeed a new document waiting for me in the doc library, utilizing the expected template file.
The issue:
The output of the "Create Item in List" function is the ID of the item created.  Using the Create variable, I believe I should be able to immediately lookup attributes of the newly created Document item, such as the last modified date and URLs.
 I'm doing the lookups within the output of a Log (to workflow history) function.  However, certain fields always come back blank.  Performing the same lookup, using a known Document item ID (created in another w/f session) is successful.  It
would be nice to email out a URL of the file I just created from the same workflow.
I've tried having the W/F wait up to 5 minutes, but it appears that certain attributes cannot ever be retrieved in the same workflow, while others can indeed be retrieved (GUID of the new doc is successful, for instance).
I've read some online debate related to this, but I can't find anyone having the exact same issue as me, nor explain why it's happening.  It seems like it should be so straightforward.  Any ideas?  Thanks!

Hi,
According to your description, my understanding is that you create a document library item using “Create item in list ” action and when you log some certain attributes of the item to workflow history list, then
it has no value.
I try to reproduce this issue with your steps and it works as expected in my environment.
For a better troubleshooting, I suggest you do as the followings:
1. Check if the certain new created item field has value in the list which always return blank.
2. I suggest you can create a new simple workflow to log the field data for new created item to workflow history list to test if it works.
3. If the issue still exists, I suggest you can track the workflow using Fiddler. You can see detailed web request for the workflow, it will be easier to find the cause of this issue.
Here is a detailed article for your reference:
http://msdn.microsoft.com/en-us/library/office/dn508412(v=office.15).aspx
Best Regards
Jerry Guo
TechNet Community Support

Similar Messages

  • Copy item from List A to List B, generate 2 rows in List B

    Hi, 
    I would like to copy and update items from List A to List B. However, I want the item to be duplicated in List B.
    I will explain my scenario
    - List A contains a People Picker column of multiple selection and a Title column
    - When the form is submitted, a workflow should trigger to copy the item to List B. If the People Picker column contains 2 values inside it, for example, user1;user2. The copied item should be duplicated in rows according to the number of users.
    Example
    Columns   Title, Users, ID
    List A - TicketNo1, User1; User2, 1
    List B - TicketNo1, User1              1
    List B - TicketNo1, User2              1
    Can this be done OOTB or must we use some event receiver..has anyone ever done such a thing before?

    Hi,
    Below code help you to accomplish your task using event receiver
    public
    override void ItemAdded(SPItemEventProperties properties)
    //base.ItemAdded(properties);
    if (properties.ListTitle ==
    "ListA")
    SPUser user = null;
    //get value of fields
    string strTitle = Convert.ToString(properties.ListItem["Title"]);
    SPFieldUser userField = (SPFieldUser)properties.ListItem.Fields.GetField("TaskAssignUser");
    SPFieldUserValueCollection fieldcollectionValue = (SPFieldUserValueCollection)userField.GetFieldValue(Convert.ToString(properties.ListItem["TaskAssignUser"]));
    foreach (SPFieldUserValue fieldValue
    in fieldcollectionValue)
                       user = fieldValue.User;
                       //Create items in another list
    SPList destinationList = properties.Web.Lists["ListB"];
    SPListItem targetItem = destinationList.Items.Add();
                       targetItem["Title"] = strTitle;
                       targetItem["WorkAssigned"] = user;
                       targetItem.Update();
    Thank You,
    Somnath Matere

  • How create temporary table from list of values

    Can you anybody advise me how can I create temporary table from list of values? I have list of values and need create temporary table for next use with command JOIN etc.
    Thank you for help

    NO, you can not create temporary table in oracle on the fly ( Like #Tabels in SQl Server or Sybase ) , you will have to use the GTT i.e Global Temporary Tables
    check the following link GTT :
    to flush the tables after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT DELETE ROWS;In contrast, the ON COMMIT PRESERVE ROWS clause indicates that rows should be preserved until the end of the session.
    so to keep rows in Table after commit
    CREATE GLOBAL TEMPORARY TABLE my_temp_table (
      column1  NUMBER,
      column2  NUMBER
    ) ON COMMIT PRESERVE ROWS;

  • How to drag and drop item from list to another item in list and change their positions

    I have a list field with multiple items. I want to select one item from list and drag and drop to another item in the list
     after drop item on another item the position of items should be change. (Example:- if I select 1st item from list and drag and drop this item to 4th item in list after drop that item position of both item should be changed 1st item on 4th position and 4th item on 1st position)
    I don't know how to do this.Please help me to find the solution.

    Hello Zoltan,
    I do not believe that kind of option is built into the listboxes, but I was able to have similiar functionalities using property nodes. I have included an example program that I put together.
    The big difference is that instead of dragging, you double click on the item you want to transfer. To highlight items as you go down the list, all you need to do is set the value to that list number.
    Hope this helps you out!
    Attachments:
    Temp.vi ‏33 KB

  • Create a project from list item not working if EPT has Project Plan Template

    HI,
    i am trying to leverage the new feature in 2013 to create a project from an idea list.
    This works fine if the EPT does not have Project Plan template assigned to it. Even through workflow action "Create Project from current list item".
    However if i assign a project plan template and the user creating the project  is not Administrators Group member, i get an error. While doing this trough a workflow the worfklow gets suspended and i have the below message:
    RequestorId: 654a6744-eb11-3d9c-0000-000000000000. Details: RequestorId: 654a6744-eb11-3d9c-0000-000000000000. Details: An unhandled exception occurred during the execution of the workflow instance. Exception details: System.ApplicationException: HTTP 403
    {"error":{"code":"20010, Microsoft.ProjectServer.PJClientCallableException","message":{"lang":"en-US","value":"PJClientCallableException: GeneralSecurityAccessDenied\u000d\u000aGeneralSecurityAccessDenied"}}}
    {"Transfer-Encoding":["chunked"],"X-SharePointHealthScore":["0"],"SPClientServiceRequestDuration":["290"],"SPRequestGuid":["654a6744-eb11-3d9c-9d1e-ff8135e50f19"],"request-id":["654a6744-eb11-3d9c-9d1e-ff8135e50f19"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"MicrosoftSharePointTeamServices":["15.0.0.4535"],"X-Content-Type-Options":["nosniff"],"X-MS-InvokeApp":["1;
    RequireReadOnly"],"Cache-Control":["max-age=0, private"],"Date":["Wed, 23 Apr 2014 14:40:46 GMT"],"Server":["Microsoft-IIS\/7.5"],"X-AspNet-Version":["4.0.30319"],"X-Powered-By":["ASP.NET"]}  
    at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context)   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)  
    at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)
    Any one has experienced this ?
    Thx

    Hi, RonyZ.
    I think it could help.
    I have experienced the same problem as you are, except "Create project" option, my managers could do it.
    So, for me a solution was to set definite permissions for Workflow Initiators (I have created new group, but you can edit, including
    Global permissions
    New project
    Open project template
    Server configuration management
    For category “My organization”
    Open Project
    Publish Project
    Save Project on Project Server
    Excuse me my translation, some names can be written not properly, cause I have localized SP.
    In you case, I think, you should check, if you PM  group has all these permissions.
    And Workflow Initiator should be in group which has.
    In LOGS error notifications starts with “Permission denied”, then goes account
    name and then the name of permission which is left.

  • SharePoint 2013 document generation from list items using workflow

    I have been able to generate docs from list items using sharepoint designer workflow.But i have been able to do this with using one document template. But i have like 6 templates i would like to use what do i need to do to get this rolling would i need to
    have 6 different doc libs with a doc template?
    Thanks in Advance

    Thanks Sharma.
    I have create 6 content type and associated doc templates to them. I read I should be using .docx instead of dotx which I also tried
    But im still getting the error
    When I click details no error details  to help at all.
    Can anyone who is having this issue help or give me some hints.
    Cheers

  • Creating page items from pl/sql procedure and using them on a page

    I have a page containing 2 select lists (P21_DEPARTMENTS and P21_DATE). Originally I added them as items that were "select list with submits". The problem is that based on the clearance level of the currently logged on user I only wanted the P21_DEPARTMENTS to be a select list if the user was an administrator. If however the user is not an admin then I want the page to have a hidden form field called P21_DEPARTMENTS that stores the user's department and has a label item that has the department name.
    There is also a report region that generates a table based on the department selected from the select list (if the user is an admin) or the value stored in the hidden form field if the user is not.
    My problem is that I cannot have both those items on the same page and use the HTML built-in authentication to determine which item should be rendered because I need to use the same ID for both items so that the stored procedure in my report region doesn't break. HTML does not permit items to share the same ID.
    I tried to circumvent the problem by creating a stored procedure that performs all of the item rendering in the procedure and uses "htp.p()" to output all of my HTML code. This solution would allow me to pass a parameter into the procedure informing me as to whether or not the user is an administrator. If the user is an administrator the procedure would use a conditional statement and render a select list. If not, the hidden form field and label option would be used instead.
    I finally got the stored procedure working perfectly. Now I am encountering the most bizarre thing. Since the "select list with submit" was not working (I used the same code that gets generated when I created other items using htmlDB's GUI) I decided to use a JavaScript function instead that gets triggered by the onChange event. I send along the value that is currently selected in the select list and in the function I set:
    location.href='http://www.myoraclesite.com/pls/htmldb/f?p=111:21:729740000000000000::NO::P21_DEPARTMENTS:1';
    In theory this should work. The problem is that it doesn't. The page reloads and the P21_DEPARTMENTS select list is not pre-selected.
    The only thing I can think of is that when htmlDB generates page items that you've created with it's own admin tool it assigns some internal guid or something as opposed to when someone tries to generate dynamic page items of their own from a pl/sql procedure it's like the application doesn't even know they exist.
    Any help would be GREATLY appreciated.
    My only other solution would be to create a totally separate page (one for admin and another for non-admin). I would really like to avoid this.
    Thanks in advance.

    I would love to be able to generate my menus and
    various other items in my htmlDB applications in much
    the same way I can using ASP, PHP and Cold Fusion.
    Users should have the ability to write server-side
    code wherever they feel like it. The way htmlDB works
    right now I spend more time trying to figure out how
    to create simple effects and generate simple
    interfaces when I need to be building a portal. Ami - it's important to understand that HTML DB is not like other languages. Thus, trying to force concepts which are common in other languages into HTML DB will often result in more work.
    It's definitely worth the time to go over the HTML DB 2-day Developer, which can be found here: http://www.oracle.com/technology/products/database/htmldb/pdf/B14377_01.pdf
    I can build a portal using Classic ASP, C#, PHP or Cold
    Fusion in like 1/10 of the time that it takes me to
    build one using htmlDB. I understand that this is not
    meant for the hard-core programmer but no web
    programming application in today's day and age should
    prevent experts from getting under the hood.And I can build a Portal in HTML DB in 1/10 the time it will take me to do it in any other language. It's like anything else - proficiency comes with practice and work.
    As for getting under the hood, there is plenty of places you can do that with HTML DB. Keep in mind that HTML DB itself is an HTML DB application, so the limits on what you can build with HTML DB are virtually limitless.
    Sorry for the vent there. After spending the last 2
    days trying to figure out how to implement such a
    straightforward thing and now being informed that it
    can't be done kind of bugged me.I understand your frustration, as I've been there before. My rule for beginners is that if you are writing more than a line or two of code in the first week, you're doing something wrong. Stop, take a break, and then use the ample resources (including searching this forum) to help solve your problem. There are plenty of resources available for you to learn about HTML DB on the HTML DB home page: http://otn.oracle.com/htmldb
    Good luck,
    - Scott -

  • How can i remove items from list that have been deleted when i click on them it keeps showing empty

    how can i remove items from the list that have been deleted when i click on them it keeps showing folder empty

    Actually, Reader SHOULD keep showing documents that no longer exist, I disagree. It's no big deal, and people will quickly realise why they can't open the file. They open more files, the old ones move off.
    The REASON why it should not check is that checking whether a file exists can take a long time when things aren't good. For instance if a file server goes down, or a memory card is unplugged. That in turn would mean delays opening the File menu, and I've seen some software that can sit there for several minutes. That would really give people something of which to complain...

  • Create Menu items from table data?

    Wondering if anyone knows of a way(if even possible) to create menu items on logon from table data where the menu data is stored?

    You'd have to make the menu code generic as well - probably the bet bet would be to have each menu item calling a common procedure but passing in the menu item selected - you'll then have to cross reference that with the current function of that menu item and do the right thing.

  • JList run time errors when removing items from list

    Hi there
    I am having trouble removing items from a JList. For a While it was working fine and now it outputs runtime errors everytime samething gets removed from the lsit
    Here is the code
    //declare
    public class Consumertab1gui extends JPanel implements ActionListener
         public static JList conList = null;
         private static DefaultListModel model = null;
    // Create a list with some items
    model = new DefaultListModel();
    conList = new JList(model);
    //set the size of cells in the list with the length of the string
    conList.setPrototypeCellValue("Lenght 1234567890");
    conList.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
    conList.addListSelectionListener(new ValueReporter());
    //set a scroll onto the list
    JScrollPane conScroll = new JScrollPane(conList);
    add(conScroll,c);
    //when the button gets pressed to drop the selected item the following code is called
    private void dropConsumer()
    int selItem=0;
    componentsV.comVRemove(conList.getSelectedValue().toString());
    selItem=conList.getSelectedIndex();
    System.out.println("No:"+(model.getSize()-1));
    System.out.println("S:"+selItem);
    remConList(selItem);
    dropCon.setEnabled(false);
    //which in turns calls this
    public void remConList(int pos)
         model.remove(pos);
    when the model.remove(pos) code is executed the following runtime errors are given:
    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)
    at javax.swing.JList.fireSelectionValueChanged(JList.java:1321)
    at javax.swing.JList$ListSelectionHandler.valueChanged(JList.java:1335)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
    at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
    at javax.swing.DefaultListSelectionModel.removeIndexInterval(DefaultListSelectionModel.java:546)
    at javax.swing.plaf.basic.BasicListUI$ListDataHandler.intervalRemoved(BasicListUI.java:1561)
    at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:160)
    at javax.swing.DefaultListModel.remove(DefaultListModel.java:478)
    at Consumertab1gui.remConList(Consumertab1gui.java:38)
    at Consumertab1gui.dropConsumer(Consumertab1gui.java:58)
    at Consumertab1gui.actionPerformed(Consumertab1gui.java:46)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
    at java.awt.Component.processMouseEvent(Component.java:5100)
    at java.awt.Component.processEvent(Component.java:4897)
    at java.awt.Container.processEvent(Container.java:1569)
    at java.awt.Component.dispatchEventImpl(Component.java:3615)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
    at java.awt.Container.dispatchEventImpl(Container.java:1613)
    at java.awt.Window.dispatchEventImpl(Window.java:1606)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    can anyone spot any mistakes in the code or suggest possible resons as to why these run time errors occur?
    Thanks
    alexis

    java.lang.NullPointerException
    at Consumertab1gui$ValueReporter.valueChanged(Consumertab1gui.java:197)The NullPointerException occurs at line 197, in the valueChanged method of your ValueReporter inner class. I have looked through your post several times but I don't see where you posted that method. Anyway, that is where you should look.
    PC²

  • Automatically create security groups from list of OU's

    Here I'm looking to create security groups automatically form the list of OU's available in active directory and add OU users to receptive groups.
    Help me to do this in power shell. THanks in advance.

    Hi,
    You can use Get-ADOrganizationalUnit to get a list of OUs in AD and then use New-ADGroup to create groups. You can then use Get-ADUser with the -SearchBase parameter to find your list of users who exist in the particular OUs. Finally, you can use Add-ADGroupMember
    to add these users to the groups.
    http://ss64.com/ps/get-adorganizationalunit.html
    http://ss64.com/ps/new-adgroup.html
    http://ss64.com/ps/get-aduser.html
    http://ss64.com/ps/add-adgroupmember.html
    Don't retire TechNet! -
    (Don't give up yet - 12,950+ strong and growing)

  • How to Create a template from List Template Gallary folder

    Hi All
        I need to create list using List Template. Here is problem, I have added the list template in List template gallery using Feature stabilling, where the  list template are create under a folder (List Template Gallery -> ListTemplate(folder)
    -> template.stp). I am not able to create list programatically using the template which is under the folder. I am getting following error "Error occurred in deployment step 'Activate Features': The template you have chosen is invalid or cannot be found."
    but the template can be found in the SPListTemplateCollection.
    Can any one please suggest a solution to it. or is there any workaround.
    Thanks in advance.
    Raj

    Hi Arockiaraj_SP,
    Do you mean that you can create new list instance in browser using the list template, but not with server object model, or CAML using new List instance from the project?
    please make sure that the template can be used to create new list instance, would you please provide the code sample you use?
    Qiao Wei
    TechNet Community Support

  • How can I find clearing document item from BSE_CLR?

    Hi All,
    I can find cleared document item be partial paid in table bse_clr by field BUKRS, BELNR, GJAHR, BUZEI.
    but I can't find clearing document item in table bse_clr, is there any other table stored the clearing document item data?
    best regards,
    Eric

    hi
    Use table BSAD,BSAS,BSAK  for cutomers, gl accounts and vendors respectively
    Regards

  • Create Word Doc from list with multiple items (repeat region)

    I have a document library that creates an invoice document based on another list. The list has multiple items that where purchased and need to appear on the invoice. It is only showing the first purchase item and not the others. How do I get all the items
    to display (repeating region)?
    Example:
    Invoice #
    Salesperson
    Items Purchased
    item 1
    item 2
    etc...
    Thanks!

    I've tried these examples but it only grabs the first item and places it in the word document. I need it to grab all the items.
    Example:
    Invoice #
    Salesperson
    Items Purchased
    item 1
    item 2
    etc...

  • Fastest way to create a group from list of recived emails

    I thought this would be as easy as drag and drop but no such luck.
    Here's the situation.  I had a class of 25 students email me from their mobile phones all using the same subject.  Now I'd like to create a mailing list / group so that I can easly contact all of them if need be.  I tried creating a new group and dragging all of the emails into it to no avail.  I also tried right clicking and checking the menus to see if there were any options which there weren't.
    Anyone have any suggestions?  I'd be open to using automator or something similar if it worked.
    Thanks,
    Greg

    I think the fastest way to do this is in Mail>Message>Add to Address Book, then in AB>File>New Smart Group>Card:>Was updated After... say yesterday, then select all those & make a new (not Smart) Group to drag them to so it won't change after that.
    Unless you could get them all to eMail with some other unique that AB can see as a Group field.

Maybe you are looking for

  • Install Windows on iMac with no DVD drive

    I have a modified iMac.  It has a solid state drive in leui of the superdrive.   The SSD is a OWC drive. How can I install Windows?   I have tried modifying plist files, and kexts to allow me to use my MBA's USB superdrive, with no luck.    I have al

  • Not able to control volume up/down while using Digital AV Adapter.

    Hi there, I am using iPhone 5, iPad 4 and digital av adapter. Video mirroring works fine but can't control volume while the devices are plugged with the digital av adapter. The volume button just disappear when it is plugged. I use 24 inch monitor wi

  • Moving Backed Up iTunes Library Back To Newly Formatted Laptop Question.

    I've saved all iTunes library files plus music to ext hdd. How do I move everything back so it will be like it was before I moved it? Links to help docs will help. Thanks G Message was edited by: GARTH

  • Can anyone recommend how to get Microsoft word ??

    Hi There, I need help with downloading some type of word program, I am unsure as to what is the best microsoft word download and how to do it thanks

  • Asian characters in TOC

    Hi, I'm using Robohelp 7.0.2 and I'm having problems getting Japanese and Chinese characters to display correctly in the TOC of my project. My HHC and HHK files are correctly encoded as UTF-8 and show up correctly in the main Robohelp interface. My t