FuelSDK-Python icon indicating copy to clipboard operation
FuelSDK-Python copied to clipboard

suds.TypeNotFound: Type not found: '__AdditionalEmailAttribute1'

Open ibrahimwr opened this issue 7 years ago • 7 comments

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'

ibrahimwr avatar Oct 13 '17 13:10 ibrahimwr

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.

sharif26 avatar Nov 06 '17 20:11 sharif26

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'")

bdgp1990 avatar May 22 '19 12:05 bdgp1990

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

Thom3435 avatar May 22 '19 14:05 Thom3435

@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

bdgp1990 avatar May 22 '19 15:05 bdgp1990

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.

Thom3435 avatar May 22 '19 18:05 Thom3435

@bdgp1990 If you are using

'useOAuth2Authentication': 'True',

you should set this for the authentication url:

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

sfdrogojan avatar May 23 '19 09:05 sfdrogojan

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

gaetano44 avatar Mar 17 '21 15:03 gaetano44