Forum Discussion

Pankaj1490's avatar
Pankaj1490
Copper Contributor
Jul 04, 2023

Can we create Sharepoint site with unicode or special characters?

I am creating sharepoint site with unicode or special characters, I am getting the error

site creation failed.

 

13:27:34          request_url = self._endpoints['create_site'].format(web_url=web_url)
13:27:34          body = {
13:27:34              'request': {
13:27:34                  'Title': title,
13:27:34                  'Url': url,
13:27:34                  'Lcid': lcid,
13:27:34                  'ShareByEmailEnabled': share_by_email_enabled,
13:27:34                  'Classification': classification,
13:27:34                  'Description': description,
13:27:34                  'WebTemplate': web_template,
13:27:34                  'Owner': owner,
13:27:34              }
13:27:34          }
13:27:34          headers = self.sp_header
13:27:34          headers['odata-version'] = '4.0'
13:27:34          headers['Accept'] = 'application/json;odata.metadata=none'
13:27:34          response = self._post_request(url=request_url, headers=headers, json=body).json()
13:27:34          LOG.info(response)
13:27:34          if response['SiteStatus'] not in (1, 2):
13:27:34  >           raise Error('Site creation failed')
13:27:34  E           cdf_lib.o365.sharepoint.sharepoint.Error: Site creation failed
13:27:34  
13:27:34  pysrc/cdf_lib/o365/sharepoint/sharepoint.py:1655: Error
13:27:34  ------------------------------ Captured log call -------------------------------
13:27:34  MainThread 2023-07-04 07:26:42 sharepoint:1653 INFO: {'SiteId': '', 'SiteStatus': 3, 'SiteUrl': ''}

 

No RepliesBe the first to reply