-
Notifications
You must be signed in to change notification settings - Fork 0
Issue connecting error when calling Add-SmartsheetRow #9
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
Comments
Any thoughts on this? |
@skywayskase Hi, any thoughts on this error? I also get it when updating a row. |
Hey @jack-vinitsky sorry for the delay. I just tested those functions and didn't receive any errors. Please provide the command you entered, and probably the commands you used to build the cell and row object(s), (and of course, please obfuscate any id numbers and/or PII). Also, please verify your access level on the sheet you're trying to update. |
Hi @skywayskase Thank you for responding back. I am the Owner of the sheet I am trying to update. Here is a simplified version of the code I am running that is also giving me the same error.
Error occurs on the row with the Add-SmartsheetRow command. I am returning the column IDs earlier in the script without issue. Here is the full error trace: ErrorRecord : Exception calling "AddRows" with "2" argument(s): "One or more errors occurred. (There was an issue connecting. Error response: )" InnerExceptions : {Smartsheet.Api.Internal.Http.HttpClientException: There was an issue connecting. Error response: TargetSite : Void MoveNext() |
Describe the bug
Getting issue connecting error when trying to add new row to a Smartsheet. This was working 2 months ago. I tried run my script again on 1/27/2025 and am now getting errors. Other commands like Search-Smartsheet are working.
To Reproduce
Call Add-SmartsheetRow passing in the sheet ID and RowObject
Expected behavior
The row is added
Screenshots
N/A
Desktop (please complete the following information):
Additional context
Here is the error exception trace:
2025/01/27 11:27:34 [ERROR] - Exception calling "AddRows" with "2" argument(s): "One or more errors occurred. (There was an issue connecting. Error response: )"
2025/01/27 11:27:34 [ERROR] - System.AggregateException: One or more errors occurred. (There was an issue connecting. Error response: )
---> Smartsheet.Api.Internal.Http.HttpClientException: There was an issue connecting. Error response:
at Smartsheet.Api.Internal.Http.DefaultHttpClient.RequestAsync(HttpRequest smartsheetRequest)
--- End of inner exception stack trace ---
at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
at Smartsheet.Api.Internal.Http.DefaultHttpClient.Request(HttpRequest smartsheetRequest)
at Smartsheet.Api.Internal.AbstractResources.PostAndReceiveList[T,S](String path, T objectToPost, Type objectClassToReceive)
at Smartsheet.Api.Internal.SheetRowResourcesImpl.AddRows(Int64 sheetId, IEnumerable`1 rows)
at CallSite.Target(Closure, CallSite, Object, Object, Object)
The text was updated successfully, but these errors were encountered: