У меня есть пакет SSIS, который импортирует из документа Excel в таблицу базы данных. Я получаю следующие ошибки:
[Excel Source [1]] Error: There was an error with output column "ShipTo" (47) on output
"Excel Source Output" (9). The column status returned was: "The value could not be
converted because of a potential loss of data.".
[Excel Source [1]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The
"output column "ShipTo" (47)" failed because error code 0xC0209072 occurred, and the
error row disposition on "output column "ShipTo" (47)" specifies failure on error. An
error occurred on the specified object of the specified component. There may be error
messages posted before this with more information about the failure.
[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method
on component "Excel Source" (1) returned error code 0xC0209029. The component returned
a failure code when the pipeline engine called PrimeOutput(). The meaning of the
failure code is defined by the component, but the error is fatal and the pipeline
stopped executing. There may be error messages posted before this with more
information about the failure.
Я прочел и нашел статьи, чтобы убедиться, что мои типы данных совпадают, и я это сделал. В документе Excel есть 184 строки, а в столбце, указанном в этих ошибках (shipto), все они имеют одинаковое значение, а это "Все". Я столкнулся с этим в последний раз, когда я его запустил, но всего 4 строки имели "все", поэтому я ввел эти значения вручную, но на этот раз это будет не очень эффективно.
В таблице адресата столбец ShipTo является Varchar (20), поэтому я не вижу, что размер является проблемой, поскольку это одна из трех вещей: 1-значное число, 2-значное число или слово All.
Есть ли у кого-нибудь дополнительные идеи, которые я мог бы попробовать? Любая помощь приветствуется. Спасибо всем, кто может предложить любую помощь.