Integration Manager 2018 Scripts causes Error 50001
-
Integration Manager 2018 Scripts causes Error 50001
Posted by David Morinello on February 16, 2023 at 9:27 am-
I have been moving Integration Manager 2013 integrations to 2018 and have one pair of integrations that hang in 2018.Ā The same Integrations work ok in 2013
I then built them from scratch and they still fail. I uninstalled IM and reinstalled, same issue.
GP 2018 R2 18.00.0727
I narrowed it down to a script in Mapping. If the script exists, it fails. No script it works but the expected custom distributions are incorrect.Ā
Event Log
*****************************
The program Microsoft.Dynamics.GP.IntegrationManager.exe version 18.0.641.0 stopped interacting with Windows and was closed. To see if more information about the problem is available, check the problem history in the Security and Maintenance control panel.
Ā Process ID: e20
Ā Start Time: 01d9420f758e77dd
Ā Termination Time: 4294967295
Ā Application Path: C:Program Files (x86)Microsoft DynamicsIntegration Manager 18Microsoft.Dynamics.GP.IntegrationManager.exe
Ā Report Id: df6b75db-ae02-11ed-abcc-06f66a63a338
Ā Faulting package full name:Ā
Ā Faulting package-relative application ID:Ā*****************************
Thought, comments?
——————————
David Morinello
Senior Developer
TruckPro LLC
Cordova TN
—————————— -
Can you share the contents of the script?Ā I bet there is a connection to another dataset that doesn’t match your GP2018 data (i.e. your GP2013 data).
Chris
——————————
Chris Donnelly
Director of Business Applications
Healthmark Industries
——————————
——————————————- -
Below is the Script for the Debit Integration.Ā
The Credit script is the same except for the first line.
Account = trim(SourceFields(“CM Receivables-Header.GL Account”))
Store = left(SourceFields(“CM Receivables-Header.Customer ID”),3)
Distribution = “”***DebitĀ Distibution Script*********************************************************************************
Account = trim(SourceFields(“_DM Receivables-Header.GL Account”))
Store = left(SourceFields(“_DM Receivables-Header.Customer ID”),3)
Distribution = “”Select Case Account
Case “1INT”
Ā Ā Distribution = “800-000-13400”
Case “BDR”
Ā Ā Distribution = Store + “-000-13410”
Case “BDRF”
Ā Ā Distribution = Store + “-000-13410”
Case “BDWO5”
Ā Ā Distribution = Store + “-000-13410”
Case “BDWO”
Ā Ā Distribution = Store + “-000-13410”
Case “BDWOC”
Ā Ā Distribution = Store + “-000-13410”
Case “BDWOB”
Ā Ā Distribution = Store + “-000-13410”
Case “BDWOD”
Ā Ā Distribution = Store + “-000-13410”
Case “CAR”
Ā Ā Distribution = Store + “-000-10000”
Case “OS”
Ā Ā Distribution = Store + “-010-51020”
Case “CCRA”
Ā Ā Distribution = “800-000-10311”
Case “CCRD”
Ā Ā Distribution = “800-000-10312”
Case “CCRVM”
Ā Ā Distribution = “800-000-10313”
Case “CHGB”
Ā Ā Distribution = “800-000-13404”
Case “CHGBWO”
Ā Ā Distribution = Store + “-000-13410”
Case “CODR”
Ā Ā Distribution = Store + “-000-13410”
Case “CODWO”
Ā Ā Distribution = Store + “-000-13410”
Case “CE”
Ā Ā Distribution = Store + “-000-13410”
Case “CORER”
Ā Ā Distribution = Store + “-000-13410”
Case “CORWO”
Ā Ā Distribution = Store + “-000-13410”
Case “CW”
Ā Ā Distribution = Store + “-000-13410”
Case “DC”
Ā Ā Distribution = Store + “-010-44707”
Case “DELC”
Ā Ā Distribution = Store + “-000-13402”
Case “DELR”
Ā Ā Distribution = Store + “-000-13402”
Case “FR”
Ā Ā Distribution = Store + “-010-54750”
Case “FSC”
Ā Ā Distribution = Store + “-010-38100”
Case “IMPRT”
Ā Ā Distribution = “800-000-10215”
Case “INV”
Ā Ā Distribution = Store + “-000-14200”
Case “MC”
Ā Ā Distribution = Store + “-000-13400”
Case “NSF”
Ā Ā Distribution = “800-000-13405”
Case “NSFR”
Ā Ā Distribution = Store + “-000-13410”
Case “NSFSC”
Ā Ā Distribution = Store + “-000-13410”
Case “NSFWO”
Ā Ā Distribution = Store + “-000-13410”
Case “SC”
Ā Ā Distribution = “800-870-51500”
Case “SCR”
Ā Ā Distribution = Store + “-000-13401”
Case “TE”
Ā Ā Distribution = Store + “-000-13400”
Case “TX”
Ā Ā Distribution = Store + “-000-23600”
Case “ZOFF”
Ā Ā Distribution = “800-000-13400”
Case “ZSR”
Ā Ā Distribution = “800-000-10431”
Case Else
Ā Ā Distribution = Store + “-000-13410”
End SelectCurrentField = Distribution
*****************************************************
——————————
David Morinello
Senior Developer
TruckPro LLC
Cordova TN
——————————
——————————————- -
Hmmm.Ā No connections.Ā Are your input files still named CM Receivables-Header and _DM Receivables-Header?
Chris
——————————
Chris Donnelly
Director of Business Applications
Healthmark Industries
——————————
——————————————- -
-
Cool.Ā Next thing…Ā Ā look at the file definitions (ODBC on the machine?)…Ā Ā Is the column named “Account” defined as a numeric?Ā It should be defined as a string.
Chris
——————————
Chris Donnelly
Director of Business Applications
Healthmark Industries
——————————
——————————————-
David Morinello replied 2 years, 6 months ago 1 Member · 0 Replies -
-
0 Replies
Sorry, there were no replies found.
The discussion ‘Integration Manager 2018 Scripts causes Error 50001’ is closed to new replies.