salesforce-marketingcloud / FuelSDK-Python

FuelSDK for python
Other
127 stars 193 forks source link

suds.TypeNotFound: Type not found: '__AdditionalEmailAttribute1' #81

Open ibrahimwr opened 6 years ago

ibrahimwr commented 6 years ago

suds.TypeNotFound: Type not found: '__AdditionalEmailAttribute1'

I have been getting this error when using the v1.0.0. branch.

Any idea what is going on? I can do some stuff, but when I attempt to send an email, then I get that error.

email.props = {"ID" : "151515151", "Name": "SDK Example, now Updated!"} email.post()

ERROR: suds.TypeNotFound: Type not found: '__AdditionalEmailAttribute1'

sharif26 commented 6 years ago

Thanks for creating the known issue. To fix the issue, you can download a copy of wsdl file from our newly released repo's obsamples directory and mention its path in the config file (config.python) like below:

wsdl_file_local_loc: /path/to/wsdl/ExactTargetWSDL.xml

This is mentioned in the readme file.

bdgp1990 commented 5 years ago

I`m still having this problem, can someone help me?

I`m passing all the info into params in ET_Client.ET_Client.

ET_Client.ET_Client(False, False, {
            'clientid': 'xxxx',
            'clientsecret': 'yyyy',
            'defaultwsdl': 'https://webservice.exacttarget.com/etframework.wsdl',
            'baseapiurl': 'https://mcxxxx21.rest.marketingcloudapis.com/',
            'authenticationurl': 'https://mcxxxx21.auth.marketingcloudapis.com/v1/requestToken',
            'soapendpoint': 'https://mcxxxx21.soap.marketingcloudapis.com/',
            'useOAuth2Authentication': 'True',
            'accountId': '6xxx5',
            'wsdl_file_local_loc': r'/Users/.../ExactTargetWSDL.xml'
        })

But I`m still getting this problem when trying to create an email exactely like the example says.

TypeNotFound("Type not found: '__AdditionalEmailAttribute1'")

Thom3435 commented 5 years ago

@bdgp1990 I had this same issue and was able to resolve it by deleting the double underscores at the beginning of each of the AdditionalEmailAttribute elements in my local ExactTargetWSDL.xml file. So '__AdditionalEmailAttribute1' would become 'AdditionalEmailAttribute1'. Do this for 1 - 5.

bdgp1990 commented 5 years ago

@Thom3435 which arguments did you passed on ET_Client call? Ive already removed but I`m getting the following error =/...

Im getting a {'code': 405, 'status': False} response

Thom3435 commented 5 years ago

You should set those in your client.py file in the FuelSDK folder so you do not have to pass them each time. I only have set client_id, client_secret, and wsdl_file_url, the rest will set to a default value via client.py.

sfdrogojan commented 5 years ago

@bdgp1990 If you are using

'useOAuth2Authentication': 'True',

you should set this for the authentication url:

'authenticationurl': 'https://mcxxxx21.auth.marketingcloudapis.com'

gaetano44 commented 3 years ago

@bdgp1990 I had this same issue and was able to resolve it by deleting the double underscores at the beginning of each of the AdditionalEmailAttribute elements in my local ExactTargetWSDL.xml file. So '__AdditionalEmailAttribute1' would become 'AdditionalEmailAttribute1'. Do this for 1 - 5.

I had the same issue and this fix worked for me.