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

Iron Contributor



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

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


                    <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" />

                  <br />


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 '>' ?





0 Replies