Hello,
After upgrading to 4.6.19, we get the following exception upon saving an attachment to SP. Please see code snippet for reference. Thank you in advance!
Code:
IAttachmentFile newFile = folderItem.NewFile(Path.GetFileNameWithoutExtension(document.FileName), file, Path.GetExtension(document.FileName), "", AttachmentSource.Attached);
os.ApplyChanges(order);
Exception: Object reference not set to an instance of an object.
Stack trace:
at SoftPro.ClientModel.AsyncResult`1.get_Result()
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.EndApplyChanges(IAsyncResult ar)
at SoftPro.OrderTracking.Client.Orders.OrderStore.SoftPro.OrderTracking.Client.Orders.IOrderStore.ApplyChanges(IOrder order)
at PTHub.Connector.SoftPro.Api.Services.DocumentService.UploadDocument(Document document, Stream file) in ...\PTHub.Connector.SoftPro.Api\Services\DocumentService.cs:line 97
Object reference not set to an instance of an object (V4.6.19)
-
- Posts: 7
- Joined: Thu May 12, 2022 1:32 pm
-
- Posts: 1377
- Joined: Wed Jan 15, 2014 3:50 pm
- Location: Raleigh, NC
- Contact:
Re: Object reference not set to an instance of an object (V4.6.19)
We are currently working on your issue. We will report the findings when we are done.
Bob Richards, Senior Software Developer, SoftPro