web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Error converting data type nvarchar to bigint..

(0) ShareShare
ReportReport
Posted on by 35

Hi

After a perfect install, sync, compile, all check lists green lit and basic data entry done for go live today we receive 118 compile Critical Errors of which the main culprit seems to be the SQL script below. No mods or system changes were made, this is a basic financials only implementation.  Not made much progress trying to find differences between AOT and SQLDictionary.  Running any other checks comes up with a host of other errors or warnings all which seemingly relates back to the error below.  Help will be much appreciated.

Object Server 01: The database reported (session 3 (Admin)): [Microsoft][SQL Server Native Client 11.0][SQL Server]Error converting data type nvarchar to bigint.. The SQL statement was: "SELECT TOP 1 T1.BUSINESSACTIVITY_SA,T1.BUSINESSACTIVITYDESC_SA,T1.FILENUMBER_SA,T1.COMPANYNAFCODE,T1.BUSINESSNUMBER_CA,T1.SOFTWAREIDENTIFICATIONCODE_CA,T1.FISCALCODE_IT,T1.COMPANYTYPE_MX,T1.RFC_MX,T1.CURP_MX,T1.STATEINSCRIPTION_MX,T1.LEGALNATURE_IT,T1.BANK,T1.GIRO,T1.REGNUM,T1.COREGNUM,T1.UPSNUM,T1.TAX1099REGNUM,T1.NAMECONTROL,T1.TCC,T1.KEY_,T1.DVRID,T1.GIROCONTRACT,T1.GIROCONTRACTACCOUNT,T1.BRANCHID,T1.VATNUMBRANCHID,T1.IMPORTVATNUMBRANCHID,T1.ACTIVITYCODE,T1.CONVERSIONDATE,T1.ADDRFORMAT,T1.COMPANYREGCOMFR,T1.PAYMROUTINGDNB,T1.PAYMTRADERNUMBER,T1.ISSUINGSIGNATURE,T1.SIACODE,T1.BANKCENTRALBANKPURPOSECODE,T1.BANKCENTRALBANKPURPOSETEXT,T1.DBA,T1.FOREIGNENTITYINDICATOR,T1.COMBINEDFEDSTATEFILER,T1.LASTFILINGINDICATOR,T1.VALIDATE1099ONENTRY,T1.LEGALFORMFR,T1.SHIPPINGCALENDARID,T1.ENTERPRISENUMBER,T1.BRANCHNUMBER,T1.CUSTOMSCUSTOMERNUMBER_FI,T1.CUSTOMSLICENSENUMBER_FI,T1.DATAAREA,T1.PLANNINGCOMPANY,T1.ORGID,T1.BANKACCTUSEDFOR1099,T1.PAYMINSTRUCTION1,T1.PAYMINSTRUCTION2,T1.PAYMINSTRUCTION3,T1.PAYMINSTRUCTION4,T1.LEGALREPRESENTATIVENAME_MX,T1.LEGALREPRESENTATIVERFC_MX,T1.LEGALREPRESENTATIVECURP_MX,T1.FICREDITORID_DK,T1.TEMPLATEFOLDER_W,T1.CNAE_BR,T1.RESIDENT_W,T1.PFREGNUM_RU,T1.RALIENCORPCOUNTRY,T1.RALIENCORPNAME,T1.RFULLNAME,T1.ENTERPRISECODE,T1.COMMERCIALREGISTERSECTION,T1.COMMERCIALREGISTERINSETNUMBER,T1.COMMERCIALREGISTER,T1.ORGANIZATIONLEGALFORM_RU,T1.SUBORDINATECODE,T1.FSSACCOUNT_RU,T1.ACCOUNTANT_LT,T1.ACCOUNTOFFICEREFNUM,T1.BUSINESSCOMMENCEDDATE_JP,T1.BUSINESSINITIALCAPITAL_JP,T1.BUSINESSITEM_JP,T1.CERTIFIEDTAXACCOUNTANT_JP,T1.CUC_IT,T1.HEAD_LT,T1.LEGALREPRESENTATIVE_JP,T1.PERSONINCHARGE_JP,T1.PRINTCORRINVOICELABEL_DE,T1.PRINTCORRINVOICELABELEFFDATE_DE,T1.PRINTENTERPRISEREGISTER_NO,T1.PRINTINNKPPINADDRESS_RU,T1.ORGANIZATIONTYPE,T1.PHONETICNAME,T1.DUNSNUMBERRECID,T1.NAME,T1.LANGUAGEID,T1.NAMEALIAS,T1.PARTYNUMBER,T1.INSTANCERELATIONTYPE,T1.KNOWNAS,T1.PRIMARYADDRESSLOCATION,T1.PRIMARYCONTACTEMAIL,T1.PRIMARYCONTACTFAX,T1.PRIMARYCONTACTPHONE,T1.PRIMARYCONTACTTELEX,T1.PRIMARYCONTACTURL,T1.MODIFIEDDATETIME,T1.MODIFIEDBY,T1.CREATEDDATETIME,T1.CREATEDBY,T1.RECVERSION,T1.RELATIONTYPE,T1.PARTITION,T1.RECID FROM DIRPARTYTABLE T1 WHERE (((T1.PARTITION=?) AND (?=?)) AND (T1.INSTANCERELATIONTYPE IN (41) ))"

*This post is locked for comments

I have the same question (0)
  • Dave W Profile Picture
    380 on at

    I'm new to AX so not sure if this is an AX query or custom but my thoughts would be to find where this query is coming from and check what value is being passed into it, for example T1.PARTITION is a bigint but you may be passing a nvarchar.

  • Veetee Profile Picture
    35 on at

    Hi,  This is an AX 2012 R3 installation, the script originates from a Sync I set off as precaution to going live.

  • Ismael Utitiaj Profile Picture
    426 on at

    - Synchronize DIRPARTYTABLE table  through  System Administration - Periodic - Data Base-SQL Management

    - Then FULL CIL Compilation

    - Last step Data base sincronization all tables(System Administration - Periodic - Data Base-SQL Management )

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans