Skip to content
This repository has been archived by the owner on Jun 12, 2019. It is now read-only.

Protect api no longer work in excel online #1185

Closed
shyambhiogade opened this issue Nov 4, 2017 · 4 comments
Closed

Protect api no longer work in excel online #1185

shyambhiogade opened this issue Nov 4, 2017 · 4 comments

Comments

@shyambhiogade
Copy link

Protect api documented here and example given no longer works
https://github.com/OfficeDev/office-js-docs/blob/master/reference/excel/worksheetprotection.md#protectoptions-worksheetprotectionoptions

it gives error as
Home.js:69 Error: InvalidArgument: The argument is invalid or missing or has an incorrect format.
(anonymous) @ Home.js:69
Home.js:71 Debug info: {"code":"InvalidArgument","message":"The argument is invalid or missing or has an incorrect format.","errorLocation":"WorksheetProtection.protect"}

@Rick-Kirkham
Copy link
Contributor

I can reproduce this. I'm making inquiries with the product team.
@shyambhiogade Do you know for sure that this used to work?

@sumurthy
Copy link
Contributor

sumurthy commented Nov 7, 2017

We are aware of the issue. We're working on a fix to update the JavaScript library to fix the issue. ETA: 1-2 weeks at most.

@shyambhiogade
Copy link
Author

@Rick-Kirkham yes, this used to work, I had the code in production, which suddenly started failing.

@kbrandl
Copy link
Contributor

kbrandl commented Nov 28, 2018

Closing this issue, as this product bug appears to have been fixed.

@kbrandl kbrandl closed this as completed Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants