Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

consultant

Posted on by Microsoft Employee

upgrade from gp 10 to 2010 utilities gives an error "The following SQL statement produced an error: Create view..."

it has convertd data and was loading views when it crashed utilities???

*This post is locked for comments

  • Maria Carrero Profile Picture
    Maria Carrero 150 on at
    RE: consultant

    Review the Intercalation installed for SQL server must be the required by GP

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: consultant

    no multi $

  • Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: consultant

    Does the company currently use Multicurrency?  Pre-upgrade, that is?

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: consultant

    ERROR [Microsoft][SQL Native Client][SQL Server]Invalid object name 'MC40600'.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: consultant

    ERROR [Microsoft][SQL Native Client][SQL Server]Incorrect syntax near '.'.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: consultant

    The following SQL statement produced an error:

    CREATE VIEW GL10000CurrencyTranslationView AS   select   [GL10000Final].[OPENYEAR],  [GL10000Final].[ACTINDX],  [GL10000Final].[CRDTAMNT],  [GL10000Final].[DEBITAMT],  [GL10000Final].[ORCRDAMT],  [GL10000Final].[ORDBTAMT],  [GL10000Final].[TRXDATE],  [GL10000Final].[DSCRIPTN],  [GL10000Final].[REFRENCE],  [GL10000Final].[CURNCYID],  [GL10000Final].[Original_Exchange_Rate],  [GL10000Final].[JRNENTRY],  [GL10000Final].[TRXSORCE],  [GL10000Final].[SOURCDOC],  [GL10000Final].[ORDOCNUM],  [GL10000Final].[ORTRXSRC],  [GL10000Final].[ORMSTRID],  [GL10000Final].[ORMSTRNM],  [GL10000Final].[ORTRXTYP],  [GL10000Final].[SERIES],  [GL10000Final].[VOIDED],  [GL10000Final].[Ledger_ID],  [GL10000Final].[TranslationCurrencyID],  [GL10000Final].[CurrencyTranslationType],  [GL10000Final].[PERDENDT],  [GL10000Final].[TranslationExchangeRate],  case GL10000Final.CRDTAMNT  when 0.0 then  0.0  else  dbo.mcFuncCalculateAmountExtended([GL10000Final].[RTCLCMTD], 3,   [GL10000Final].[TranslationExchangeRate],  [GL10000Final].[DENXRATE],  [GL10000Final].[MCTRXSTT],  [GL10000Final].[DECPLCUR],   [GL10000Final].[CRDTAMNT])  end as TranslationCreditAmount,  case GL10000Final.DEBITAMT  when 0.0 then  0.0  else  dbo.mcFuncCalculateAmountExtended([GL10000Final].[RTCLCMTD], 3,   [GL10000Final].[TranslationExchangeRate],  [GL10000Final].[DENXRATE],  [GL10000Final].[MCTRXSTT],  [GL10000Final].[DECPLCUR],   [GL10000Final].[DEBITAMT])  end as TranslationDebitAmount,  [GL10000Final].[SequenceNumber],  [GL10000Final].[PERIODID],  [GL10000Final].[CURRNIDX],  [GL10000Final].[DECPLCUR],  [GL10000Final].[RATETPID],  [GL10000Final].[EXGTBLID],  [GL10000Final].[EXCHDATE],  [GL10000Final].[TIME1],  [GL10000Final].[RTCLCMTD],  [GL10000Final].[DENXRATE],  [GL10000Final].[MCTRXSTT],  [GL10000Final].[Adjustment_Transaction] from (select distinct  [GL_TRX_WORK].[OPENYEAR],   [GL_TRX_WORK].[ACTINDX],  [GL_TRX_WORK].[CRDTAMNT],  [GL_TRX_WORK].[DEBITAMT],  [GL_TRX_WORK].[ORCRDAMT],  [GL_TRX_WORK].[ORDBTAMT],  [GL_TRX_WORK].[TRXDATE],  [GL_TRX_WORK].[DSCRIPTN],  [GL_TRX_WORK].[REFRENCE],  [GL_TRX_WORK].[CURNCYID],  [GL_TRX_WORK].[XCHGRATE] as Original_Exchange_Rate,   [GL_TRX_WORK].[JRNENTRY],  [GL_TRX_WORK].[TRXSORCE],  [GL_TRX_WORK].[SOURCDOC],  [GL_TRX_WORK].[ORDOCNUM],  [GL_TRX_WORK].[ORTRXSRC],  [GL_TRX_WORK].[ORMSTRID],  [GL_TRX_WORK].[ORMSTRNM],  [GL_TRX_WORK].[ORTRXTYP],  [GL_TRX_WORK].[SERIES],  [GL_TRX_WORK].[VOIDED],  [GL_TRX_WORK].[Ledger_ID],  [GL_TRX_WORK].[TranslationCurrencyID],  [GL_TRX_WORK].[CurrencyTranslationType],  [GL_TRX_WORK].[PERDENDT],  F.XCHGRATE as TranslationExchangeRate,  [GL_TRX_WORK].[SQNCLINE] as SequenceNumber,  [GL_TRX_WORK].[PERIODID],  E.[CURRNIDX],  (E.[DECPLCUR]-1) as DECPLCUR,  [GL_TRX_WORK].[RATETPID],  [GL_TRX_WORK].[EXGTBLID],  F.[EXCHDATE],  F.[TIME1],  D.[RTCLCMTD],  dbo.mcFuncGetDenExchRate(GL_TRX_WORK.TranslationCurrencyID,D.RTCLCMTD) as DENXRATE,  [GL_TRX_WORK].[MCTRXSTT],  [GL_TRX_WORK].[Adjustment_Transaction] from DYNAMICS..MC40200 E, DYNAMICS..MC40300 D cross apply  (select e.YEAR1 as OPENYEAR,a.JRNENTRY,a.SOURCDOC,a.REFRENCE,f.DSCRIPTN,a.TRXDATE,  a.TRXSORCE,f.ACTINDX,a.SERIES,f.ORTRXTYP,f.ORMSTRID,f.ORMSTRNM,  f.ORDOCNUM,a.ORTRXSRC,a.SQNCLINE,a.CURNCYID,b.CURNCYID as TranslationCurrencyID,  a.CURRNIDX,a.RATETPID,b.ExchangeTableID as EXGTBLID,a.XCHGRATE,  a.EXCHDATE,a.TIME1,a.RTCLCMTD,dbo.glFuncGetPeriodID(a.TRXDATE,a.OPENYEAR,2) as PERIODID,f.CRDTAMNT,f.DEBITAMT,f.ORCRDAMT,f.ORDBTAMT,  e.PERDENDT,  dbo.mcFuncGetMCTrxState(b.CURNCYID) as MCTRXSTT,b.CurrencyTranslationType,  a.VOIDED,a.Ledger_ID, a.Adjustment_Transaction,  case b.CurrencyTranslationType  when 1  then e.PERDENDT  when 3  then a.TRXDATE  end as ExchangeRateDate  from GL10000 a, GL10001 f,   (select c.ACTINDX,b.CURNCYID,  ExchangeTableID= case CurrencyTranslationType   when 1 then b.AverageExchangeTableID  when 3 then b.HistoricalExchgTableID  end,  c.CurrencyTranslationType  from MC00200 c,MC40600 b  where c.CURNCYID='' and c.CurrencyTranslationType<>2) b,  (select distinct b.PERIODID, a.YEAR1,a.FSTFSCDY,a.LSTFSCDY, b.PERIODDT,b.PERDENDT from SY40101 a, SY40100 b   where a.YEAR1=b.YEAR1 and b.SERIES=2) e  where a.JRNENTRY=f.JRNENTRY and f.ACTINDX=b.ACTINDX  and a.PERIODID=e.PERIODID   and e.YEAR1=e.YEAR1   and a.TRXDATE >=e.FSTFSCDY and a.TRXDATE <=e.LSTFSCDY) GL_TRX_WORK  cross apply dbo.mcFuncGetExchangeRateTable(GL_TRX_WORK.ExchangeRateDate

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: consultant

    create view GL10000CurrencyTranslationView AS select

    [GL10000Final].openyear], ....[actindx]...crdtamnt...

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: consultant

    the error code listed is pages long

  • Richard Whaley Profile Picture
    Richard Whaley 25,195 on at
    RE: consultant

    Is there any more to the error message that might indicate which view?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans