Forum Discussion

Nigel_Price9911's avatar
Nigel_Price9911
Iron Contributor
Feb 21, 2018

I get an error when i call Apply-PnPProvisioningTemplate when I have a <div> in a rich text field on

Hi

 

Here is a segment of my PnPProvisioningTemplate ......

          <pnp:DataRows xmlns:pnp="http://schemas.dev.office.com/PnP/2018/01/ProvisioningSchema">

                <pnp:DataRow>   

                    <pnp:DataValue FieldName="Body">
                         <div class="ExternalClass2F850735FDA2417C916D0762C1ABDA23">
                          <span style="font-size:24px;">All systems operating normally.......

                               <span id="ms-rterangecursor-start" />

                                <span id="ms-rterangecursor-end" />

                         </span>
                  <br />
                </div>
              </pnp:DataValue>

 

When I come to Apply-PnPProvisioningTemplate, I get this error:-

 

The element 'http://schemas.dev.office.com/PnP/2018/01/ProvisioningSchema:DataValue' cannot contain child element 'div' because the parent element's content model is text only. 

 

I am assuming the schema does not like the <div> but this has come from a Rich Text Field.

 

Do I need to escape the '<' and the '>' ?

 

Regards

 

Nigel

No RepliesBe the first to reply

Resources