"Invalid item data – missing FileRef." error
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
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
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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.
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.
Cheers
- Nikita Kurguzov
- Posts: 889
- Joined: Mon Jul 03, 2017
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:
This should work and not give you this error anymore. Only necessary for the New Form.
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>
Cheers
-
- Information
-
Who is online
Users browsing this forum: No registered users and 25 guests