Delete row method returning a parsing error when it previously worked
Hello,
This method was not giving me any issues prior to today.
I'm using hte c# sdk.
code:
smartsheet.SheetResources.RowResources.DeleteRows(long sheetId, Sheet getSheet, true)
returned error:
NameValueType
▶$exception{"Unexpected character encountered while parsing value: <. Path '', line 0, position 0."}Smartsheet.Api.SmartsheetException
StackTrace:
at Smartsheet.Api.Internal.AbstractResources.HandleError(HttpResponse response)
at Smartsheet.Api.Internal.AbstractResources.DeleteResource[T](String path)
at Smartsheet.Api.Internal.SheetRowResourcesImpl.DeleteRows(Int64 sheetId, IEnumerable`1 ids, Nullable`1 ignoreRowsNotFound)
at SmartSheet_API_Integration.Program.ReloadSmartsheetsFromDataSource(String extractPath, SmartsheetClient smartsheet, Int64 sheetId, String query) in C:\Projects\trunk\Clients\Giant Oil\SmartSheet_API_Integration - Import - Comm Agent\SmartSheet_API_Integration\Program.cs:line 388
at SmartSheet_API_Integration.Program.Main(String[] args) in C:\Projects\trunk\Clients\Giant Oil\SmartSheet_API_Integration - Import - Comm Agent\SmartSheet_API_Integration\Program.cs:line 84
Any idea why this would start happening when I haven't changed anything?
Thanks,
Channing
Comments
-
Has anything changed about the data that you are passing to the method to delete the rows? I found this post on StackOverflow where someone was getting a similar error with solutions:
https://stackoverflow.com/questions/23259173/unexpected-character-encountered-while-parsing-value
That may help to get this resolved.
-
This was discussed further on StackOverflow. For others seeing this post, there are more details on the solution here:
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.1K Get Help
- 414 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives