web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Patch a local collecti...
Power Apps
Answered

Patch a local collection to dataverse table error: The specified column doesnt exist

(0) ShareShare
ReportReport
Posted on by 22

 

Good morning! I'm developing an app that sends forms to Dataverse. Since this application will be used in remote locations, I need to have a local form saving option. For this purpose, I created the collection "colSMUTF02" where, in case of no connection, the form would be saved locally.

 

 

 

 

Collect(colSMUTF02, {
 crf6b_trabajoareaobservada: DataCardValue12.Text,
 crf6b_legajon: Value(DataCardValue9.Text),
 crf6b_nombrecompleto: DataCardValue13.Text,
 crf6b_descripciondelriesgoobservado: DataCardValue5.Text,
 createdon: Now(),
 crf6b_seccion: DataCardValue11.Selected,
 crf6b_detalleobservacioncorreccion: DataCardValue7.Selected.Value,
 crf6b_detalleobservacionaccion: DataCardValue6.Text,
 crf6b_accionespropuestas: DataCardValue3.Text,
 crf6b_comentariosjefecoordinado: DataCardValue4.Text,
 crf6b_lat: Location.Latitude,
 crf6b_long: Location.Longitude,
 crf6b_fechacreacionoffline: Now()
})

 

 

On my second screen, I have a gallery that displays each entry from that collection with a button to Patch that entry to my Dataverse table, which works correctly. My problem arises when I try to Patch multiple entries at the same time. I tried using ForAll for each entry, but it gives me the following error: "The specified column does not exist." I double-checked the logical name of the Dataverse column, and it matches correctly. Likewise, the Patch for a single record works correctly.

 

 

 

If(Connection.Connected,
 Patch('SM UT F 02', Defaults('SM UT F 02'),
 {
 'Trabajo / Area Observada': ThisItem.'Trabajo / Area Observada',
 'Legajo N°': ThisItem.'Legajo N°',
 Usuario: ThisItem.Usuario,
 Seccion: LookUp(Secciones, 'Seccion Descripcion' = ThisItem.crf6b_seccion.'Seccion Descripcion'),
 'Descripcion Del Riesgo Observado': ThisItem.'Descripcion Del Riesgo Observado',
 'Detalle Observacion Correccion': If(Text(ThisItem.'Detalle Observacion Correccion') = "Si", true,
 Text(ThisItem.'Detalle Observacion Correccion') = "No", false),
 'Detalle Observacion Accion': ThisItem.'Detalle Observacion Accion',
 'Acciones Propuestas': ThisItem.'Acciones Propuestas',
 'Comentarios Jefe Coordinado': ThisItem.'Comentarios Jefe Coordinado',
 Lat: ThisItem.Lat,
 Long: ThisItem.Long,
 'Fecha Creacion Offline': ThisItem.'Fecha Creacion Offline'
 }
 )
);
If(IsEmpty(Errors('SM UT F 02')),
 Remove(colSMUTF02, ThisItem);
 SaveData(colSMUTF02, "colSMUTF02ParaCargar")
)
);

 

 

 

 

However, when I try to Patch the entire collection or a single record, that's when the error occurs. I have attached the images for reference.
powerappserror1.PNG
Thanks in advance to everyone!

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    156,117 Most Valuable Professional on at

    Hi @Juanchosss ,

    Your Patch can be improved a bit as below, but which column is it saying does not exist ?

    Patch(
     'SM UT F 02', Defaults('SM UT F 02'),
     ForAll(
     colSMUTF02 As aCol;
     {
     'Trabajo / Area Observada': aCol.'Trabajo / Area Observada',
     'Legajo N°': aCol.'Legajo N°',
     Usuario: aCol.Usuario,
     Seccion: LookUp(Secciones, 'Seccion Descripcion' = aCol.crf6b_seccion.'Seccion Descripcion'),
     'Descripcion Del Riesgo Observado': aCol.'Descripcion Del Riesgo Observado',
     'Detalle Observacion Correccion': aCol.'Detalle Observacion Correccion') = "Si";
     'Detalle Observacion Accion': aCol.'Detalle Observacion Accion',
     'Acciones Propuestas': aCol.'Acciones Propuestas',
     'Comentarios Jefe Coordinado': aCol.'Comentarios Jefe Coordinado',
     Lat: aCol.Lat,
     Long: aCol.Long,
     'Fecha Creacion Offline': aCol.'Fecha Creacion Offline'
     }
    );
    
  • Juanchosss Profile Picture
    22 on at

    Hi @WarrenBelz thanks for reply!
    The column that initially indicates it doesn't exist is called 'Acciones Propuestas'. However, it seems to be detecting that they don't exist in alphabetical order because when I comment out the lines, it indicates that the next column is not found, and so on

  • WarrenBelz Profile Picture
    156,117 Most Valuable Professional on at

    Hi @Juanchosss ,

    A bit of debugging required - firstly you do not need Defaults() in that structure, but try starting with one column and see if you can get some valid code.

  • Juanchosss Profile Picture
    22 on at

    Hi @WarrenBelz , i took off Defaults(), and try with one column, but i have the same error. When i try to patch individually each registry of the collection, it works:

    If(Connection.Connected;
    Patch('SM UT F 02'; Defaults('SM UT F 02');
     {
     'Trabajo / Area Observada': ThisItem.'Trabajo / Area Observada';
     'Legajo N°': ThisItem.'Legajo N°';
     Usuario: ThisItem.Usuario;
     Seccion: LookUp(Secciones; 'Seccion Descripcion' = ThisItem.crf6b_seccion.'Seccion Descripcion');
     'Descripcion Del Riesgo Observado':ThisItem.'Descripcion Del Riesgo Observado';
     'Detalle Observacion Correccion': If(Text(ThisItem.'Detalle Observacion Correccion') = "Si"; true;
     Text(ThisItem.'Detalle Observacion Correccion') = "No"; false);
     'Detalle Observacion Accion':ThisItem.'Detalle Observacion Accion';
     'Acciones Propuestas':ThisItem.'Acciones Propuestas';
     'Comentarios Jefe Coordinado':ThisItem.'Comentarios Jefe Coordinado';
     Lat: ThisItem.Lat;
     Long:ThisItem.Long;
     'Fecha Creacion Offline': ThisItem.'Fecha Creacion Offline'
     
     }
    );;
    If(IsEmpty(Errors('SM UT F 02'));
    Remove(colSMUTF02;ThisItem);;
    SaveData(colSMUTF02; "colSMUTF02ParaCargar")
    )
    )

    but when i want to make the same operation in a button ForAll, that's when the error occurs.

  • Verified answer
    Juanchosss Profile Picture
    22 on at

    Great! I was able to solve the problem. I had to create a new connection to the Dataverse tables by selecting the "Other Environment" option and reconnecting the tables in the environment where I was working (even though the application is in the same environment as the tables). After that, it started working correctly. @WarrenBelz  Thank you very much for your time!

    powerappserror1.PNG

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard