- Funprog F_FIC_TRACE(XGTRACE)
- Value Char XGTRACE
- Local Char WNAME(250)
- If left$(XGTRACE,2)="#@" & (GBROWS | GSERVEUR)
- WNAME = ""
- Elsif max(instr(1,XGTRACE,"/"),instr(1,XGTRACE,"\"),instr(1,XGTRACE,"@"))
- WNAME = XGTRACE
- Else
- WNAME = filpath("TRA",XGTRACE,"tra")
- Endif
- If filinfo(WNAME,0)=0
- WNAME = ""
- Endif
- End WNAME
FUENTE ORIGINAL: https://pluginx3.com/en/blog/post/sage-x3-silent-import-importsil-with-error-catching.html You already know how to manually generate a CSV file in order to import it threw a template in Sage X3. But If you wonder how to catch detailed errors after a silent import here is the solution. Sometimes you need to catch the incoming errors in order to alert the end-user regarding an issue. Closed period, wrong date etc …. Unfortunalty the standard Sage X3 silent import function doesn’t natively show the detailed errors during the import process. Call IMPORTSIL([M:IMP2]MODIMP,[M:IMP2]NOMIMP) From GIMPOBJ And the standard function ERR_IMPORT will only show the overall status of the importation and not the detailed errors. IMPORTSIL function is pushing all the log data into a tracefile in order to avoid any popup on end-user screen. So you have a log file available in order to search for errors in it. Sage X3 runtime is using the same principals standards as any shell for log...