CONVERTIR DOCUMENTO XLS A DATA TABLE

Buenas,

Estoy haciendo un robot en el que me descargo un catálogo en formato xls de una web y tengo 2 opciones:
1.Convertir este archivo directamente a data table

2.Convertir este archivo a formato xlsx y después a data table

He probado varias cosas pero o no me reconoce el archivo (diciendo que no existe) o da error por el formato xls y no sé qué hacer ya.

Gracias.

Hello @RPA_NOZAMA, try something like this:

If you want to convert an XLS file (Excel 97-2003 format) directly to a DataTable, you can use the “Read Range” activity from the Excel Activities package:

  1. Drag and drop the “Excel Application Scope” activity into your workflow.
  2. Inside the scope, use the “Read Range” activity.
  3. In the “Read Range” activity, specify the path to your XLS file, and set the range (e.g., “A1” if you want to read the entire sheet).
  4. Create a DataTable variable to store the data.
  5. In the “Output” property of the “Read Range” activity, assign the DataTable variable.

This will read the data from the XLS file and store it in a DataTable variable.

Cheers! :slight_smile:

Buenas,

¿Es la actividad Read Range Workbook? y en Propiedades le pongo la Data Table,¿no?

Gracias.

Modern
https://docs.uipath.com/activities/other/latest/productivity/read-range-x
in combination with a Excel process scope / Use Excel file

Classic:
grafik

You can also refer to some courses related to it within the UiPath Academy

Vale, es que cuando uso la actividad Use Excel File me da error porque es como si intentase abrir un documento xslx cuando en verdad es xls y en mi versión de Studio, cuando añado la actividad de Excel Apllication Scope no viene ese campo para escribir, le tengo que añadir algo debajo.

Por eso lo pregunto y mi dilema.

Garcias.

can you share your excel? Feel free to redact / mask sensitive data

Buenas,

Solo quiero hacer ese cambio, no influye el Excel con sus datos, no entiendo la duda.

Gracias.

No problem:

We did at our end:
grafik

And was working:
grafik

we just offered the option to test replicate your excel. When confidential data is within, we gave the hint to mask/redact it to respect the privacy.

However as shown above old xls format was read in into a datatable

Buenas,

Para incluir esta actividad, yo añado Excel Application Scope en mi Studio y no me aparece ese campo debajo, me aparece el hueco para que le añada una actividad, si uso Use Excel File y le pongo lo que has escrito¿puede funcionar? ¿o solo abre formatos xlsx?

Gracias.

not sure if we got your question right

Drag drop read range into the Excel Application Scope
grafik

As shown, we processed an older XLS file

Buenas,

Disculpa pero ese campo:
image
no figura en mi versión de Studio viene el nombre de la actividad Excel Application Scope y debajo un Do para que meta otra actividad, por lo que a lo mejor en este caso tengo que añadir un Use Excel File, ¿no?

Gracias.

maybe you have to filter to classic activities
grafik

(some different displays can happen among the version)

But as mentioned, also you can model in modern if you want to. We checked and was also working:

Buenas,

Me ha funcionado perfectamente, mil gracias

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.