My team is working on a power pages site, containing a fairly long multistep form, saving data into Dynamics 365 custom tables.
As we have been working and editing different steps and conrresponding forms in D365, something has affected the Power Pages site global settings, as ALL multistep forms return 500 errors.
We have tested by editing steps, settings, creating new MS forms, with and without authentication / permissions, updating data in other tables in Dynamics. All forms return an error on moving from Step 1 to step 2 or submitting step 1 for single-step forms. The errors we can see are essentially similar to:
Object reference not set to an instance of an object.
System.NullReferenceException
at Adxstudio.Xrm.Web.UI.WebControls.WebForm.<>c__DisplayClass211_0.<SetAttributeValuesOnSave>b__0(Entity en) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\UI\WebControls\WebForm.cs:line 5514
at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source) ...
occasionally we have seen this error in diagnostic logs too - for one-step multi-step forms:
Unable to cast object of type 'System.String' to type 'Microsoft.Xrm.Sdk.EntityReference'.
System.InvalidCastException
at Microsoft.Xrm.Sdk.Entity.GetAttributeValue[T](String attributeLogicalName)
at Adxstudio.Xrm.Web.UI.WebControls.WebForm.<>c__DisplayClass142_0.<CreateChildControls>b__2(Entity e) in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\UI\WebControls\WebForm.cs:line 791
at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
at Adxstudio.Xrm.Web.UI.WebControls.WebForm.CreateChildControls() in C:\__w\1\s\Framework\Adxstudio.Xrm\Web\UI\WebControls\WebForm.cs:line 790
Does anyone has experience this type of errors or point us to any online resource? Any suggestions would be greatly appreciated! Thank you!

Report
All responses (
Answers (