Page 1 of 1

"Invalid item data – missing FileRef." error

Posted: 04 Aug 2017
by EFerguson
Hello,
I need to add some cascading cross-site lookup fields to the Document Set content type.
I created the fields and the form but when I tried to save the document set, I got an “Invalid item data – missing FileRef.” error.

I did a test using the unmodified out of the box Document Set content type and adding all fields to the form. I also did another test using the unmodified out of the box Document Set content type and adding only the Name and Descriptions fields to the form. In both tests, when I try to save the document set I get the “invalid item data – missing FileRef.” error.

I am using SP Online and Forms Designer version 3.1.4.

Thanks in advance for your help.
EFerguson

Re: "Invalid item data – missing FileRef." error

Posted: 07 Aug 2017
by Nikita Kurguzov
Hello!
If I understand correctly, you want to add Cascading Cross-site Lookups to the Documents Library, where you use Document Sets. So, you want Cross-site Lookups to appear when you create New Document Set, correct?

Right now, there are some issues with Cross-site Lookup functionality when you try to do this, but we'll try to see if this can fixed soon or if there is an alternative that you can use.

Re: "Invalid item data – missing FileRef." error

Posted: 07 Aug 2017
by EFerguson
Hi Nikita,

Thanks for your reply.

That is correct. I want to add some cross-site lookup fields to the Document Set and the fields should appear when a new Document Set is created.

Re: "Invalid item data – missing FileRef." error

Posted: 07 Aug 2017
by Nikita Kurguzov
There is a workaround we can offer. The only downside is that it wouldn't redirect you inside new Document Set after creation.

Remove Name field from the Form for Document Set, add HTML control element instead, set CDATA to False and insert this code inside:

Code: Select all

<div class="fd_field " fd_name="FileLeafRef" style="">
     <div class="fd_title" style="width: 150px; float: left; white-space: nowrap; ">Name<span class="ms-formvalidation"> *</span></div>
     <div class="ms-formbody fd_control" fd_type="File" style="margin-left: 160px;" fd_readonly="False">
          <asp:TextBox id="FileLeafRefField" runat="server" CssClass="ms-long" __designer:bind="{ddwrt:DataBind('i','FileLeafRefField','Text','TextChanged','ID',ddwrt:EscapeDelims(string(@ID)),'@FileLeafRef')}" />
     </div>
</div>
This should work and not give you this error anymore. Only necessary for the New Form.

Re: "Invalid item data – missing FileRef." error

Posted: 09 Aug 2017
by EFerguson
Thank you for the workaround! It resolved the error that I was having.