Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

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

Open
ibrahimwr opened this issue Oct 13, 2017 · 7 comments
Open

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

ibrahimwr opened this issue Oct 13, 2017 · 7 comments

Comments

@ibrahimwr
Copy link

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
Copy link

sharif26 commented Nov 6, 2017

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
Copy link

bdgp1990 commented May 22, 2019

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
Copy link

Thom3435 commented May 22, 2019

@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
Copy link

bdgp1990 commented May 22, 2019

@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
Copy link

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
Copy link
Contributor

@bdgp1990 If you are using

'useOAuth2Authentication': 'True',

you should set this for the authentication url:

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

@gaetano44
Copy link

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants