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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Andrew Jones a1x Profile Picture

Andrew Jones a1x 2

#3
GL-01081504-0 Profile Picture

GL-01081504-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans