Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

strange InternalServerError on REST API (SP2013 Online)

$
0
0

Hello,

On SP2013 Online, I have a SP2013 workflow which is started manually on a list (number, description) and which uses that information to create a new site based on a template.
The step for the REST call runs in an APP step, and the workflow app was granted fullcontrol on the root site collection.
This ran fine for weeks, and but lately every call fails with InternalServerError.
The URL I use is :  https://<site>/_api/web/webinfos/add
The parameters I have defined :

requestHeaders : {"Accept":"application\/json;odata=verbose","Content-Type":"application\/json;odata=verbose"}

parameter:
{"parameters":{"Url":"P5672","Title":"Some Title","Description":"Some description","Language":1033,"WebTemplate":"{42AF0811-44B3-4280-A61E-3A2AB3A3A793}#RecoProject","UseUniquePermissions":"false","__metadata":{"type":"SP.WebInfoCreationInformation"}}}

In the response, I get this

{"error":{"code":"-2147024713,
Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The
Web site address \"\/sites\/projects2013\/P5672\" is already in
use."}}}

The website however is created completely, and I would expect an OK returned (as before).

It seems to me there is a double call in the Workflow Manager, since I only call the API once...

I checked the site content before the creation of this site, the URL did not exist, nor the site...
I opened a ticket at MS support, but they told me it is not an Office365 issue (I agree it is not related to the SP2013 Online availability, but the REST API is part of the product...)


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>