Arithmetic Overflow Parsing Join

BI 4.2 SP2 (and SP3)
IDT throws an Arithmetic Overflow error

[Microsoft][SQL Server Native Client 11.0][SQL Server]Arithmetic overflow error converting expression to data type int.

when parsing a join to another table. Both columns are varchar(25), and contain account numbers (not all are numbers; there are some like S01234. I’ve tried to CAST both sides of the join as varchar to no avail.

I’ve tried ignoring the error and publishing the universe, but the WebI reports fail randomly with an INF error.

I’m trying to get the latest Client Tools patch, but in the meantime, any suggestions?


charlie :us: (BOB member since 2002-08-20)

According to the error, it appears you are using CAST to change a field to an integer. Depending on the values of original field, this error could easily come up.


kevlray :us: (BOB member since 2010-06-23)

Sounds like a pretty horrible “join”

Have you tried casting as type BIG INT?


Mak 1 :uk: (BOB member since 2005-01-06)

The columns are all VARCHAR. One is the GL Account Number, and can contain values like 60350 or S01234. Casting to INT just won’t work. I think this is a bug in the IDT - for whatever reason, it sees that “60350” and assumes it’s a number. Strange, because I’ve been using it for almost a year and this is the first time I’ve seen this behavior. Just downloaded patch 4 for SP03 Client Tools; I’ll give that a shot.

Just for laughs, I built the joins using the UDT. That works fine, so worst case, I can fall back to that.


charlie :us: (BOB member since 2002-08-20)

In the .dfx layer are both sides of the join showing as ‘AB’ type?

Should this be in the Semantic Layer subforum?


Damocles :uk: (BOB member since 2006-10-05)

Yes and Yes.

Sorry, must have posted to wrong forum.

Edit: the bad news is that after installing patch 4, I still get the same error.


charlie :us: (BOB member since 2002-08-20)

Moderator note: moved topic to appropriate forum


Andreas :de: (BOB member since 2002-06-20)

Are the IDT and the UDT using the same driver, connection etc.


Mak 1 :uk: (BOB member since 2005-01-06)

So now I have to ask: is it possible to change a WebI developed using an IDT universe to use a UNV one?


charlie :us: (BOB member since 2002-08-20)

You can do that sort of thing in Rich Client IIRC.


Damocles :uk: (BOB member since 2006-10-05)

I still fail to understand if all the DB driver and details are the same and everything is set correctly, why you would get the error with one (IDT) and not the other (UDT).

Very odd.


Mak 1 :uk: (BOB member since 2005-01-06)

I think I found the issue: there was one table (in a join dialog) that didn’t have qualifier and owner set; once that was rectified, IDT parsed the joins. That was on my DEV system. I’m still getting the error on my UAT environment - there must be some code somewhere where qualifier/owner aren’t set (like in an LOV, maybe). I’ll promote the universe and see if that doesn’t fix things in UAT.


charlie :us: (BOB member since 2002-08-20)