spmeta2
spmeta2 copied to clipboard
Creating module folders does not work with SP2010 CSOM
Hello,
Thank you for opening an issue. Please note that we try to keep github issue tracker reserved for bug reports and feature requests. For general usage questions, please use the documentation site or reach out support on Yammer network:
- http://docs.subpointsolutions.com/spmeta2
- https://www.yammer.com/spmeta2feedback
Brief description
Please provide short description covering two areas:
- Actual behavior Trying to provision a folder in a document library does not work with SPMeta2 for SP2010 CSOM. I'm using the exact same code as shown here: http://docs.subpointsolutions.com/spmeta2/reference/sp-foundation-definitions/modulefiledefinition.html However calling .AddFolder() throws an exception: NotSupportedException: Invalid usage of query execution. The query should be executed by using ExecuteQuery method on the client context object.
- expected behavior Folders are created using the example code. No exception is thrown.
SharePoint API
Which version of SharePoint runtime do you use?
- CSOM SharePoint 2010
SPMeta2 API
Which version of SPMeta2 do you use? Use the following code snippet for your convenience. It shows all the details on SPMeta2 and SharePoint runtime used. var info = SPMeta2Diagnostic.GetDiagnosticInfo(); info.ToString(): "SPMeta2.Diagnostic.DiagnosticInfo SPMeta2FileVersion:[1.2.17104.0417] SPMeta2FileLocation:[C:\Dev_RK\CIM\CIMProv\bin\Debug\SPMeta2.dll] CSOMFileVersion:[14.0.7006.1000] CSOMFileLocation:[C:\Windows\assembly\GAC_MSIL\Microsoft.SharePoint.Client\14.0.0.0__71e9bce111e9429c\Microsoft.SharePoint.Client.dll] Convert(p.IsSSOMDetected):[False]"
SPMeta2 model
Optionally, provide SPMeta2 model in which issue occurs. That helps to identify the issue and provide the solution as far as we can. See example scenario at http://docs.subpointsolutions.com/spmeta2/reference/sp-foundation-definitions/modulefiledefinition.html
Started looking into this.