01. DADOS GERAIS

Linha de Produto:Microsiga Protheus
Segmento:Supply Chain - Logística
Módulo:TOTVS Logística TMS
Função:

TMSA050 - Entrada Dc. Cliente

Requisito/Story/Issue:DLOGTMS02-10568
Ticket:8431040

02. SITUAÇÃO/REQUISITO

Ao executar o JOB do Totvs Colaboração ocorre o error log abaixo, no momento de importação de XML. 

THREAD ERROR ([22060], TOTVS_COLAB_AGENT15_, THIS) 04/03/2020 15:50:30
JOB threads doesn't support remote/visual components. in file D:\bamboo-agent-5.7.2\xml-data\build-dir\TP11-TECX17V3-TECXWIN64\interface\srvobject.cpp at line 28
on TMSA050INSCCLI(TMSA050.PRW) 10/02/2020 11:26:32 line : 7898


03. SOLUÇÃO

O error log citado, refere-se a tentativa de exibir uma tela quando se está executando uma função via JOB, ou via Thread.

Foi realizado um tratamento para identificar se a usuário está executando o Protheus via JOB ou pela maneira tradicional com tela.




<style>
div.theme-default .ia-splitter #main {
    margin-left: 0px;
}
.ia-fixed-sidebar, .ia-splitter-left {
    display: none;
}
#main {
    padding-left: 10px;
    padding-right: 10px;
    overflow-x: hidden;
}

.aui-header-primary .aui-nav,  .aui-page-panel {
    margin-left: 0px !important;
}
.aui-header-primary .aui-nav {
    margin-left: 0px !important;
}
</style>