Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AddPostRequestBody does not contain the values parameter anymore #956

Open
kyjovskym opened this issue Nov 19, 2024 · 0 comments
Open

AddPostRequestBody does not contain the values parameter anymore #956

kyjovskym opened this issue Nov 19, 2024 · 0 comments
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience

Comments

@kyjovskym
Copy link

Describe the bug

According to the documentation pages:

there should be an option in the initialization of WorkbookTableRow and AddPostRequestBody to specify the values attribute. However, the construction of these objects ends with the following exception:

TypeError: WorkbookTableRow.__init__() got an unexpected keyword argument 'values'

This behavior disallows updating Excel using MS Graphs.

Expected behavior

When creating WorkbookTableRow or AddPostRequestBody with the values parameter, the object should be created, and the POST to the underlying Excel table should be successful.

How to reproduce

Follow the instructions on your documentation pages:

SDK Version

1.12.0

Latest version known to work for scenario above?

No response

Known Workarounds

Use CLI

Debug output

Click to expand log ```

Traceback (most recent call last):
File "/Applications/PyCharm.app/Contents/plugins/python/helpers-pro/pydevd_asyncio/pydevd_nest_asyncio.py", line 138, in run
return loop.run_until_complete(task)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Applications/PyCharm.app/Contents/plugins/python/helpers-pro/pydevd_asyncio/pydevd_nest_asyncio.py", line 243, in run_until_complete
return f.result()
^^^^^^^^^^
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/futures.py", line 203, in result
raise self._exception.with_traceback(self._exception_tb)
File "/opt/homebrew/Cellar/[email protected]/3.11.9/Frameworks/Python.framework/Versions/3.11/lib/python3.11/asyncio/tasks.py", line 277, in __step
result = coro.send(None)
^^^^^^^^^^^^^^^
File "/Users/michalkyjovsky/Dev/Work/litfin/orpea/orpea-client-to-excel-worker/sharepoint.py", line 82, in add_record
post_body = WorkbookTableRow(values=sanitized_data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: WorkbookTableRow.init() got an unexpected keyword argument 'values'

</details>


### Configuration

- Chip: Apple M1 Pro
- OS: macOS Sequoia 15.1
- Architecture: ARM64
- To my knowledge, the issue is not specific to the configuration.

### Other information

_No response_
@kyjovskym kyjovskym added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience
Projects
None yet
Development

No branches or pull requests

1 participant