He estado buscando por el foro, y veo que hay algunos usuarios con el mismo poblema que tengo.
He realizado el alta de un nuevo CI y cuando quiero importar un fichero CSV de 114 filas, me indica que todas han sido con error.
La definición de CI es la siguiente:
Code: Select all
[
{
Key => 'Ambit',
Name => 'Ambit',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::ambit',
Translation => 1,
},
},
{
Key => 'DAP',
Name => 'DAP',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::DAP',
Translation => 1,
},
},
{
Key => 'Identificador',
Name => 'Identificador',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
},
},
{
Key => 'Tipus',
Name => 'Tipus',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::Tipus',
Translation => 1,
},
},
{
Key => 'DIRECCION',
Name => 'ADREÇA',
Searchable => 1,
Input => {
Type => 'Text',
Size => 150,
MaxLength => 150,
},
},
{
Key => 'DESCCARRER',
Name => 'Descripcio carrer',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::DESCCARRER',
Translation => 1,
},
},
{
Key => 'Abonat',
Name => 'Abonat',
Searchable => 1,
Input => {
Type => 'Text',
Size => 50,
MaxLength => 50,
Required => 1,
},
},
{
Key => 'ServiActual',
Name => 'Servei Actual',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::SERVEIACTUAL',
Translation => 1,
},
},
{
Key => 'PROVOBJECTIU',
Name => 'Proveïdor Objectiu',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::PROVOBJECTIU',
Translation => 1,
},
},
{
Key => 'PSFUTUR',
Name => 'Proposta servei futur',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::PROPSERVEIFUTUR',
Translation => 1,
},
},
{
Key => 'PRIOTRANSFORMACIO',
Name => 'Prioritat transformació',
Searchable => 1,
Input => {
Type => 'GeneralCatalog',
Class => 'ITSM::ConfigItem::ASLinDat::PRIOTRANSFORMACIO',
Translation => 1,
},
},
];
El formato de import /export lo he probado con (;) y con tabulación (TAB), y de ninguna de las manera ha sido posible realizar el import correctamente.
Import summary for ITSMConfigItem
Records: 114
Success: 0
Failed: 114
Last processed line number of import file: 114
Mediante el formulario de alta de nuevo elemento de CMDB he generado un registro, lo he exportado y a raíz del CSV generado por OTRS he añadido el resto de elementos a importar.
una muestra del CSV es el siguiente:
En el IMPORT/Export tengo configurado que el CSV sea separado por (;), en UTF-8 y que el CSV incluye cabeceras. Y el identificador es el campo NAME.Name;Deployment State;Incident State;Ambit;DAP;Identificador;Tipus;DIRECCION;DESCCARRER;Abonat;ServiActual;PROVOBJECTIU;PSFUTUR;PRIOTRANSFORMACIO
Site1;Production;Operational;Hospitalari;Hospitalari;1234;HOSPITAL;C. del hospital;T1SDES200M - 200M simètric estàndard Zona 1;123456789;BC_CORP;H1;H1-1;PRIORITAT ALTA
¿Alguna ayuda?
Un Saludo,