In Dynamics Nav 2018, I'm using the selected action in this page rows, when I click "Validar", all selected rows will change it's status to "Pendiente".
After some time, the row will change to status "Error":
I can see in debugger when it changes from "Registrando" to "Pendiente". But I can't see when it's changing to "Error" and when it's inserting data to column "Descripción Estado":
Validar - OnAction()
UserSetup.GET(USERID);
UserSetup.TESTFIELD("Superusuario SII",TRUE);
//++SII V.08
CurrPage.SETSELECTIONFILTER(SII);
WITH SII DO BEGIN
IF FINDSET(TRUE,TRUE) THEN
REPEAT
//--SII V.08
//++SII JUL-2018
IF SII."Pendiente de validar" THEN BEGIN
TempHistSII.RESET;
TempHistSII.SETCURRENTKEY("N Doc NAV","Fecha Registro");
TempHistSII.SETRANGE("N Doc NAV",SII."N Doc NAV");
TempHistSII.SETRANGE("Fecha Registro",SII."Fecha Registro");
TempHistSII.SETRANGE(TempHistSII."Nº Mov",SII."Nº Mov");
//++SII JUL-2018 12/06/18
//IF TempHistSII.FINDFIRST THEN BEGIN
IF TempHistSII.FINDLAST THEN BEGIN
//--SII JUL-2018 12/06/18
HistRegSII.INIT;
HistRegSII.TRANSFERFIELDS(TempHistSII);
HistRegSII."Usuario modificación" := USERID;
HistRegSII."Fecha modificación" := TODAY;
HistRegSII."Hora modificación" := TIME;
HistRegSII.INSERT;
//++SII JUL-2018 12/06/18
//Inserto en tabla temporal
TempHistSII.INIT;
TempHistSII.TRANSFERFIELDS(SII);
TempHistSII."Nº línea registro" := HistRegSII."Nº línea registro" + 10000;
TempHistSII.INSERT;
//--SII JUL-2018 12/06/18
END;
SII."Pendiente de validar" := FALSE;
END;
//--SII JUL-2018
CASE Estado OF
//++SII JUL-2018
//Estado::"Registrada con error",Estado::Registrada: //++SII V.07
Estado::"Registrada con error",Estado::Registrada,Estado::"Error por inmuebles adicionales":
//--SII JUL-2018
BEGIN
"Tipo comunicacion" := "Tipo comunicacion"::A1;
Estado := Estado::Pendiente;
"Descripción Estado" := '';
END;
//++SII V.06
//Estado::Error:
Estado::Error,Estado::"Error configuración":
//--SII V.06
BEGIN
Estado := Estado::Pendiente;
"Descripción Estado" := '';
END;
//++SII V.07
Estado::Pendiente,Estado::"Pendiente Devengo":
"Descripción Estado" := '';
//--SII V.07
ELSE
ERROR(Text001,Estado);
END;
MODIFY;
//++SII V.08
UNTIL NEXT = 0;
END;
//--SII V.08
So I can see there when it's changing the status when clicking "Validar" button... but I can't find the process that is changing later the status to "Error"...
I'm checking the Job Queue Entries and I don't see anything that affects this columns.
Using the tool whereused I can't find anything.
I've also checked the table triggers and there's nothing, all empty.
I don't know how it's possible that I can't find anything exporting all objects to txt... I should be able to search "Descripción Estado" :=
or No existe el Registro
What could write to this column that it's not displayed in txt objects and not triggering the debugger?