Hola,
Al tratar de replicar el ejemplo de Academia UiPath (Build Your First Automation Process) en el cual deberá leer el correo electrónico más reciente en la Bandeja de entrada de Outlook del usuario que tiene “New Task” como asunto. Descargará el archivo de Excel adjunto y luego marcará el correo electrónico como leído.
Las filas del archivo de Excel contienen los nombres de los empleados y sus puestos de trabajo. Una fila a la vez, el proceso escribirá estos datos en el sitio web de RPA-Challenge y enviará el formulario.
Para realizar este desarrollo nos piden crear dos flujos (Get Data / Process Data), veo que en el Get Data logro guardar la información del exel en la variable out_dt_UserData de tipo DataTable. Pero al tratar de leer esta información en el flujo Process Data me da error debido a que el argumento in_dt_UserData tiene un valor de NULL.
No veo por que no logra tener información in_dt_UserData para poder leer el archivo Exce.
Seguramente a alguien mas le pudo a ver pasado esto , gracias por vuestra ayuda!!
Saludos.
Hi @Julio_Ortiz
Check whether the InArgument has the default value.
Pass the CurrentRow(“YourColumnName”).toString in the value of the argument in_dt_UserData.
Please refer to the screenshot below!
Regards
Hola @pravin_calvin
Primero que nada gracias por contestar.
No logro enetender el cambio del argumento in_dt_user_data de tipo DataTable a tipo String, como puedes ver en la imagen lo tengo definido como DataTable , y si lo trato de cambiar a String con el Default Value CurrentRow(“Name”).ToString me genera mensaje de error de compilación.
Gracias !!
Hi @Julio_Ortiz
Sorry for Wrong Understanding, If the argument Type is Datatable
Then Create a Default Value as Datatable.
And Check whether the Datatable variable has any Duplicate By Seeing in the Variables Pane!
Regards
Hi @pravin_calvin,
I ran the process with the debugger and I see that the argument (in_dt_UserData) has a null value
I don’t understand why it doesn’t have the excel information for the for loop to iterate
Br.
@Julio_Ortiz
Can I get the screen shot of the import Arguments tab from the above picture.
Regards
Hi @Julio_Ortiz
Check whether the Datatable variable has any Duplicate By Seeing in the Variables Pane.
Or Delete the Datatable Variable and Recreate it!
Regards
Hi @pravin_calvin
I am going to do the project again, it could be that it is a wrong variable.
I add your time and help.
Until next time!
Br.
Julio.
Hi @Julio_Ortiz
Share your xaml here if possible , So that we can sort out the exact problem!
Regards