Error: INVALID_TYPE: sObject type 'tnw_mage_basic__Magento_Website__c' is not supported.
The error like “INVALID_TYPE: sObject type 'tnw_mage_basic__Magento_Website__c' is not supported.“ could happen for different reasons:
You may need to update WSDL file and upload a new file version to the Magento
You need to refresh your Magento storage cache
This is the Salesforce issue / a temporary problem
Instructions
Generate new Enterprise WSDL file in your Salesforce org and upload it to the Magento
If that does not help - refresh your Magento and Magento Storage Cache
If it does not help solve the problem, it could be related to a temporary Salesforce issue. As a workaround, you can make the following temporary fix:
Open your Enterprise WSDL file in any text editor
Find the “
Soap Service Endpoint
“ section at the bottom of this file, it should look like this:<!-- Soap Service Endpoint --> <service name="SforceService"> <documentation>Sforce SOAP API</documentation> <port binding="tns:SoapBinding" name="Soap"> <soap:address location="https://login.salesforce.com/services/Soap/c/46.0/0DF1p0000007EGj"/> </port> </service>
c. You will need to modify the URL after the “location=“ string and remove the last “/“ symbol and a string after it. In our case, it’s “/0DF1p0000007EGj“
Your WSDL file could contain a different URL!
d. The result should be:
<!-- Soap Service Endpoint -->
<service name="SforceService">
<documentation>Sforce SOAP API</documentation>
<port binding="tns:SoapBinding" name="Soap">
<soap:address location="https://login.salesforce.com/services/Soap/c/46.0"/>
</port>
</service>