You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
We're having issues trying to create Import Definitions with the FuelSDK for Python. We've managed to add another class in the objects.py class. Which allows us to read and delete.
class ET_Import(ET_CUDSupport):
def __init__(self):
super(ET_Import, self).__init__()
self.obj_type = 'ImportDefinition'
However, when we try to create an Import Definition, it returns with this error:
post_response: <FuelSDK.rest.ET_Post object at 0x1098f41d0>
code: 200
results: [(CreateResult){
StatusCode = "Error"
StatusMessage = "ID of the custom object cannot be empty."
OrdinalID = 0
ErrorCode = 43040
NewID = 0
Object =
(ImportDefinition){
PartnerKey = None
ObjectID = None
CustomerKey = "000001-22222-33333-44444-55555-66666"
Name = "Aaaaaaaaaaaaaaaaaaaaaaaa"
Description = "This is a test from Python"
AllowErrors = True
DestinationObject =
(APIObject){
PartnerKey = None
ID = 463703
ObjectID = None
}
FieldMappingType = "InferFromColumnHeadings"
FileSpec = "file_that_is_on_the_ftp.csv",
FileType = "Other"
Notification =
(AsyncResponse){
ResponseType = "email"
ResponseAddress = "my email address}"
}
RetrieveFileTransferLocation =
(FileTransferLocation){
PartnerKey = None
ObjectID = None
CustomerKey = "ExactTarget Enhanced FTP"
}
SubscriberImportType = "Email"
UpdateType = "AddAndUpdate"
Delimiter = ";"
}
}]
status: False
We've tried many different attempts to get this to work changing out various fields and values. We've even tried to manipulate the XML SOAP envelope to match what the FuelSDK-PHP uses before its sent out, but no luck.
The text was updated successfully, but these errors were encountered:
I don't remember exactly, but I recall that the examples in the documentation reference an outdated WSDL schema. If your SOAP envelope matches those produced by those examples and my memory is correct, then it's possible that it's not what is expected by the SOAP API.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
We're having issues trying to create Import Definitions with the FuelSDK for Python. We've managed to add another class in the objects.py class. Which allows us to read and delete.
However, when we try to create an Import Definition, it returns with this error:
Here's what our call looks like:
We've tried many different attempts to get this to work changing out various fields and values. We've even tried to manipulate the XML SOAP envelope to match what the FuelSDK-PHP uses before its sent out, but no luck.
The text was updated successfully, but these errors were encountered: