GlobalFileName not populated when using in a script

I am attempting to write an after map script and use the GlobalFileName value to report the name of the source file with the error.  The GlobalFileName field does not appear to be populated.  

GlobalFileName does not automatically populate, you would need to write your own script to insert a value into the variable. 

There are 2 types of global variables, system variables and user variables.  System variables are automatically populated when the map runs, and user variables are blank by default and must be set using a script. 

The following system variables are automatically populated only during a map run.  Any extra scripts that update these variables will be ignored at runtime.

GlobalCompanyID – The tenant ID to which the map is currently sending data.
GlobalErrorCount – A count of documents that have failed during the map run.
GobalLastError – The last error message recorded by the map run.
GlobalMapDescription – The map description as entered in the map setup screen
GlobalMapID – The map ID as entered in the map setup screen.
GlobalProcessCount – The total number of documents to be processed during this map run.
GlobalRollingColumn – The current value of the rolling column set as ‘use for global variable’ in map setup. This is only available at the document level task, not the map level tasks.
GlobalRunDate – The date of the run.
GlobalRunEnded – The date / time the run ended.
GlobalRunErrors – A list of all errors encountered during the map run.
GlobalRunNumber – The current run number for the selected map.
GlobalRunStarted – The date / time the map run started.
GlobalSuccessCount – A count of the successful documents for this run.
GlobalUserID – The user ID of the current windows user.

The following user global variables are available for use within SmartConnect. These variables are updated through scripting or through defaults in system or map setup. These variables are by default all empty strings and may be used as and when required for maps.



Salesforce Objects or fields are not available in SmartConnect
Attempting to select a readonly publisher for solution
Success Management Process for SmartConnect
Success Management Process for Partners
Firewall Settings for


SSL Security error using OLEDB Connection
Removed Part: /xl/vbaProject.bin part. (Visual Basic for Applications (VBA))
The server process could not be started because the configured identity is incorrect.
Using WINSCP and a task to upload or download files from an SFTP site
Manufacturing Serial Trace SmartList Builder Template



open all | close all


Business Central CRM Dynamics 365 dynamics crm Dynamics GP Dynamics NAV Econnect Employee Spotlight eone eOne News eOne Spotlight Events Excel Excel Report Builder Extender Extender Enterprise Flexicoder GP GPUG integration Meet the Team Microsoft dynamics crm Microsoft Dynamics GP Office Relationships partners Popdock release Reporting SalesForce scripting SmartConnect SmartConnect Bootcamp SmartConnect Office Hours SmartList SmartList Builder SmartList Designer SmartView SQL Support Tech Tuesday Templates training Zendesk

Integrate & Automate without Any Code.

SmartList Data has Never Been Faster.

The Easiest Way to Report on GP Data.