pnp / pnp/pnpframework

[BUG] - Export Fields Lists - Calculated Fields exported before referenced Fields in Formula

Open
#423 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
259
Forks
161
Avg merge
10h 33m
Merged PRs (30d)
1

Description

I'm bumping up against this exact issue with the old PnP Powershell module but in the latest PnP.Powershell 1.6.0.

To work around it, I am having to open the XML files in an editor and reorder the <Field>s in each <pnp:Fields> so that the calculated fields come last. If I do not do this, the template fails to apply.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing template application with XML containing pnp:Fields where a calculated field precedes a referenced field, then trace the export and provisioning-engine entry points that assemble and apply these fields. Done means calculated fields are exported after the fields referenced by their formulas and the resulting template applies without manually reordering the XML.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, powershell
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.