I'm new to using FuelSDK. I'm getting an obscure error when trying to create a sendable data extension using FuelSDK. Below is my code:
dataextension.props = {"Name" : "MyDataExtension", "Description": "My first data extension", "IsSendable": True, "SendableDataExtensionField": "CustomerID", "SendableSubscriberField": "_SubscriberKey"}
dataextension.columns = [
{"Name" : "CustomerID", "FieldType" : "Number"},
{"Name" : "Field1", "FieldType" : "Text", "MaxLength" : "100"},
]
results = dataextension.post()
The error I'm getting back is:
[(CreateResult){
StatusCode = "Error"
StatusMessage = "Exception occurred during [Create] ErrorID: 1667725857"
OrdinalID = 0
ErrorCode = 2
NewID = 0
Object =
(DataExtension){
PartnerKey = None
ObjectID = None
Name = "MyDataExtension"
Description = "My first data extension"
IsSendable = True
SendableDataExtensionField =
(DataExtensionField){
PartnerKey = None
ObjectID = None
}
SendableSubscriberField = ""
Fields =
(Fields){
Field[] =
(DataExtensionField){
PartnerKey = None
ObjectID = None
Name = "CustomerID"
FieldType = "Number"
},
(DataExtensionField){
PartnerKey = None
ObjectID = None
Name = "Field1"
MaxLength = 100
FieldType = "Text"
},
}
}
}]
I thought initially that my SendableSubscriberField value of "_SubscriberKey" was the problem, so I tried using different variations such as "SubscriberKey" and "Subscriber Key", but still to no avail.
What am I doing wrong here? If someone could kindly point me in the right direction, it would be greatly appreciated.
thanks, Mark