I was importing data from Salesforce today, when my BULK INSERT failed with too-long data: longer than the field length as reported from Salesforce itself. I discovered that this field, which Salesforce describes as a TEXT(40)
, has values up to 255 characters long. I can only guess that the field had a 255-character limit in the past, was changed to TEXT(40)
, and Salesforce has not yet applied the new limit.
When are field lengths enforced? Only when new data is inserted or modified? Are they enforced at any other point, such as a weekly schedule?
Second, is there any way to know the actual field length limit? As a database guy, not being able to rely on the metadata I've been given makes me cringe. As just one random example, if we were to restore this table from the backup I assume that the long values would bomb, or possibly be truncated.
I'm using the SOAP API.