function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
StenSten 

INVALID_TYPE: sObject type 'register__c' is not supported.

Getting error INVALID_TYPE: sObject type 'register__c' is not supported. While trying to create a user through the API. Profile  used is admin profile and all fields are appended rightly.
Best Answer chosen by Sten
Raj VakatiRaj Vakati
Do one think ..  the issue is becasue of the WSDL file 

May be you got the WSDL file before creating this object register__c  

GET the new WSDL file again and try to use it it will solve your probelm 
  1. From Setup, enter API in the Quick Find box, then select API to display the WSDL download page.
  2.  Import the WSDL File Into your env 

All Answers

Raj VakatiRaj Vakati
Do you have an access for register__c field at profile level  ??

Go to  salesforce field accessibility and make it visiable 
StenSten
Hi Raj, register__c is a custom object api name
Raj VakatiRaj Vakati
Do you have access for the profile and When you are getting this error ?

I mean from API ( SOAP or REST ) ??
or from the apex code ??
StenSten
Hi Raj, It is SOAP
Raj VakatiRaj Vakati
Do one think ..  the issue is becasue of the WSDL file 

May be you got the WSDL file before creating this object register__c  

GET the new WSDL file again and try to use it it will solve your probelm 
  1. From Setup, enter API in the Quick Find box, then select API to display the WSDL download page.
  2.  Import the WSDL File Into your env 
This was selected as the best answer
StenSten
Hi Raj,
Thank you.I generated a new WSDL and imported into my environment and it worked!!!
Thank you so much
Raj VakatiRaj Vakati
Cool !Mark it as solved!