Hello, I am working on creating an HR export having both XML and XSLT file.
Originally posted by Aman Gaur on January 29, 2026 at 12:52 AM.
Hello, I am working on creating an HR export having both XML and XSLT file. Mapping on one field is not working; it is giving the exact token value as output in the file. Now what I did is create a new export definition for HR export, but exact same code is giving error.
Error:
The job has completed with an error - Input string was not in a correct format.
System.FormatException: Input string was not in a correct format.
at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
at SharpTop.DataServices.Platform.Export.HRExport.CeridianHPLEmployeePersonalFileFormatter.ConstructXML(DataTable dataTable, XmlDocument xdoc, XmlElement root) in F:\_wfaz\02\2\s\dayforce\src\HR\ExportFramework.HR\HRExport\Formatters\CeridianHPLEmployeePersonalFileFormatter.cs:line 65
at SharpTop.DataServices.Platform.Export.HRExport.CeridianHPLEmployeePersonalFileFormatter.Format(String header, String footer, DataTable table, ColumnDefinition[] MetaData) in F:\_wfaz\02\2\s\dayforce\src\HR\ExportFramework.HR\HRExport\Formatters\CeridianHPLEmployeePersonalFileFormatter.cs:line 50
at SharpTop.DataServices.Platform.Export.HRExport.HRExportEngine.Export(List`1 orgUnits, NamespaceInfo clientNamespace, Boolean testMode) in F:\_wfaz\02\2\s\dayforce\src\HR\ExportFramework.HR\HRExport\HRExportEngine.cs:line 131
at SharpTop.Engine.BackgroundJobs.HRExport.RunHRExport(Boolean testMode) in F:\_wfaz\02\2\s\dayforce\ServerJobs\BackgroundJobs\HRExport.cs:line 247
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at SharpTop.Engine.BackgroundJobs.HRExport.RunHRExport(Boolean testMode) in F:\_wfaz\02\2\s\dayforce\ServerJobs\BackgroundJobs\HRExport.cs:line 399
at SharpTop.Engine.BackgroundJobs.HRExport.Execute() in F:\_wfaz\02\2\s\dayforce\ServerJobs\BackgroundJobs\HRExport.cs:line 82
at BJE.JobWrapper.<>c__DisplayClass21_1.<CreateJobDelegate>b__0(String x, Int64 y) in F:\_wfaz\02\2\s\dayforce\src\Platform\BJE\JobWrapper.cs:line 418
at BJE.JobWrapper.<ExecuteAsync>d__19.MoveNext() in F:\_wfaz\02\2\s\dayforce\src\Platform\BJE\JobWrapper.cs:line 172
________________________________________________________________________________
Now why same code is working for one definition and generating file as well (though mapping issue is there) but not on any new HR export definition.
I hope I am clear.
