sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

Repetetive "Sorry, something went wrong with adding the app" when trying to deploy assets via SPFx-solution(s)

Open balle3201 opened this issue 8 years ago • 6 comments

I'm facing repetitive issues when trying to deploy SharePoint-assets via PSPFx-solution(s). It seems that provisioning Fields and Content Types works fairly stable, but as soon as a List Instance is added, and especially when specifying a "CustomSchema", the App-Installation ends up with an indescribable error-message.: "Sorry, something went wrong with adding the app". I have tried both in SPFx Application Customizer(s) and Client Side Web Parts but to no avail.

Have someone else been experiencing the same issues, and could perhaps share some experiences regarding this matter?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

balle3201 avatar May 23 '18 12:05 balle3201

I hace the exact same issue! This doesnt work... double checked all code. Also tried --ship. Nothing. Get the same error.

UX-Gav avatar May 24 '18 16:05 UX-Gav

Update: Got mine working no problem now. I tried customising first, so clearly something wrong in what I did in the Schema perhaps. So I deleted everything, and copied the code EXACTLY as above. Used --ship as well and working. I'm going to reproduce my 1st attempt... have an idea of what could be happening...

UX-Gav avatar May 24 '18 17:05 UX-Gav

Ok... so here's what I've found. I got it all working nicely with my own fields etc with and without --ship.

Once working though was a very painful excercise to try and reproduce the error again. I made minor adjustments until I found the culprit.

Elements.xml This works: <Field ID="{060E50AC-E9C1-4D3C-B1F9-DE0BCAC300F6}" This breaks it: <Field ID="{9ec8e698-591d-4103-9f3b-b8f877b33df8}"

i.e. For me specifically, lowercase field ID's in the Elements.xml file cause the error.

For reference I uploaded my files here: https://drive.google.com/open?id=1rACV9Ckyw4QnQZ9cIqXl2sO0goOOtjC-

Includes a publishing hyperlink field, choice field and number field.

UX-Gav avatar May 24 '18 22:05 UX-Gav

Thanx for the feedback @UX-Gav :-)

This was not the cause of the error in my case I'm afraid... For some reason an unintentionally character had sneaked its way in the schema.xml definition. It took a lot of effort to find the culprit, and I'm kind of surprised that VS Code did not identify this character as an invalid attribute in the XML, and give me a warning at least.

I'm closing this issue as it regrettable was my own fault :-(

Still facing the issues related to #1518 regarding getting the correct Content Type to appear in the New Menu for the list/library. The fields and Content Type are provisioned correctly to the site, but seem to be improperly connected to the list.

balle3201 avatar May 31 '18 07:05 balle3201

Thank you @ux-gav, it has fixed the issue for me

merly-cortez avatar Jun 13 '18 21:06 merly-cortez

Issues that have been closed & had no follow-up activity for at least 7 days are automatically locked. Please refer to our wiki for more details, including how to remediate this action if you feel this was done prematurely or in error: Issue List: Our approach to locked issues

msft-github-bot avatar Jan 27 '20 18:01 msft-github-bot