Creating Tasks Category results in Object Reference not set Error
Problem reported by Ionel Aurelian Rau - 6/5/2019 at 6:54 AM

We`ve encountered the following problem for one of our users: when trying to create a new Task Category, the error "Object reference not set to an instance of an object" occurs.

I have not been able to find more information on this error in the SM logs.

The browser / debug console shows this relevant bit:
POST https://mail.domain.com/api/v1/contacts/categories-put[HTTP/1.1 400 Bad Request 215ms] 
Request URL: https://mail.domain.com/api/v1/contacts/categories-put
Request method:POST
Remote address:REDACTED-IP:443
Status code: 400
Response headers (215 B)	Raw headers

Cache-Control	no-cache
Content-Length	67
Content-Type	application/json; charset=utf-8
Date	Wed, 05 Jun 2019 09:51:08 GMT
Expires	-1
Pragma	no-cache
Server	Microsoft-IIS/8.5

Request headers (1.497 KB)	Raw headers
Accept	application/json, text/plain, */*
Accept-Encoding	gzip, deflate, br
Accept-Language	en-US,en;q=0.5
Authorization	Bearer Some Code - Redacted
Connection	keep-alive
Content-Length	58
Content-Type	application/json;charset=utf-8
Cookie	_ga=GA1.2.redacted…referrer%3D%26date%3D20190219
Host	mail.domain.com
Referer	https://mail.domain.com/interface/root
User-Agent	Mozilla/5.0 (Windows NT 10.0; …) Gecko/20100101 Firefox/67.0
JSON message	Object reference not set to an instance of an object.

Response payload	
{"message":"Object reference not set to an instance of an object."}
What would be the next steps to troubleshoot this?

Right now we`re on build 100.0.7082.26675. We`ll update to Build 7090 when possible, but have not seen any fix that might help.

Thank you!

2 Replies

Reply to Thread
Tony Scholz Replied
Employee Post

Is this specific to a single user? If so I would recommend re-adding the user to reset the permissions. 
  • Disable the user ( stops the flow of mail ) 
  • Copy the users folder ( C:\SmarterMail\Domains\{DOMAIN}\Users\{USER}
  • Delete the user from the web interface
  • Rename the copied folder to what the original was called ( remove the " copy" )
  • in the System admin interface GoTo 
    • Manage -> (...) -> Attach User

After the user has been added back in remember to make sure they are enabled and check to see if you are getting the same error message. 

In general the logs that you can look into are 
  • Administrative
  • Error
If you continue to have an issue you may need to submit a support ticket so that we can do some more digging and local testing. 

I just tested this on my local install and am not seeing the same issues. 

Thank you
Tony Scholz
Technical Support Specialist
SmarterTools Inc.
(877) 357-6278
Ionel Aurelian Rau Replied
Well, bummer, this is the CEO`s account and is 60+ GB in size. I`m not sure when I would be able to perform the mentioned troubleshooting steps.

Is there no logging I can do to find more about this error without disabling, detaching and reattaching the user? Or maybe there is some config file pertaining to the Tasks section that might have been corrupted and can be recreated or something like that?

Reply to Thread