При сведении столбцов в разных файлах постоянно выскакивает такая ошибка #"Обнаруженные несоответствия типов". Я уже всем столбцам тип текст задавала. Не помогает. Подскажите, пожалуйста, как с ней бороться.
Это автоанализ ошибки:
let
Источник = ToptoolПарамРез,
#"Обнаруженные несоответствия типов" = let
tableWithOnlyPrimitiveTypes = Table.SelectColumns(Источник, Table.ColumnsOfType(Источник, {type nullable number, type nullable text, type nullable logical, type nullable date, type nullable datetime, type nullable datetimezone, type nullable time, type nullable duration})),
recordTypeFields = Type.RecordFields(Type.TableRow(Value.Type(tableWithOnlyPrimitiveTypes))),
fieldNames = Record.FieldNames(recordTypeFields),
fieldTypes = List.Transform(Record.ToList(recordTypeFields), each [Type]),
pairs = List.Transform(List.Positions(fieldNames), (i) => {fieldNames{i}, (v) => if v = null or Value.Is(v, fieldTypes{i}) then v else error [Message = "Тип значения не соответствует типу столбца.", Detail = v], fieldTypes{i}})
in
Table.TransformColumns(Источник, pairs),
#"Добавлен индекс" = Table.AddIndexColumn(#"Обнаруженные несоответствия типов", "Номер строки" ,1),
#"Сохраненные ошибки" = Table.SelectRowsWithErrors(#"Добавлен индекс", {"Attribute:id", "Attribute:rate", "Element:Text", "Attribute:id.1", "Attribute:parentId", "url", "price", "currencyId", "categoryId", "pickup", "delivery", "name", "vendor", "vendorCode", "country_of_origin", "description", "sales_notes", "Attribute:id.2", "Attribute:available", "Фото 1", "Фото 2", "Фото 3", "Фото 4", "Фото 5", "Фото 6", "Фото 7", "Фото 8", "Фото 9", "Фото 10", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "24", "25", "28", "29", "30", "31", "32", "33", "34", "35", "36", "23", "47", "48", "51", "52", "53", "54", "55", "56", "57", "26", "17", "18", "19", "20", "21", "27", "22", "39", "40", "41", "42", "43", "44"}),
#"Переупорядоченные столбцы" = Table.ReorderColumns(#"Сохраненные ошибки", {"Номер строки", "Attribute:id", "Attribute:rate", "Element:Text", "Attribute:id.1", "Attribute:parentId", "url", "price", "currencyId", "categoryId", "pickup", "delivery", "name", "vendor", "vendorCode", "country_of_origin", "description", "sales_notes", "Attribute:id.2", "Attribute:available", "Фото 1", "Фото 2", "Фото 3", "Фото 4", "Фото 5", "Фото 6", "Фото 7", "Фото 8", "Фото 9", "Фото 10", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "24", "25", "28", "29", "30", "31", "32", "33", "34", "35", "36", "23", "47", "48", "51", "52", "53", "54", "55", "56", "57", "26", "17", "18", "19", "20", "21", "27", "22", "39", "40", "41", "42", "43", "44"})
in
#"Переупорядоченные столбцы"