I'm running an upgrade frpm 2013 R2 to 2015 and have reached task 10 in the "Upgrading the data" document
https://msdn.microsoft.com/en-us/librar ... 8(v=nav.80).aspx
I get this error and I'm not quite sure what to do about it
SessionId : 2654
CodeunitId : 104025
FunctionName : UpdateSourceCodeSetup
CompanyName : CompanyName Master
StartTime : 2015-02-04 10:02:43
Duration :
State : FailedPendingResume
Error : The Source Code already exists. Identification fields and values: Code='PAYMTRECON'
It's an upgrade object and should be consistent with the script.
The Start-NavDataUpgrade script is imported from a DLL, is there any way I can get the source code of this script to see what might generate the error?
Comments
A QaD fix allowed me to run the task to completion.
Still not sure if this I s a bug or not...
www.nabsolutions.se
regards, Gunnar
QaD is short for "Quick and Dirty", I just treated the symptoms instead of the cause.
If you look at the source code below you'll see that I changed the INSERT; statement into IF NOT INSERT THEN; which is a quick way of ignoring any errors.
It's bad programming, much like the IF NOT INSERT THEN MODIFY approach, but it will get us through the upgrade.
I just keep on overwriting the record with the same data until the process is through.
Ha det!
//Anders
www.nabsolutions.se
QaD, I see. Like swallowing exceptions. Not good, but a fix.
Thanks, Gunnar
Not sure what the underlaying issue is, I've had some upgrades pass this obstacle without a hitch and others stuck on this error
www.nabsolutions.se
Hej Anders!