Sample Header Ad - 728x90

How to find the erroneous code failing the SSDT publish?

0 votes
1 answer
463 views
Every time something fails the publish, assuming it passes the preview generation , the error line and executed script sample are completely useless at helping me trace the source of the error, since the line number is relative to the last GO statement, and the executed script doesn't always appear in the publish script. In this instance, it fails with this error: Very generic error The executed script doesn't exist in the publish script: It said it ran this code And this is where it navigates in the publish script upon double clicking the error message: The apparent error line according to publish Usually I am able to trace it down based on the error information, but this time I'm at a loss because the only relevant keywords I can think of are so common that it seems hopeless. It looks like logging is hackish and the errors sometime come before the postdeployment scripting (e.g. table triggers executing on incomplete data since publish settings only include an option to disable DDL triggers ). I've tried running SQL Server Profiler during the publish but that tool omits even more crucial debugging information (and gets overwhelmed by my large database project). Perhaps another reason to upgrade to get the Extended Events Profiler? SQL Server Profiler trace results unhelpful (I verified this statement was not the culprit)
Asked by Elaskanator (761 rep)
Aug 6, 2018, 07:58 PM
Last activity: Aug 8, 2018, 09:20 PM