question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

FileServices.SetServicePropertiesAsync throws XML specified is not syntactically valid.

See original GitHub issue

Describe the bug

FileServices.SetServicePropertiesAsync throws XML specified is not syntactically valid.

Expected behavior

No exception

Actual behavior (include Exception or Stack Trace)

Microsoft.Rest.Azure.CloudException: XML specified is not syntactically valid.
RequestId:cfad924b-401a-0011-3d03-1c9ff4000000
Time:2021-03-18T14:28:52.7368664Z

To Reproduce Steps to reproduce the behavior (include a code snippet, screenshot, or any additional information that might help us reproduce the issue)

var properties = await managementClient.FileServices.GetServicePropertiesAsync(resourceGroupName, storageAccountName);
properties.ShareDeleteRetentionPolicy = new DeleteRetentionPolicy(true, 30);
await managementClient.FileServices.SetServicePropertiesAsync(resourceGroupName, storageAccountName, properties);

Environment:

  • Microsoft.Azure.Management.Storage 1.19
  • Windows 10 .NET Core 3.1

Workaround

await managementClient.FileServices.SetServicePropertiesAsync(azure.ResourceGroupName, storageAccount.Name, new FileServiceProperties(shareDeleteRetentionPolicy: new DeleteRetentionPolicy(true, 30)));

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pawelpabichcommented, Dec 1, 2021

Yes, I did. Id: 2109070060001835

1reaction
jsquirecommented, Mar 18, 2021

Thank you for your feedback. Tagging and routing to the team member best able to assist.

Read more comments on GitHub >

github_iconTop Results From Across the Web

InvalidXmlDocument: XML specified is not syntactically valid
The error is most probably caused by empty properties in the elements fileServices, queueServices and/or tableServices in your ARM-template.
Read more >
ARM Templates: StorageAccounts/FileServices ERROR " ...
Getting the following error with my ARM template 17:25:32 - Status Message: XML specified is not syntactically valid.
Read more >
XML specified is not syntactically valid · Issue #13232
Describe the bug. az storage logging update command when used to update table storage logging, generates an invalid XML error. Command Name
Read more >
I am getting "XML specified is not syntactically valid" error. ...
I am getting "XML specified is not syntactically valid" error. I tried with both JSON and CSV code. Same issue. any idea why...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found