Object error calling EslClient.ReportService.CompletionReport for date
Friday, February 3, 2017 at 03:49ameSginLive,
I'm getting an object reference error when executing EslClient.ReportService.DownloadCompletionReport() for certain dates.
The last couple of days I’ve received the following exception using the eSignLive api:
Silanis.ESL.SDK.EslException: Could not download the completion report. Exception: Object reference not set to an instance of an object.
System.NullReferenceException: Object reference not set to an instance of an object.
at Silanis.ESL.SDK.Internal.HttpMethods.GetHttpJson(String apiToken, String path, String acceptType)
at Silanis.ESL.SDK.RestClient.Get(String path)
at Silanis.ESL.SDK.Services.ReportService.DownloadCompletionReport(DocumentPackageStatus packageStatus, DateTime from, DateTime to) --- End of inner exception stack trace ---
at Silanis.ESL.SDK.Services.ReportService.DownloadCompletionReport(DocumentPackageStatus packageStatus, DateTime from, DateTime to)
This exception occurs when I execute the following api call (it take about 2-3 minutes for the exception to be thrown):
CompletionReport cr = esl.ReportService.DownloadCompletionReport(DocumentPackageStatus.COMPLETED, startDate, endDate);startDate = “01/29/2017†endDate = “02/03/2017†I also got the error when my process ran yesterday with the date parameter as follows: startDate = “01/28/2017†endDate = “02/02/2017†But when my process ran Monday with the following dates, below, it worked successful. startDate = “01/27/2017†endDate = “02/01/2017†This error seems to happen weekly, typically it happens when our process runs on Saturdays or Sundays. Can you please provide some insight into this and how to resolve it? Is there an updated APIs that I need to download that would resolve it? I using version “v2.0.50727†of the Silanis.ESL assembly. I go out to the web portal and run an advance search for completed packages for the same date range and it processes successfully, so I’m not sure how to resolve this. Any help would be much appreciated. Thanks Nathan
Reply to: Object error calling EslClient.ReportService.CompletionReport for date
Friday, February 3, 2017 at 05:26am- Have you been getting this issue only recently (past 2-3 days)?
- Are you using the latest version of the SDK? In other words, are you using SDK 11.0.1 for version 11 of esl (i.e. sandbox.esignlive.com / apps.esignlive.com) and SDK 10.13 for version 10 of esl (i.e. sandbox.e-signlive.com / apps.e-signlive.com)
- Are you using any proxies or firewalls?
- How are you building your DateTime objects?
- Does this exception only occur when retrieving reports or does it also occur for example when creating package, uploading document, etc.?
Let me know.Reply to: Object error calling EslClient.ReportService.CompletionReport for date
Friday, February 3, 2017 at 09:26amReply to: Object error calling EslClient.ReportService.CompletionReport for date
Friday, February 3, 2017 at 09:51amReply to: Object error calling EslClient.ReportService.CompletionReport for date
Monday, February 6, 2017 at 09:19am