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

Bad Request - Resource not found for the segment 'columns' #947

Open
justinrogowski opened this issue Dec 12, 2024 · 0 comments
Open

Bad Request - Resource not found for the segment 'columns' #947

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

Comments

@justinrogowski
Copy link

Describe the bug

I am trying to add a new column to a SharePoint Embedded container using C# and when running the code obtained from here I am getting a Microsoft.Graph.Beta.Models.ODataErrors.ODataError with the message "Bad Request - Resource not found for the segment 'columns'". Other endpoints such as creating a Container work fine when called from the same GraphServiceClient.

Expected behavior

The column is successfully created and no error occurs

How to reproduce

`var requestBody = new ColumnDefinition
{
Description = "test",
EnforceUniqueValues = false,
Hidden = false,
Indexed = false,
Name = "Title",
Text = new TextColumn
{
AllowMultipleLines = false,
AppendChangesToExistingText = false,
LinesForEditing = 0,
MaxLength = 255,
},
};

// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Storage.FileStorage.Containers["{fileStorageContainer-id}"].Columns.PostAsync(requestBody);`

SDK Version

5.88.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

Windows 11, x64

### Other information

_No response_
@justinrogowski justinrogowski added status:waiting-for-triage An issue that is yet to be reviewed or assigned type:bug A broken experience labels Dec 12, 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