Trouble with DocId showing up in the name in parenthesis - InfoPath Dev
in

InfoPath Dev

Trouble with DocId showing up in the name in parenthesis

Last post 05-28-2013 11:06 AM by Doreen. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 05-24-2013 02:11 PM

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Trouble with DocId showing up in the name in parenthesis

    My forms are submitted to database and SharePoint 2007.  They are named to field strFilename when submitted.  This is working however sometimes, and I cannot determine what the conditions are that make this happen, the DocId is appended to the name field.  The image shows 5 forms in my library where the top 2 are incorrectly named and the bottom 3 are correctly named, and the data connection where I force the name of the form on submit.

    I revise the form daily (it's in development).  Could this be happening when I shred them?  Whatever the case may be, how do I make this stop.

     Doreen


  • 05-24-2013 02:23 PM In reply to

    Re: Trouble with DocId showing up in the name in parenthesis

    Hi Doreen,

    Could we check the Documents tab for this document type in DBXL? The reason I ask is I would like to know whether DBXL has one or two documents.

    • If DBXL has two documents with the same DBXL::Name, the Title column in SharePoint won't allow a duplicate name, and therefore the DocID is added at the end and in parenthesis.
    • If DBXL only has ONE document, but has shredded it twice to the SharePoint form library, then this is something we might need to investigate a bit further since it's not what we would expect.

    Let us know what you find in DAT. Thanks.

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 05-24-2013 02:37 PM In reply to

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Re: Trouble with DocId showing up in the name in parenthesis

     I did start these forms with an earlier version of the template....then switched to newest template today...


  • 05-28-2013 05:30 AM In reply to

    Re: Trouble with DocId showing up in the name in parenthesis

    Thanks for the screenshot. I think it's pretty straightforward: DBXL is storing 2 forms with the same DBXL::Name. When these are mapped to SharePoint, the form library does not accept two forms with the same name. To fix this, DBXL automatically adds the DocID in parenthesis to distinguish the two forms (so they don't have the same name).

    If you want your form to handle this scenario gracefully and prevent the user form submitting duplicate data, please take a look at this training module:

    http://www.infopathdev.com/files/folders/dbxl/entry87052.aspx

    Hope this helps.

     

    Ernesto Machado
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™


  • 05-28-2013 11:06 AM In reply to

    • Doreen
    • Top 50 Contributor
      Female
    • Joined on 08-11-2010
    • Federal Way, WA
    • Posts 291

    Re: Trouble with DocId showing up in the name in parenthesis

    update: I am such an idiot sometimes.  Of course it doesn't want duplicate names.  I will only have duplicate names during my testing so this problem should go away when released to production.  Only one employee per year will get a record created.

Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.